Contents
- Index
- Previous
- Next
Options - Advanced Options
In the pdf2cad installation directory you will find a file called pdf2cad.ini where a number of conversion parameters are defined. You can edit this file with a text editor like Notepad. Once you save changes and restart pdf2cad, the changes will be applied.
autorotation(0)
By default, files are not rotated during conversion (0). When this value is set to autorotation (1), pdf2cad automatically rotates all pages during conversion. Using this option ensures that text in the resulting drawing can be easily read from left to right. When using this option, make sure that a) the Rotate option in the General options tab of the interface is set to 0, and b) the Page Size option in the Size tab is either turned off or set to Automatic.
linecap(1)
Using linecap(1), pdf2cad will simulate different line-endings in the DXF output such as rounded line-endings. Change to linecap(0) if this does not give the desired results.
encoding(1)
By default, pdf2cad assumes a standard character encoding for text in the PDF file and uses a default mapping to produce the equivalent text in the DXF. If this does not produce the desired results it can sometimes help to change this value to encoding (0). pdf2cad then passes on the character encoding directly from the PDF file. If this does not help, do not forget to change it back to encoding (1) before converting other files.
initclip(1)
Sometimes a PDF file uses a clipping command to define an area of the page to be drawn. This may cause unwanted effects during conversion, such as part of the page not rendering in DXF, or the actual drawing being embedded in a much larger drawing canvas. Setting this option to initclip(0) ignores PDF page clipping during conversion.
clipmargin(1.0)
If you are not using the Page Size option, pdf2cad will crop the DXF to remove any white space. Sometimes a rounding off difference may cause a line to be located exactly on the bounding box that pdf2cad calculates, so that it does not show up in the DXF. Having this option set to clipmargin(1.0) increases the bounding box by 1pt on all sides. Increase as needed.
ctmscale(1.0)
Increasing this option to ctmscale(10.0) can in some cases increase the accuracy of curves and (poly)lines in the DXF output. It increases the number of points used to improve results. Note: increasing the value beyond 10.0 will not further increase accuracy.
digitspage_number(0)
This option applies only to multi-page PDF files and defines the number of digits in the suffix that is added to the filenames of the resulting DXF files. Keeping it a 0 means that page 2 of myfile.pdf will come out as myfile-2.pdf, page 3 as myfile-3.pdf etc. Setting this option to 4, will result in page 2 to be named myfile-0002.pdf. This option is used in document management systems so that alphanumeric listing of all files stay in logical order.
firstpage_number(0)
This option Works in conjunction with digitspage_number(0). When this value is 0, the first page of myfile.pdf will be generated as myfile.dxf. With multi-page PDF files, users may want the first page to have a numeric suffix. By setting the value of this option to 1, the first page will come out as myfile-1.pdf (followed by myfile-2.pdf, etc.).
emulate_font("Fontname")
If you want to outline specific fonts during conversion while maintaining other fonts as text, you can add the above line to the pdf2cad.ini file. Between brackets, list the font name exactly as it was specified in the PDF file. To add multiple fonts for emulation, add a separate line for each font.
messages_filename("c:\\temp\\pdf2cad-log.txt")
Use this option to configure where you want pdf2cad to write logfiles. Log files are important records of warnings and problems encountered during conversions and are very helpful in troubleshooting. For example, a log file will list unknown font names it finds in the PDF file(s) during conversion. You can then use these font names to either add font name mappings via the interface, or emulate them via the pdf2cad.ini file.
font_warnings(0)
If set to 0 font warnings are suppressed.
scaletext(1.0)
If needed the size of the text can be scaled.
setflat(0.01)
Controls the accuracy of converting paths into polyline/polygon objects
zero_linewidth(0)
If set to 1, line weight of all objects are set to 0.0.