New Forum | Previous | Next | (P-PDF) Developers
Topic: PDF with VB
Conf: (P-PDF) Developers, Msg: 134125
Date: 6/8/2005 06:25 PM
I wish to modify the PDF files properties with VB6.0. I have Adobe Reader 7.0. I copied the dll AcroRd32.dll and the browser AcroPdf.dll. I can open the pdf files with the AcroPdf control. But I wish not to allow the use of the buttons "Save" and "Print" for several pdf files. I'd tried to execute the Adobe Reader application with this code source which I'd had with Internet:
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open("c:\adobe.pdf") Then
Set jso = gPDDoc.GetJSObject
jso.console.println ("Hello, Acrobat!")
When I execute this code, it generate an error:
"Execution error '429': ActiveX component can't create this objet."
I'm wondering whether the reason is not because I only have Adobe Reader and no license for Adobe Acrobat ?
I need too to convert TIFF files to PDF files and I would like I 'll use the same product to do the two things. Do you have any idea?
My director wants that's the product 'll be a Adobe product.
Thank you very much for any information.