Loading...

How to affect file size in Annotation sample

Support for GdPicture XMP Annotations Plugin.

How to affect file size in Annotation sample

Postby the1russ » Wed Feb 01, 2012 11:25 pm

Hi,

Using the Annotation sample program, is there a way to affect the resulting PDF file size? As it is, I ran the sample application, added a highlight rectangle, saved the PDF file and it was 10X larger than the original file. Why is that? I tried using the PdfSetCompressionLevel() function with no success. The PDF file I was manipulating is available on the web here: http://www.notifier.com/products/datasheets/DN_6934.pdf

Thanks, Russell S.
the1russ
 
Posts: 2
Joined: Wed Feb 01, 2012 11:09 pm

Re: How to affect file size in Annotation sample

Postby Loïc » Thu Feb 02, 2012 5:55 pm

Hello,

You are probably burning annotation to page using the BurnAnnotationToPage method.

In GdPicture V8 , this method converts the PDF page to raster format including PDF page layer "overlayed" by the annotations layer. This causes size increasing when the initial PDF page includes vector data such text & paths. In other case, this sometime reduces the size.

You can decrease the produced page size by reducing the color depth. This can be done by calling the overloaded method which takes a GdPictureOutputIntent parameter.

IE:

Code: Select all
Object.BurnaAnnotationToPage(True, GdPictureOutputIntent.IntentGrayscale );

 //or

Object.BurnaAnnotationToPage(True, GdPictureOutputIntent.IntentBlackWhite);


In GdPicture V9 we will provide the ability to burn each XMP annotation as raster format (current approach) and as pure PDF annotation in vector format.

Hope this clarify !

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: How to affect file size in Annotation sample

Postby the1russ » Thu Feb 02, 2012 6:06 pm

Thank you very much for the quick reply. Your response did clarify.
the1russ
 
Posts: 2
Joined: Wed Feb 01, 2012 11:09 pm

Re: How to affect file size in Annotation sample

Postby Loïc » Thu Feb 02, 2012 6:07 pm

Welcome :)
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture XMP Annotations Plugin

Who is online

Users browsing this forum: No registered users and 1 guest