Page 1 of 1

The issues with the command line tool dwg2pdf

Posted: Tue Jul 15, 2025 10:00 am
by hik-IT
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

Re: The issues with the command line tool dwg2pdf

Posted: Tue Jul 15, 2025 11:50 am
by CVH
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