I have a DWG file that I converted to PDF using the command line tool dwg2pdf.
The command used was: ./dwg2pdf -platform offscreen -auto-fit -auto-orientation -center -max-lineweight=0.005 -flat -f -o 1.pdf A.dwg
the issues is :After conversion, I found significant differences between the PDF and original DWG content - many unexpected color blocks appeared in the PDF. How can I adjust settings to achieve a PDF output that matches the DWG file exactly?
Environment
CentOs7
Qcad 3.23.3 pro
Qcad 3.23.3 server
The issues with the command line tool dwg2pdf
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
hik-IT
- Junior Member
- Posts: 20
- Joined: Wed Jun 11, 2025 2:33 am
-
CVH
- Premier Member
- Posts: 4954
- Joined: Wed Sep 27, 2017 4:17 pm
Re: The issues with the command line tool dwg2pdf
Hi,
Probably the same file as in topic 11703
Again QCAD failed to open that at my side, probably because of the same errors: See error.log in related topic.
Suspecting heavy weights and/or global polyline widths.
Remind that a Lineweight like 1.00mm is never scaled and remains exactly 1mm wide on paper disregarding how small the detail becomes.
Perhaps exporting to a larger page size than A4 is a solution.
Regards,
CVH
Probably the same file as in topic 11703
Again QCAD failed to open that at my side, probably because of the same errors: See error.log in related topic.
I can see those in the PDF but I am limited to scale that up to 6400%.
Suspecting heavy weights and/or global polyline widths.
Remind that a Lineweight like 1.00mm is never scaled and remains exactly 1mm wide on paper disregarding how small the detail becomes.
Perhaps exporting to a larger page size than A4 is a solution.
Regards,
CVH