Generated PDF documents too large
Bug #534122 reported by
Robert Ancell
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Simple Scan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The PDF documents contain the scanned images are GZIP compressed in RGB format. They should really be in DCT (JPEG) format, however this is not currently supported in Cairo. (I heard at LCA2010 that this was coming in the next release but I can't find any bug/link to point to this).
An adequate solution until Cairo supports this is to write the PDFs using another method (they are very simple, just one page per image). I haven't been able to find and adequate C accessible PDF library or been confident that I understand the PDF specification [1] enough to just write with printf().
Changed in simple-scan: | |
status: | New → Triaged |
importance: | Undecided → Medium |
summary: |
- PDF images not compressed + Generated PDF documents too large |
Changed in simple-scan: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you dep on ImageMagick and call system("convert temp.jpg my_output.pdf")?
That gives a pdf file only fractionally larger than the input jpg.
There are probably C bindings for imagemagick.