PDF-XCE manual compression/optimization example
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
-
- User
- Posts: 1372
- Joined: Mon Nov 15, 2021 8:38 pm
PDF-XCE manual compression/optimization example
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
Page 92 in the manual is about "save as optimized"
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.
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
Page 92 in the manual is about "save as optimized"
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
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
- Daniel - PDF-XChange
- Site Admin
- Posts: 10910
- Joined: Wed Jan 03, 2018 6:52 pm
Re: PDF-XCE manual compression/optimization example
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).
Finally on your question here:
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,
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.
Finally on your question here:
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.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?
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
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
Re: PDF-XCE manual compression/optimization example
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
So I had to resort to "Recompress Images" instead

David.P
PDF-XChange Pro
PDF-XChange Pro
-
- User
- Posts: 214
- Joined: Wed Aug 04, 2021 6:36 pm
Re: PDF-XCE manual compression/optimization example
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:
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
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
Re: PDF-XCE manual compression/optimization example
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.
David.P
PDF-XChange Pro
PDF-XChange Pro
-
- User
- Posts: 214
- Joined: Wed Aug 04, 2021 6:36 pm
Re: PDF-XCE manual compression/optimization example
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
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
- Daniel - PDF-XChange
- Site Admin
- Posts: 10910
- Joined: Wed Jan 03, 2018 6:52 pm
Re: PDF-XCE manual compression/optimization example
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,
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
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
- Posts: 214
- Joined: Wed Aug 04, 2021 6:36 pm
Re: PDF-XCE manual compression/optimization example
Here is a file. .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).
Use enhanced scan with the following settings: .
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
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
- Daniel - PDF-XChange
- Site Admin
- Posts: 10910
- Joined: Wed Jan 03, 2018 6:52 pm
Re: PDF-XCE manual compression/optimization example
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,
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
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