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
PDF Optimization in Creator
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.
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.