Page 1 of 1

which Developer SDK is Office2PDF in?

Posted: Wed Jun 03, 2009 4:04 am
by tanshd
Which Developer SDK should I download, if I wanna convert .doc or .html to .pdf files?
and are there some samples?

Re: which Developer SDK is Office2PDF in?

Posted: Wed Jun 03, 2009 11:15 am
by Corwin - Tracker Sup
There is no such SDK for now.. You may use PDF-XChange Drivers API SDK for converting .doc or .html documents to PDF but this printer driver would not create hyperlinks in the resulting PDF file.

Re: which Developer SDK is Office2PDF in?

Posted: Thu Jun 04, 2009 2:17 am
by tanshd
but PDF-XChange Drivers API SDK doesn't provide C# examples, can I use C# to do it? and how I could do?

and the Delphi examples cannot compile, the wrong message is:
[Fatal Error] Main.pas(7): File not found: 'PXCComLib_TLB.dcu'
what can I do?

Re: which Developer SDK is Office2PDF in?

Posted: Thu Jun 04, 2009 11:53 am
by Corwin - Tracker Sup
To run Delphi example you need to import "PDF-XChange V4.0 Type Library". To do this you need to:
1. Install PDF-XChange 4
2. In Delphi 7 (or earlier) menu "Project-> Import Type Library..."
In Delphi 2007 (or Later) menu "Component->Import Component...", choose "Import a Type Library", "Next".
3. Select "PDF-XChange V4.0 Type Library"
4. Select Palette Page (for example ActiveX)
5. Select Install and Create Unit

Also here is small sample for C#

Re: which Developer SDK is Office2PDF in?

Posted: Thu Jun 11, 2009 7:02 am
by tanshd
which option should I set if I donnot wanna show the PrintDialog box?

and my purpose is very simple, just convert .html or .doc file to .pdf,
i think the simplest usage is to call the function Printer.PrintDocument(), but it seems not work

Re: which Developer SDK is Office2PDF in?

Posted: Thu Jun 11, 2009 10:54 am
by Corwin - Tracker Sup
As I know in examples provided with PDF-XChanage, PrintDialog is not in use. Or you still have some problems with running this examples?

Re: which Developer SDK is Office2PDF in?

Posted: Thu Jun 11, 2009 5:26 pm
by John - Tracker Supp
You can display or not the 'save As Dialog' - its your choice, also please note - if using the SDK - there is a specific forum - will move this topic ..

See the manual provided :

Topic :

ShowSaveDialog

Boolean value
If this property is True, pdfSaver will display the Save As dialog where the path and file name of the PDF file must be specified.

Canceling the Save As dialog will cancel the PDF file creation.

Default value: True