Issue 30: Suggestion: use multivalent's -nopagepiece
Status:  Fixed
Owner:
Closed:  Feb 2011
Reported by lev.bishop, Jan 24, 2010
Using -nopagepiece with tool.pdf.Compress seems to be a good idea in
general. I have a file (unfortunately private, so I cannot post it) which
shrinks by 80%, over 20Mb with this option. 

Here is a patch:

Index: pdfsizeopt.py
===================================================================
--- pdfsizeopt.py       (revision 134)
+++ pdfsizeopt.py       (working copy)
@@ -5952,7 +5952,7 @@
       assert 0, 'Multivalent.jar not found, see above'
     assert ':' not in multivalent_jar  # $CLASSPATH separator

-    multivalent_cmd = 'java -cp %s tool.pdf.Compress %s' % (
+    multivalent_cmd = 'java -cp %s tool.pdf.Compress -nopagepiece %s' % (
         ShellQuoteFileName(multivalent_jar),
         ShellQuoteFileName(in_pdf_tmp_file_name))
     print >>sys.stderr, (
Mar 29, 2010
#1 william.bader@gmail.com
In addition to -nopagepiece, would it be worth adding -nocore14 and -noalt?
http://multivalent.sourceforge.net/Tools/pdf/Compress.html suggests -nopagepiece
-nocore14 -subset -jpeg -noalt as the recommended options for posting on the web.
-subset is listed as experimental, and -jpeg might do lossy compression, but the
others seem ok.
Feb 10, 2011
Project Member #2 pts...@gmail.com
Thanks for the suggestion. Added -nopagepiece and -noalt in r149. I may add -nocore14 as well later as a pdfsizeopt feature.
Status: Fixed
Labels: -Type-Defect Type-Enhancement