Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Engineering


Topic: How to linearize without massive byte increase?
Conf: (P-PDF) Engineering, Msg: 157473
From: rentthisspace
Date: 1/12/2007 12:03 PM

I have a plug-in that updates some metadata, and adds some dictionaries to define the associated index for the file.

When saving using the PDSaveIncremental flag, the file increases by an acceptable 5K bytes. But, the files aren't linearized.

When saving with PDSaveLinearized and the required PDSaveFull flag, the files increase to nearly double size. This is unacceptable for our purpose, since many of our original files are over 3MB, and increase to over 6MB.

Linearization is not available without save full, as stated in the following comment from PDExpT.h, where PDSaveFlags are defined:

/** Write the PDF file in a format that is optimized for page-served remote (network) access ("linearized").
This flag is ignored if PDSaveFull is off.

(Prior to Acrobat 7, linearizing a file caused Cos objects
to be renumbered, which required that some plug-ins use
notifications to release and re-acquire objects. In
Acrobat 7, objects are no longer renumbered.)
*/
PDSaveLinearized = 0x04,

...a further comment mentions garbage collection...

/** Remove unreferenced objects, often reducing file
size. Plug-ins are encouraged to use this flag.
This flag is ignored if PDSaveFull is off.
*/
PDSaveCollectGarbage = 0x20,

Here is my save call:

PDDocSave(activePDDoc, PDSaveFull | PDSaveLinearized | PDSaveCollectGarbage, asPathDest, NULL, NULL, NULL);


QUESTION: How to save linearized, but keep the size down?

"If you think education's expensive, try ignorance."


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Presidential finger puppets

With the presidential election approaching in a couple of months, excitement is building in the US. What could make the wait easier to bear? How about fold-them-yourself presidential candidate finger puppets?

September 04, 2008
Search Planet PDF
more searching options...




PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Solid Documents - PDF to Word Converter

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories