Aloaha PDF Optimizer

In comparison to other file formats, the PDF is a great way to save and distribute compact files. You can also make PDFs even more compact without compromising integrity. Use the 'Aloaha PDF Optimization' feature to reduce file size with image compression options and merging multiple inefficient objects into single optimized objects.

With the Aloaha PDF Optimizer existing PDF documents can be optimized in performance and size. Objects are reordered, Images are re-compressed into JPG or JPEG2000, Text Objects are analyzed and merged to smaller Objects and last but not least uncompressed streams are being compressed.

To call the API is pretty straight forward since it takes its settings from the registry. Before you call the API please configure the following values in HKCU\Software\Aloaha\pdf

Text Stream Optimizer

Please set the value optimizer to 1 to merge single character objects to words. Please set this value to 2 if you would like to merge these word objects to sentences.

Image Optimizer


Please set the value imagecompression to 1 to enable the Image Optimizer. The value compressionmode defines if images should be JPG or JPG2000 compressed. Setting compressionmode mode to 1 chooses JPG2000, setting it to 2 chooses JPG compression. 
The compressionfactor itself is being configured in compressionfactor. The compressionfactor can be a value between 1 and 99. 
The Image Optimizer is also part of the Aloaha PDF Editor. Any PDF can be saved as compressed PDF.





PDF Optimizer VBS Code Sample


dim pdf
dim inputpdf
dim outputpdf 'could be the same as inputpdf
dim dummy

set pdf = createobject("aloahapdf.edit")
          inputpdf="c:\input.pdf"
         outputpdf="c:\output.pdf"
         call pdf.optimize_pdf(cstr(inputpdf), cstr(outputpdf),dummy,dummy)

set pdf = nothing



 PDF_optimizer.vbs (0,46 KB)

Please ask...

Although we really tried hard, there are always questions left open.

Please send us your question.
We would be glad to answer it.

Aloaha PDF Optimizer

The Aloaha PDF Optimizer is also available as hotfolder!
PDF SDKPDF Signature APICertificate PropertiesSample CodeText StampsPDF AttachmentsImage 2 PDFPDF to Multipage TIFFAppend PDFInsert Blank PageRender ImageStamp PDF with PDFDraw PDF as LetterheadApply LetterheadPDF BackgroundsAdd NotesURL HotspotSecure PDF ViewerPDF OptimizerPDF Encryption APIPDF Printing APIPDF BookmarksPDF BarcodingMerge PDF DocumentsSample APIsResize PDFCrop PDF PagePDF InformationPDF2TXTNormalize PagesDirect PDF ConversionPDF Form Saver SDKSmart Card APIAloaha Web ServicesAloaha Print MonitorAloaha Remote ConfigurationWebDAVLDAP ClientProgramming Office MacrosIIS Event Sinks