PDF-XCE manual compression/optimization example

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

PDF-XCE manual compression/optimization example

Post by MedBooster »

Is "optimizing" in PDF-XCe basically the same as compression in other software?


Not speaking about zipping files here, just making the file size smaller, by reducing image quality etc....

After "optimizing" the manual PDF in PDF-XCE it went from 123 mb to 50.4


"compressing" it in PDF24 just reduced it by a little more:
49.6 mb
PDFXE10_MAN_Optimized.pdf
(49.68 MiB) Downloaded 49 times
Page 92 in the manual is about "save as optimized"
image.png

It is well described, BUT I am missing an explanation about WHICH exact presets to use for the SMALLEST file size as possible. In cases where reading images isn't that important. – does the compression mode matter, or is it mostly about the DPI choice? What do you guys think the minimum readable DPI is , generally?


With the manual as an example 90% of the file size is the image content.
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10880
Joined: Wed Jan 03, 2018 6:52 pm

Re: PDF-XCE manual compression/optimization example

Post by Daniel - PDF-XChange »

Hello, MedBooster

I am unsure how our competitors choose to name their functions, so it is very possible they have simply named their "optimization" function "compression" arbitrarily. However, in practice, while the terms are similar, they are not quite the same.
As an example, reducing the size of an image is a form of compression, because images are natively stored using a handful of specialized compression algorithms (PNG and JPG are two different "image compression methods"). Changing those formats is "re-compressing" the image, whether or not the file size is actually reduced, the image is being "compressed" by the action.

Our PDF-Optimization process allows for control of some image recompression options, but also allows for tasks that are not distinctly "compression" processes. One example is handling of unused Bookmarks/named destinations and layers (those with no content or references).
  • "Compression" necessitates that the original content is still present, but its data is arranged in a way to reduce redundancies, in some cases it may also needs some sort of a special cipher to "de-compress" for viewing later on. An important part of compression is that it does not necessarily always imply that the original file size is reduced, and some compression actions can inversely increase the file size if misconfigured, or when "re-compressing" an item between two differing methods.
  • Optimizing, is a more generic term we use intentionally, because there is no reason to keep some items at all, optimizing the file allows for such items to be entirely deleted. There is no need to "compress" something that is effectively useless (leaving it taking up "less", but still "some" space in your file). Nonetheless, since optimizing does also include compression steps, it will have many of the same benefits, and if misconfigured, can have the same detriments as compression does in those respective areas.
So while there are similarities in the output, and compression can be a "lossy" process from a "quality" standpoint, it does not necessarily have to be, and many compression methods can retain the original quality quite well. Optimization on the other hand, can leverage the benefits of compression in areas where it is beneficial, and can also perform some beneficial deletion of content that does not need to (or does not have a method to simply) be "compressed".

Finally on your question here:
MedBooster wrote: Tue Dec 03, 2024 5:21 pm It is well described, BUT I am missing an explanation about WHICH exact presets to use for the SMALLEST file size as possible. In cases where reading images isn't that important. – does the compression mode matter, or is it mostly about the DPI choice? What do you guys think the minimum readable DPI is , generally?
This is the best part of both compression AND optimization. There is no, and likely never will be a "one option fits all" answer. What is readable or acceptable of course varies from person to person, and the hardware they are using (your monitor/resolution/size primarily); beyond that, the file in question also has a great influence to the output. If the images are in Format A, instead of Format B, then recompressing them can have a positive or negative effect on the end result. Even if the images in all in Format A, some of them may be more "color" focused nature pictures, and so compressing them using compression method B could give a much smaller result, while other images are text based, black/white, or are just very simple "stylized/minimalistic art" pieces, and in turn, could be negatively affected by the same action - increasing their size.

Since the results will vary from document to document, image to image, etc, there is no correct "this is the best option" answer I can give you. You will need to test out the functions available with your documents, and learn what is acceptable by your own standards through trial and error.

As vague general advice, the default settings when you initially open the save as optimized menu, will minimize destructive actions (does not remove unused bookmarks for example) and has image compress options set to values which should result in a visually acceptable output for most people, even if you could certainly compress most images further, resulting in larger reductions to the file size.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
David.P
User
Posts: 1635
Joined: Thu Feb 28, 2008 8:16 pm

Re: PDF-XCE manual compression/optimization example

Post by David.P »

Just on a quick note, I was trying out "Optimize PDF" for the first time the other day. I wanted to recompress the current black and white scan from ZIP to JBIG compression, however "Optimize PDF" didn't do anything to the images in the file.

So I had to resort to "Recompress Images" instead :oops:
David.P
PDF-XChange Pro
mCHSNUg5Pz8cPap
User
Posts: 214
Joined: Wed Aug 04, 2021 6:36 pm

Re: PDF-XCE manual compression/optimization example

Post by mCHSNUg5Pz8cPap »

David.P wrote: Tue Dec 03, 2024 10:08 pm Just on a quick note, I was trying out "Optimize PDF" for the first time the other day. I wanted to recompress the current black and white scan from ZIP to JBIG compression, however "Optimize PDF" didn't do anything to the images in the file.
I just tried optimizing a patent document (each sheet is a single CCITT Group 4 image) (1.12 MB) to Jbig2 (582 KB) using save as optimized and it worked fine. I then tried it by first going from CCITT Group 4 (1.12 MB file) to Zip (1.49 MB; this made it bigger) and from Zip to Jbig2 (582 KB). It all worked fine. These are the settings I used:
image.png
Features I really want:
1. Fully customizable toolbars: https://forum.tracker-software.com/viewtopic.php?p=167585
2. Ability to draw curved lines: https://forum.pdf-xchange.com/viewtopic.php?p=178335
User avatar
David.P
User
Posts: 1635
Joined: Thu Feb 28, 2008 8:16 pm

Re: PDF-XCE manual compression/optimization example

Post by David.P »

Sorry, I was referring to the wrong dialog. "Save as Optimized" usually works perfectly for me as well. I was actually referring to the "Enhance Scanned Pages" dialog. This was the one that didn't work.

image.png
David.P
PDF-XChange Pro
mCHSNUg5Pz8cPap
User
Posts: 214
Joined: Wed Aug 04, 2021 6:36 pm

Re: PDF-XCE manual compression/optimization example

Post by mCHSNUg5Pz8cPap »

David.P wrote: Tue Dec 03, 2024 11:58 pm Sorry, I was referring to the wrong dialog. "Save as Optimized" usually works perfectly for me as well. I was actually referring to the "Enhance Scanned Pages" dialog. This was the one that didn't work.
I reproduced the problem. The Enhance Scanned Pages compressed the CCITT Group 4 images to ZIP even though the Monochrome setting was set to JBIG2. Definitely a bug.
Features I really want:
1. Fully customizable toolbars: https://forum.tracker-software.com/viewtopic.php?p=167585
2. Ability to draw curved lines: https://forum.pdf-xchange.com/viewtopic.php?p=178335
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10880
Joined: Wed Jan 03, 2018 6:52 pm

Re: PDF-XCE manual compression/optimization example

Post by Daniel - PDF-XChange »

Hello, mCHSNUg5Pz8cPap

Could I possibly ask for a sample file. I believe it is possible for CCITT group4 formatted images to be classified as "indexed" instead of "monochrome" in some circumstances, and would be keen to see your file to speak with the Dev team on if this is the correct handling for this case. (At the very least, looking at the settings, that would explain the conversion to zip format).

In any case, the "Enhance Scanned pages" tool is not specifically designed as a method of saving space. Ideally, you should be using the "recompress images" tool, or going directly to "Save as optimized". Note that both menu's have extensive configuration options, and very specifically; the "recompress images" tool is not a "selection" window. Each of the tiles that appears to be "selectable" is a different set of configuration options, for the various content types we could encounter. Be sure to check all of them (select tile > click "edit") before proceeding with the compression, for the best results.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
mCHSNUg5Pz8cPap
User
Posts: 214
Joined: Wed Aug 04, 2021 6:36 pm

Re: PDF-XCE manual compression/optimization example

Post by mCHSNUg5Pz8cPap »

TrackerSupp-Daniel wrote: Wed Dec 04, 2024 4:30 pm Hello, mCHSNUg5Pz8cPap

Could I possibly ask for a sample file. I believe it is possible for CCITT group4 formatted images to be classified as "indexed" instead of "monochrome" in some circumstances, and would be keen to see your file to speak with the Dev team on if this is the correct handling for this case. (At the very least, looking at the settings, that would explain the conversion to zip format).
Here is a file.
11452874.pdf
(2.46 MiB) Downloaded 40 times
.
Use enhanced scan with the following settings:
image.png
.
The CCITT Group 4 images all end up as ZIP images.
Features I really want:
1. Fully customizable toolbars: https://forum.tracker-software.com/viewtopic.php?p=167585
2. Ability to draw curved lines: https://forum.pdf-xchange.com/viewtopic.php?p=178335
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10880
Joined: Wed Jan 03, 2018 6:52 pm

Re: PDF-XCE manual compression/optimization example

Post by Daniel - PDF-XChange »

Hello, mCHSNUg5Pz8cPap

Thank you, I have reproduced this issue, and am showing the Dev team, Once I have a reply on whether this is a bug, or if the images in your sample file simply are "indexed" image content, instead of actual monochrome, I will let you know.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply