Decrese the pdf size with AddEmbeddedImageAnnotInteractive

Discussions about annotation support.
Post Reply
hardikv
Posts: 43
Joined: Thu Jan 27, 2011 11:46 am

Decrese the pdf size with AddEmbeddedImageAnnotInteractive

Post by hardikv » Fri Sep 14, 2012 2:02 pm

Hi All,

I am developing one application in which i created the embedded annotation so i use this(GdViewer1.AddEmbeddedImageAnnotInteractive) method..

And then i burn the page so this annotation is burn in pdf..but size of this pdf is so increase..

So i want to use Drawimage method of GdPicturePDF to decrease the size of pdf..

So anybody has any idea how to implement clone of AddEmbeddedImageAnnotInteractive using Drawimage method in GdPicturePDF ?

OR

Decrease the size of pdf in AddEmbeddedImageAnnotInteractive??

User avatar
Loïc
Site Admin
Posts: 5581
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Decrese the pdf size with AddEmbeddedImageAnnotInteracti

Post by Loïc » Fri Sep 14, 2012 2:14 pm

The following answer is deprecated, see the bottom of this topic for more information...
Hello,

Currently the burning annotation mechanism creates a bitmap from the initial page content. In a future version we will overlay a vector layer that will produces smaller content.

For now what you can do is:

- Extract the bitmap from the page.
- Resize the bitmap.
- Replace the initial page bitmap by the one extracted.

An example of such practice can be found here: viewtopic.php?t=3594

Kind regards,

Loïc

hardikv
Posts: 43
Joined: Thu Jan 27, 2011 11:46 am

Re: Decrese the pdf size with AddEmbeddedImageAnnotInteracti

Post by hardikv » Mon Sep 17, 2012 8:29 am

Hi loic,

Thanks for your quick reply..

Is there use GDpicturePdf.Drawimage() method to made clone of AddEmbeddedImageAnnotInteractive() ?

If yes then pls give me example?

User avatar
Loïc
Site Admin
Posts: 5581
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Decrese the pdf size with AddEmbeddedImageAnnotInteracti

Post by Loïc » Mon Sep 17, 2012 9:17 am

Hello,

Could you clarify the question? I am not sure to correctly understand.

Regards,

Loïc

hardikv
Posts: 43
Joined: Thu Jan 27, 2011 11:46 am

Re: Decrese the pdf size with AddEmbeddedImageAnnotInteracti

Post by hardikv » Wed Sep 19, 2012 5:55 am

Hello loic,

Thanks for your reply.

Now i have solved it..But there is some issue regarding pdf size...

Below steps are followed to save pdf.

1.To add annotation with the help of AddEmbeddedImageAnnotInteractive()
2.Then burn annotation using BurnAnnotationToPage()
3.Then compress using jbig2 compression.
3.And save pdf ...

My pdf size is 300kb..and it is in color
After BurnAnnotationToPage() pdf size become 800kb.
Then it compressed using jBig2 then size is reduced and became 700kb.

But it is so much large size..
So if u have any idea to more reduced pdf size then please help me..

User avatar
Loïc
Site Admin
Posts: 5581
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Decrese the pdf size with AddEmbeddedImageAnnotInteracti

Post by Loïc » Sat Sep 14, 2013 1:13 pm

Hello,

Here an update about such issue: GdPicture.NET 10 come with a GdPicture/XMP annotation vector burning mode. This permits to keep initial page vector content, quality, reduces time and dramatically reduces generated page size. We've updated our annotation application demo delivered with the installation package to demonstrate how to achieve that.
Download link: http://www.gdpicture.com/download.php

If you need any additional information just jet me know.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest