dwg2pdf scaling to fit on Windows
Posted: Wed Jan 31, 2018 11:08 pm
We've got a pilot working well of QCAD server on CentOS 7 and it is scaling pages as intended with the following command line:
/usr/share/httpd/opt/qcad-3.18.1-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block=*Paper_Space -m 2 -l -p "ANSI C (431.8x558.8)" "/var/www/html/Output/custom.dxf"
I have been asked to move this to a Windows 2008 Server for production. (here we installed from "qcad-3.19.2-pro-win64-installer.msi") The software seems to be working fine on this version by GUI, and it is converting to PDF output with no errors. However, the scale to fit is not as expected. The PDF output is mostly blank with a tiny "postage stamp" sized drawing in the lower left corner. I was unable to get the DWG2PDF.BAT to work, so it is unrolled as follows:
"D:/Program Files/QCAD/qcad.exe" -no-gui -autostart scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js dwg2pdf.bat -a -f -block="*Paper_Space" -m 2 -landscape -p "ANSI C (431.8x558.8)" "D:/Project/Output/custom.dxf"
These command lines are being called from Python 3 programs on both platforms. I would appreciate suggestions on how to make these drawings scale to fit on Windows. Thanks.
/usr/share/httpd/opt/qcad-3.18.1-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block=*Paper_Space -m 2 -l -p "ANSI C (431.8x558.8)" "/var/www/html/Output/custom.dxf"
I have been asked to move this to a Windows 2008 Server for production. (here we installed from "qcad-3.19.2-pro-win64-installer.msi") The software seems to be working fine on this version by GUI, and it is converting to PDF output with no errors. However, the scale to fit is not as expected. The PDF output is mostly blank with a tiny "postage stamp" sized drawing in the lower left corner. I was unable to get the DWG2PDF.BAT to work, so it is unrolled as follows:
"D:/Program Files/QCAD/qcad.exe" -no-gui -autostart scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js dwg2pdf.bat -a -f -block="*Paper_Space" -m 2 -landscape -p "ANSI C (431.8x558.8)" "D:/Project/Output/custom.dxf"
These command lines are being called from Python 3 programs on both platforms. I would appreciate suggestions on how to make these drawings scale to fit on Windows. Thanks.