My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 48 attachment: pdfsizeopt.log (3.5 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
python pdfsizeopt.py --use-pngout=true --use-jbig2=true --use-multivalent=true Scan-110805-0023_1L.pdf
info: This is pdfsizeopt.py rUNKNOWN size=279220.
info: loading PDF from: Scan-110805-0023_1L.pdf
info: loaded PDF of 178418 bytes
info: separated to 17 objs + xref + trailer
warning: cannot parse obj 13: __main__.PdfTokenParseError: endobj/stream not found from ofs=177711 to ofs=177727
warning: cannot parse obj 13: __main__.PdfTokenParseError: endobj/stream not found from ofs=177711 to ofs=177727
info: found 0 Type1 fonts loaded
info: found 0 Type1C fonts loaded
info: will optimize image XObject 8; orig width=2273 height=3308 colorspace=/DeviceGray bpc=8 filter=[ /LZWDecode ] dp=0 size=171101 gs_device=pnggray
info: optimizing 1 images of 171101 bytes in total
info: writing ImageRenderer (171103 image bytes) to: pso.conv.pnggray.tmp.ps
info: executing ImageRenderer with Ghostscript: gs -q -dNOPAUSE -dBATCH -sDEVICE=pnggray -sOutputFile='pso.conv-%04d.pnggray.tmp.png' -f pso.conv.pnggray.tmp.ps
ImageRenderer: rendering image XObject 8 width=2273 height=3308 bpc=8 colorspace=/DeviceGray filter=[/LZWDecode] decodeparms=null device=pnggray
ImageRenderer: all OK
info: loading image from: pso.conv-0001.pnggray.tmp.png
info: loaded PNG IDAT of 148478 bytes
info: executing image optimizer sam2p_np: sam2p -pdf:2 -c zip:1:9 -s Gray1:Indexed1:Gray2:Indexed2:Rgb1:Gray4:Indexed4:Rgb2:Gray8:Indexed8:Rgb4:Rgb8:stop -- pso.conv-0001.pnggray.tmp.png pso.conv-8.sam2p-np.pdf
This is sam2p 0.49.
Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
sam2p: Notice: PNM: loaded alpha, but no transparent pixels
sam2p: Notice: job: read InputFile: pso.conv-0001.pnggray.tmp.png
sam2p: Notice: writeTTT: using template: p02
sam2p: Notice: applyProfile: applied OutputRule #0
sam2p: Notice: job: written OutputFile: pso.conv-8.sam2p-np.pdf
Success.
info: loading image from: pso.conv-8.sam2p-np.pdf
info: loading PDF from: pso.conv-8.sam2p-np.pdf
info: loaded PDF of 108539 bytes
info: separated to 5 objs + xref + trailer
info: loaded PNG IDAT of 107818 bytes
info: executing image optimizer sam2p_pr: sam2p -c zip:15:9 -- pso.conv-0001.pnggray.tmp.png pso.conv-8.sam2p-pr.png
This is sam2p 0.49.
Available Loaders: PS PDF JAI PNG JPEG TIFF PNM BMP GIF LBM XPM PCX TGA.
Available Appliers: XWD Meta Empty BMP PNG TIFF6 TIFF6-JAI JPEG-JAI JPEG PNM GIF89a+LZW XPM PSL1C PSL23+PDF PSL2+PDF-JAI P-TrOpBb.
sam2p: Notice: PNM: loaded alpha, but no transparent pixels
sam2p: Notice: job: read InputFile: pso.conv-0001.pnggray.tmp.png
sam2p: Notice: applyProfile: applied OutputRule #2
sam2p: Notice: job: written OutputFile: pso.conv-8.sam2p-pr.png
Success.
info: loading image from: pso.conv-8.sam2p-pr.png
info: loaded PNG IDAT of 107922 bytes
info: executing image optimizer jbig2: jbig2 -p pso.conv-8.sam2p-pr.png >pso.conv-8.jbig2
Error in pixReadStreamPng: function not present
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
info: jbig2 failed, status=0x300
Traceback (most recent call last):
File "pdfsizeopt.py", line 6968, in <module>
main(sys.argv)
File "pdfsizeopt.py", line 6951, in main
pdf.OptimizeImages(use_pngout=use_pngout, use_jbig2=use_jbig2)
File "pdfsizeopt.py", line 5719, in OptimizeImages
cmd_name='jbig2', do_just_read=True)[1]
File "pdfsizeopt.py", line 5162, in ConvertImage
assert 0, '%s failed (status)' % cmd_name
AssertionError: jbig2 failed (status)
Powered by Google Project Hosting