Opened 17 years ago
Closed 13 years ago
#2344 closed defect (fixed)
pdf output: labels mangled and not buffered, vector lines disjoined
Reported by: | sieczka | Owned by: | zjames |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | Output-PDF | Version: | 5.0 |
Severity: | normal | Keywords: | pdf, |
Cc: | unicoletti@… |
Description
This report applies to both MS 4.10.2 and 5.0.
In PDF output national characters in labels are rendered wrong, labels are not buffered and vector lines have some turns not round (looks like lines are disjoined at some vertices). All these look nice and round in PNG output.
Please compare the attached PDF and PNG, both created with MS 5 shp2img. The PNG is OK, PDF has artifacts.
I'm also attaching the input shapefile and map file which can be used to reproduce the problem. DBF is in UTF-8 and my locale environment is all UTF-8 too.
Ubuntu Dapper 32bit, using PDFLib-Lite 7.0.2. If more details are needed please let me know.
Attachments (4)
Change History (15)
by , 17 years ago
comment:1 by , 17 years ago
The font file was to big to be uploaded to Trac. It was a FreeSans.ttf from Ubuntu Dapper distro, FWIW. Any other font should be OK too.
comment:2 by , 17 years ago
Component: | MapServer C Library → Output-PDF |
---|---|
Owner: | changed from | to
comment:3 by , 17 years ago
Cc: | added |
---|
follow-up: 5 comment:4 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
The disjoined lines are an easy fix - the linecaps were not being set to round as is done with other renderers. I'm going to have to look into the label problems a little further. Can you give it a try after applying the attached patch?
comment:5 by , 17 years ago
Keywords: | pdf → pdf, |
---|
Replying to zjames:
The disjoined lines are an easy fix - the linecaps were not being set to round as is done with other renderers. I'm going to have to look into the label problems a little further. Can you give it a try after applying the attached patch?
It works perfect. Thanks!
BTW -there is an identical issue with SVG output. And 2 other things wrong with SVG: most labels ignore ANGLE AUTO (though not all, and I can't see a pattern for that), every time I run shp2img to create an SVG output I get 2 SVGs - the output and it's copy named like "47067829_223b_0.svg" (seems a temporary file is not removed). Described issues are reproducible with the sample data attached to this ticket. Should I open a separate ticket for SVG problems?
comment:7 by , 17 years ago
comment:8 by , 16 years ago
Milestone: | 5.0.1 release → 5.2 release |
---|
Applying patch to set the linecaps r 7299.
Setting it for 5.2 for the label problems.
comment:9 by , 16 years ago
Milestone: | 5.2 release → 5.4 release |
---|
comment:10 by , 15 years ago
Milestone: | 5.6 release → 6.0 release |
---|
comment:11 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
this bug isn't relevant anymore with the 6.0 cairo output for pdf.
output pdf with artifacts