Controlling the PDF export output
The output of the PDF export can be controlled by defining a number of variables in the Label 1 section of the DXF/DWG export configuration files (dxf-<configuration name>.cfg) in the %ncghelps%\dxf directory.
To set the values for the PDF export, type set in front of the variable and new value after that.
For example, the following line defines that the size of the PDF document is 210x297 mm (A4 size):
set pdfsize=210,297
There is a configuration file for each export configuration. Configurations can be defined in the System Management application, Import/Export > DXF/DWG/PDF > Configurations. See Configurations for more information.
The variables controlling the output of the PDF export are as follows.
Variable name | Possible values | Default value |
---|---|---|
pdforientation |
PORTRAIT, LANDSCAPE, or MODEL When set to MODEL, the orientation of the sheet drawing or view is used. |
MODEL |
pdfsize (in mm) |
xSize,ySize The maximum PDF size is 5080 x 5080 mm. When the size is set to 0,0 the size of the sheet drawing or view is used. |
0,0 |
pdfversion | 10/11/12/13/14/15/16/17 | 17 |
pdfscale | numeric value | 1.0 |
pdfdpi | numeric dots per inch value | 1200 |
pdfbackground | R,G,B values (0-255) | 255,255,255 |
pdfbackgroundinvert | 0 (as is) / 1 (invert) / 2 (rotate) | 1 |
pdfcolorpolicy | 0 (use color palette) / 1 (monochrome) / 2 (grayscale) | 1 |
pdfembededttf | 0 (do not embed True Type fonts) / 1 (embed the whole True Type font file(s) – results in huge file size) | 0 |
pdfembededoptimizedttf | 0 (do not embed True Type fonts) / 1 (embed the used parts of the True Type font, smaller file size but limited editing) | 0 |
pdfttfasageometry | 0/1 (disable/enable True Type font text to geometry conversion) | 0 |
pdfshxasageometry | 0/1 (disable/enable SHX font text to geometry conversion) | 0 |
pdfsearchablettf | 0/1 (disable/enable searching text in True Type font) | 0 |
pdfsearchableshx | 0/1 (disable/enable searching text in SHX font) | 0 |
pdfsolidhatchexptype (for exporting solid non-gradient hatches) | 0 (export as bitmaps) / 1 (export as drawings using vectorizer i.e. a polygon set) / 2 (export as pdf paths, outer loop of the hatch only filled with color) | 2 |
pdfotherhatchexptype (for other types of hatches) | 0 (export as bitmaps) / 1 (export using vectorizer) | 0 |
pdfusesimplegeomopt | 0/1 (disable/enable simple geometry optimization: separated segments to one polyline, Bezier curve control points) | 1 |
pdfenablelayerssupport | 0/1 (disable/enable layer support .pdf file - PDF version 1.5 required) | 0 |
pdfincludeofflayers | 0/1 (do not add / add invisible layers to .pdf file - PDF version 1.5 required) | 0 |
pdfmergelines | 0/1 (disable/enable merging the colors of crossing lines) | 0 |
pdfusehiddenlinealgo | 0/1 ( do not use / use vector hidden-line removal) | 0 |
pdfcompressed | 0/1 (disable/enable compression of internal PDF streams) | 1 |
pdfasciihexencoded | 0/1 (disable/enable ASCIIHex encoding of internal PDF streams) | 0 |
pdfhyperlinks | 0/1 (disable/enable hyperlinks export) | 1 |
pdfzoomtoextents | 0 (use layout settings) /1 (zoom layout geometry to paper size) | 1 |
pdflinearized | 0/1 (do not create / create linearized .pdf file (WEB PDF) | 0 |
pdfmeasuring | 0/1 (disable/enable measuring scale in pdf( | 1 |
pdfextentsboundingbox | 0/1 (do not add / add extents bounding box) | 0 |
pdfcropimages | 0/1 (disable/enable cropping of images) | 1 |
pdfdctcompression | 0/1 (disable/enable Discrete Cosine Transform (DCT) compression, used in JPG format) | 1 |
pdfdctquality (DCT quality percentage) | numeric value 0-100 | 50 |
pdfamode (archive mode) | 0 (not archived) / 1 (archived, PDF/A-1b version) / 2 (archived, PDF/A-2b version) | 0 |