Copy link to clipboard
Copied
Hi,
I made a software which provide exporting the pdf file to html page
Am using Delphi programming language to do that with this code:
{$R *.dfm}
{$TYPEDADDRESS OFF}
var
objAcroApp: AcroApp;
objAcroAVDoc: AcroAVDoc;
objAcroPDDoc: AcroPDDoc;
objJSO: Variant;
boResult: Boolean;
procedure TForm1.Button2Click(Sender: TObject);
var
workPath : string;
begin
workPath:= 'c:\temp\';
objAcroApp := CreateOleObject('AcroExch.App');
objAcroAVDoc := CreateOleObject('AcroExch.AVDoc');
boResult := objAcroAVDoc.Open(workPath + 'test.pdf', '');
objAcroPDDoc := objAcroAVDoc.GetPDDoc;
objJSO := objAcroPDDoc.GetJSObject;
boResult := objJSO.SaveAs(workPath + 'test.html', 'com.adobe.acrobat.html');
boResult := objAcroAVDoc.Close(true);
boResult := objAcroApp.Exit;
objJSO := Unassigned;
objAcroPDDoc := Unassigned;
objAcroAVDoc := Unassigned;
objAcroApp := Unassigned;
end;
After installing the acrobat DC standard / pro at my pc the application is working fin.
But my question is : when I move the application to the customer's pc,
Do I have to install (the acrobat DC standard / pro) for them?
If I don't want to install (the acrobat DC standard / pro) what I have to do?
Thanks a lot for help.
Yes, since this code uses Acrobat – then Acrobat needs to be installed on all computers that use this code.
If you don’t want to install Acrobat on their machines, then you need to find a completely new method for PDF->HTML.
Copy link to clipboard
Copied
Yes, since this code uses Acrobat – then Acrobat needs to be installed on all computers that use this code.
If you don’t want to install Acrobat on their machines, then you need to find a completely new method for PDF->HTML.
Copy link to clipboard
Copied
lrosenth Thanks for reply.
But do you mean I have to buy Acrobat DC for each customer?
Copy link to clipboard
Copied
Yes, you need to buy a copy for each person that will be running your software. How else did you think it would work? You are programming Acrobat – which means you need Acrobat to run it.
Copy link to clipboard
Copied
Would you expect to use things from the Windows SDK if you didn't pay for Windows? Perhaps it will help to think this way: the Acrobat SDK exists for one reason: to sell more copies of Acrobat. It is a programmer tool, but equally important it is a marketing tool.
Copy link to clipboard
Copied
If I don't want to install (the acrobat DC standard / pro) what I have to do?
Develop an application that can do it without the Acrobat API. There are plenty of low- and high-level PDF libraries out there that you can use to get started. Feel free to use any of them for this task, but it's not going to be a simple one...