ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF image compression
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AScomp

Germany
17 Posts

Posted - Feb 25 2022 :  19:13:49  Show Profile  Reply
Hi,

is there a way to compress images in a PDF file with ImageEN?

I would like to open a specific PDF file, reduce quality of images included in the PDF file and save the PDF (to reduce PDF file size).

Kind regards

Andreas

xequte

7215 Posts

Posted - Feb 26 2022 :  17:19:53  Show Profile  Reply
Hi Andreas

If the PDF only contains images, then yes (with caveats). If it contains text and other content that you don't want rasterized, then no.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
73 Posts

Posted - Sep 09 2022 :  20:18:35  Show Profile  Reply
I'm exploring this too - I have PDFs where users embed images with 300dpi resolution unnecessarily. Ideally, I would like to extract those images, reduce the resolution, then replace the original images with these resampled images. Is that possible using ImageEn?

Thanks in advance.

Ray
Go to Top of Page

xequte

7215 Posts

Posted - Sep 10 2022 :  00:27:08  Show Profile  Reply
Hi Ray

Specifically speaking, ImageEn can do this:

1. Load the pages of the PDF as images (using PDFium). Note that this includes the whole page, so you would need to crop them in some way, e.g. using:

https://www.imageen.com/help/TImageEnProc.AutoCrop.html


2. Resample the images to lower the resolution:

https://www.imageen.com/help/TImageEnProc.Resample.html


3. Save the set of images as a new PDF (ImageEn native PDF support):

https://www.imageen.com/help/TImageEnIO.CreatePDFFile.html


It is not an ideal solution. I expect there are better/easier ways to do this.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
73 Posts

Posted - Sep 14 2022 :  18:12:39  Show Profile  Reply
Hi Nigel,

Thanks, will try this.

Ray
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: