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)

QGIS16W_V_Default_Empty.pdf.tar.gz (2.9 KB ) - added by Thaddeus 13 years ago.
nada01_1-6_100dpi_vector_win2k.zip (143.9 KB ) - added by Thaddeus 13 years ago.
StreamsFrom__ nada01_1-6_100dpi_vector_win2k.zip (206.9 KB ) - added by Thaddeus 13 years ago.
1-6-test.zip (26.0 KB ) - added by Thaddeus 13 years ago.
nada01_1-6_100dpi_vector_win2k.pdf (209.7 KB ) - added by Thaddeus 13 years ago.

Download all attachments as: .zip

Change History (8)

by Thaddeus, 13 years ago

comment:1 by Alister, 13 years ago

Platform: DebianWindows

I think this is a duplicate of #3217, although I didn't think they were raster objects.

comment:2 by Thaddeus, 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 Thaddeus, 13 years ago

by Thaddeus, 13 years ago

Attachment: 1-6-test.zip added

by Thaddeus, 13 years ago

comment:3 by jef, 13 years ago

Owner: changed from jef to mhugent
Note: See TracTickets for help on using tickets.