The issues with the command line tool dwg2pdf

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
hik-IT
Junior Member
Posts: 20
Joined: Wed Jun 11, 2025 2:33 am

The issues with the command line tool dwg2pdf

Post by hik-IT » Tue Jul 15, 2025 10:00 am

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
Attachments
1.pdf
(15.98 MiB) Downloaded 639 times
A.dwg
(7.66 MiB) Downloaded 135 times

CVH
Premier Member
Posts: 4954
Joined: Wed Sep 27, 2017 4:17 pm

Re: The issues with the command line tool dwg2pdf

Post by CVH » Tue Jul 15, 2025 11:50 am

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.
hik-IT wrote:
Tue Jul 15, 2025 10:00 am
many unexpected color blocks appeared in the PDF
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. :wink:

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”