hefronmedia / pdfsizeopt

Automatically exported from code.google.com/p/pdfsizeopt
0 stars 0 forks source link

Problem with layers in optimized PDF #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(I'm sorry, I can't see anywhere starting with "Labels:" below, so I couldn't 
add a label starting with "Optimize-")

What command do you run to optimize the PDF?
pdfsizeopt --use-multivalent=false M:\Training\Poisson_workshop\dnap.pdf

What does pdfsizeopt display when running the command above?
info: This is pdfsizeopt ZIP rUNKNOWN size=103479
info: loading PDF from: M:\Training\Poisson_workshop\dnap.pdf
info: loaded PDF of 146572 bytes
info: separated to 80 objs + xref + trailer
info: found 3 Type1 fonts loaded
info: writing Type1CConverter (24100 font bytes) to: pso.conv.tmp.ps
info: using Ghostscript "C:\pdfsizeopt\pdfsizeopt_gswin\gswin32c.exe": GPL 
Ghostscript 9.02 (2011-03-30)
info: executing Type1CConverter with Ghostscript: 
"C:\pdfsizeopt\pdfsizeopt_gswin\gswin32c.exe" -q -dNOPAUSE -dBATCH 
-sDEVICE=pdfwrite -dPDFSETTINGS=/printer 
-dColorConversionStrategy=/LeaveColorUnchanged -sOutputFile=pso.conv.tmp.pdf -f 
pso.conv.tmp.ps
Type1CConverter: using interpreter GPL Ghostscript 902 20110330
Type1CConverter: converting font /YKKGPQ+CMMI10 to /Obj0000000073
Type1CConverter: converting font /LTDJQJ+CMR10 to /Obj0000000075
Type1CConverter: converting font /NQYCFA+CMR7 to /Obj0000000077
Type1CConverter: all OK
info: loading PDF from: pso.conv.tmp.pdf
info: loaded PDF of 7139 bytes
info: separated to 20 objs + xref + trailer
info: found 3 fonts in GS output
info: optimized total Type1 font size 24111 to Type1C font size 2852 (12%)
info: optimized Type1 font XObject 73,72%: new size=756 (10%)
info: optimized Type1 font XObject 75,74%: new size=1709 (18%)
info: optimized Type1 font XObject 77,76%: new size=1149 (14%)
info: found 3 Type1C fonts loaded
info: writing Type1CParser (2811 font bytes) to: pso.conv.parse.tmp.ps
info: executing Type1CParser with Ghostscript: 
"C:\pddfsizeopt\pdfsizeopt_gswin\gswin32c.exe" -q -dNOPAUSE -dBATCH 
-sDEVICE=nullpage -sDataFile=pse.conv.parsdata.tmp.ps -f pso.conv.parse.tmp.ps
Type1CParser: using interpreter GPL Ghostscript 902 20110330
Type1CParser: all OK
info: parsed 3 Type1Cfonts
info: eliminated 14 duplicate objs
info: saving PDF with 66 objs to: M:\Training\Poisson_workshop\dnap.pso.pdf
info: generated 12992 bytes (9%)

(I'm sorry, I couldn't seem to work out how to use Subversion to get the 
Windows version of pdfsizeopt. But I downloaded pdfsizeopt yesterday from the 
place indicated in the installation instructions 
(http://bin.pdfsizeopt.googlecode.com/git/pdfsizeopt_win32bin-v3.zip) so it 
should be whatever version that is.)

What's wrong with the optimized PDF?
When you click on A, B, C, D, or E in the PDF nothing happens. Looking at the 
Layers thingy in Adobe Reader, there are five layers present, but they are 
somehow linked: clicking on the box for one layer makes all the layers visible 
or invisible.

What should be there in the optimized PDF instead?
There should be five separate layers. None should be shown when the PDF is 
open, but each of the letters A, B, C, D and E is associated with one of them 
such that that layer is made visible and the other layers made invisible when 
that letter is clicked.

Original issue reported on code.google.com by nerema...@gmail.com on 4 Mar 2015 at 7:28

Attachments: