Opened 13 years ago
Last modified 13 years ago
#3466 new bug
Extremely Bloated PDF Vector Export under Win.
Reported by: | Thaddeus | Owned by: | mhugent |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.7.0 |
Component: | Printing | Version: | |
Keywords: | Bloated PDF Vector Export | Cc: | |
Must Fix for Release: | No | Platform: | Windows |
Platform Version: | win 1.6 | Awaiting user input: | no |
Description
Under Win using 1.6 I noticed the PC struggling to draw on the screen these PDF printouts to show just one pair of lat/lon point. Examining the the PDF reveals strange huge data XObjects.
The attached example was created by exporting an empty project with no objects on the Composer, that is, launch QGIS, run Composer Manager, Add a composer view and Export it.
The resulting PDF has, out of no where, 3 large embedded images, PDF objects 7, 9 and 11, each with a size of 3508 x 2480 pixels and 3 bytes per pixel in two of them, the other one is grayscale: the total cargo to process and unfold on memory is like 60 mega bytes. Also notice the PDF object 13 with malformed PS code, the third line pushes the graphic setting, and right after that pushes again, followed by pop and pop, push, push, pop, pop and finally push???
Attachments (5)
Change History (8)
by , 13 years ago
Attachment: | QGIS16W_V_Default_Empty.pdf.tar.gz added |
---|
comment:1 by , 13 years ago
Platform: | Debian → Windows |
---|
comment:2 by , 13 years ago
Here is some test data:
1-6-test.zip the QGS test file has two layers, an raster image showing a well defined edge --nice for hand tracing-- and a line-SHP layer with the trace of the raster layer: 8 small files in total.
nada01_1-6_100dpi_vector_win2k.pdf This is the export-to-PDF result under Win2k.
"StreamsFrom nada01_1-6_100dpi_vector_win2k.zip" This is the export-to-PDF result under Win2k with all streams unzipped using PDFtk and then dumping the streams using a script I wrote. 6 streams are readily identified as JPG objects, one has the funny PS code to frame-mask the images behind. 1 image is the off-place SHP trace (purple color) as a raster, which should really be vector, but blanking this object image reveals another raster (object at offset 16765?) copy of the same trace in green color now?. No vector data was found ??
by , 13 years ago
Attachment: | nada01_1-6_100dpi_vector_win2k.zip added |
---|
by , 13 years ago
Attachment: | StreamsFrom__ nada01_1-6_100dpi_vector_win2k.zip added |
---|
by , 13 years ago
Attachment: | 1-6-test.zip added |
---|
by , 13 years ago
Attachment: | nada01_1-6_100dpi_vector_win2k.pdf added |
---|
comment:3 by , 13 years ago
Owner: | changed from | to
---|
I think this is a duplicate of #3217, although I didn't think they were raster objects.