How to affect file size in Annotation sample
How to affect file size in Annotation sample
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.
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.
Re: How to affect file size in Annotation sample
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:
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
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);
Hope this clarify !
Kind regards,
Loïc
Re: How to affect file size in Annotation sample
Thank you very much for the quick reply. Your response did clarify.
Who is online
Users browsing this forum: No registered users and 1 guest