Print Page | Close Window

Compress existing images in PDF file

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3549
Printed Date: 22 Nov 24 at 1:39AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Compress existing images in PDF file
Posted By: ross_t
Subject: Compress existing images in PDF file
Date Posted: 02 Mar 18 at 6:05PM
Hi,

I wish to apply compression to the existing images in PDF file. Is it possible for me to set the Image Quality and Resolution for the existing images in a given PDF file and then save the resulting PDF as a new file without assembling the entire PDF file manually?

Waiting for your reply...

Cheers,

Ross.



Replies:
Posted By: Ingo
Date Posted: 02 Mar 18 at 7:27PM
Hi Ross,

for already existing images there's no one-click-function in QuickPDF.
You can do similar things with extracting images from pdf-documents:
This... http://www.quickpdf.org/forum/topic376&KW=swb1.html
or that... http://www.debenu.com/kb/extract-images-from-pdf-files-as-the-appropriate-image-type/
Work on them with a third party tool...
and replace the existing images with the new smaller ones:
http://www.debenu.com/docs/pdf_library_reference/ReplaceImage.php

You'll find more here:
http://www.debenu.com/docs/pdf_library_reference/Search.php




-------------
Cheers,
Ingo



Posted By: mLipok
Date Posted: 03 Mar 18 at 1:01PM
Ingo what about :
http://www.debenu.com/docs/pdf_library_reference/CompressImages.php

?



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Ingo
Date Posted: 03 Mar 18 at 2:58PM
Hi :)

i think "... added to the document..." (from the reference) means "added in this moment"
and not "being already inside".
 


-------------
Cheers,
Ingo



Posted By: ross_t
Date Posted: 03 Mar 18 at 6:18PM
Thanks so much guys for your help. I will try out the "extract image, compress and replace" algorithm. I'm sure it will work good.


Posted By: mLipok
Date Posted: 04 Mar 18 at 10:02PM
Originally posted by Ingo Ingo wrote:

Hi :)

i think "... added to the document..." (from the reference) means "added in this moment"
and not "being already inside".
 
Oh I see.

Maybe we can combine:

http://www.debenu.com/kb/extract-images-from-pdf-files-as-the-appropriate-image-type/
http://www.debenu.com/docs/pdf_library_reference/ReplaceImage.php
http://www.debenu.com/docs/pdf_library_reference/CompressImages.php

I mean extract, + replace with the same data but + CompressImages

I hope CompressImages toogether with ReplaceImage should made the trick..... but I never tested this before.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: mLipok
Date Posted: 04 Mar 18 at 10:05PM
I also staying in hope that we can use:
OriginalImageIDint32 = NewImageIDint32
In such case we should be able to do this without any file/disc operation.



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: mLipok
Date Posted: 04 Mar 18 at 11:02PM
more discussion here:
http://www.quickpdf.org/forum/reduce-pdf-file-size_topic2846.html
http://www.quickpdf.org/forum/exported-images-original-file-size_topic2151.html
http://www.quickpdf.org/forum/to-reduce-the-pdf-file-size_topic1404.html
http://www.quickpdf.org/forum/reducing-pdf-file-size_topic792.html
http://www.planetpdf.com/enterprise/article.asp?ContentID=reducing_pdf_file_size_
http://www.debenu.com/kb/can-i-compress-my-pdf/
http://www.quickpdflibrary.com/faq/reduce-file-size.php
http://www.quickpdflibrary.com/faq/compressing-pdf-files.php
http://www.quickpdflibrary.com/faq/resampling-a-pdf-to-reduce-file-size.php



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: mLipok
Date Posted: 02 May 18 at 2:16PM
Any body know if QuickPDF is able to compress PDF Files with MRC ?
https://en.wikipedia.org/wiki/Mixed_raster_content




-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: Ingo
Date Posted: 03 May 18 at 10:28AM
QP aren't able to use MRC.
Relevant images for mrc-compression need a special internal data structure.
These special internal data structure isn't taken into account regarding the image handling in the QP-functionalities.



-------------
Cheers,
Ingo



Posted By: mLipok
Date Posted: 04 May 18 at 7:57AM
what a pity ... Ermm

-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: mLipok
Date Posted: 04 May 18 at 8:04AM
Here too... I just posted Feature Request

-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: noramila
Date Posted: 08 Nov 24 at 11:12AM

To compress images in a PDF, extract and compress the images, then replace them in the PDF. You can use tools like Debenu PDF library or QuickPDF. And For different image format such as JPEG, PNG, WEBP, etc you can also try online  https://jpegcompressor.com/" rel="nofollow - image compressor  tool.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk