Hi,
we are evaluating qcad to automatically convert dwg files to pdf. Works like a charm in most scenarios, but we are missing a command line flag to let qcad auto detect the page orientation. Pdf files are alwys generated in portrait unless we specify the -l flag for landscape output.
Is there a hidden feature to achieve auto detection for proper page orientation? Are me missing someting in the docs? Would you be willing to implement such a feature?
I guess, the feature has to implemeneted in scripts\Pro\Tools\Dwg2Pdf\Dwg2Pdf.js, but I cannot find the source of this file on github.
Platforms: Linux & Windows
QCad: 3.23.0-trial
dwg2pdf command line auto detetecd page orientation
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.
dwg2pdf command line auto detetecd page orientation
Last edited by regnete on Wed Dec 04, 2019 8:38 am, edited 1 time in total.
Re: dwg2pdf command line auto detetecd page orientation
I guess, the feature has to implmeneted in scripts\Pro\Tools\Dwg2Pdf\Dwg2Pdf.js, but I cannot find the source of this file on github.
Re: dwg2pdf command line auto detetecd page orientation
That sounds like a good idea. I've created a feature request at:
https://www.qcad.org/bugtracker/index.p ... sk_id=2006
For now, you could use the bbox tool first and based on the output decide whether to pass the -l flag to dwg2pdf or not.
https://www.qcad.org/bugtracker/index.p ... sk_id=2006
For now, you could use the bbox tool first and based on the output decide whether to pass the -l flag to dwg2pdf or not.
Re: dwg2pdf command line auto detetecd page orientation
Thank you for the quick reply. Didn't know about bbox. I will give it a try.
Re: dwg2pdf command line auto detetecd page orientation
bbox works. I use it now to read the size of dwg and then to dynamically build the "-p <width>x<height>"flag for dwg2pdf. This way I get an auto sized pdf for any dwg which always fits. Great!