PDF Optimization in Creator

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
durban
Posts: 26
Joined: Tue Oct 01 2002
Contact:

PDF Optimization in Creator

Post by durban »

In PDF Creator example when i click on design mode a window with optimization parameters appear, how to call in developper release this option ?

I like to specify the optimization mode for text, but where, which property or method ?

Thank you
Didier
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

To optimize a pdf file programatically using the PDF Creator you can use the .OptimizeDocument() method.

This is mainly used in the Professional version of the PDF Creator to Export documents to other formats like RTF, HTML, Excel, or Jpeg.

I will include here a small VB code to that exports a pdf file to RTF:

Private Sub ExportTo_Click()
Dim pdf As New ACPDFCREACTIVEX.PDFCreactiveX
With pdf
.SetLicenseKey Licensee, Pro version Code
.Open "C:\Temp\Test.pdf", ""
.OptimizeDocument 1
'.ExportToRTF "c:\temp\test11.rtf", 1, 0
End With

The OptimizeDocument() takes one parameter that is the optimization level, it can have the following values:
Line optimization (1) used when exporting to RTF
Paragraph optimization (2) used when exporting to HTML
Table optimization (3) used when exporting to Excel
No optimization (0) used when exporting to Jpeg.

Hope this helps.
Post Reply