Opened 6 years ago
Last modified 6 years ago
#7185 closed defect
Wrong text size when converting DXF to PDF — at Version 1
Reported by: | Alan Thomas | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
I converted autotest/ogr/data/leader-mleader.dxf
to PDF using ogr2ogr:
ogr2ogr -overwrite -f "PDF" leader-mleader.pdf "C:\Projects\gdal\autotest\ogr\data\leader-mleader.dxf" -dsco STREAM_COMPRESS=NONE
The text sizes in the resulting PDF are excessively large.
Here's an example style string from ogrinfo -al
on the original DXF (this is the style string for the big red text you see in the page):
LABEL(f:"Arial",t:"Apples",p:2,s:1g,c:#ff0000,a:10)
The font size in the resulting PDF is 1000.000000
. Looking through the code, it's unclear to me where the multiplication by 1000 is taking place. I'm not sure what the correct size is; the text should be 1 DXF unit high, as implied by the style string, but a value of 1.0 in the PDF is too small.
(As a side note, each text object is associated with a grey circle, which seems unwanted.)
See also #5910.