Multi-page output from dwg2pdf
Moderator: andrew
Multi-page output from dwg2pdf
QCAD 3.19 has added layouts and viewports. Eventually, we could use a way to specify multiple viewports with the command line of dwg2pdf in order to produce multiple page output to a single PDF. Thanks for a great tool and for your consideration.
Re: Multi-page output from dwg2pdf
Thanks for your feedback.
I've added a feature request at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1700
I've added a feature request at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1700
Re: Multi-page output from dwg2pdf
Thanks for adding this feature request. Dwg2pdf is still working well for us for single sheets, yet we still have need for multi-page output in a single PDF.
Is there a way I could implement this myself with a script? I have reviewed https://www.ribbonsoft.com/doc/qcad/3.0 ... xport.html and am still unsure if the function can append more than one file to a print/export file. Can the Scene/View be set to particular named Block/Layout, such as "Cover" or "Single Line"? The following is our current typical command line usage:
/usr/share/httpd/opt/qcad-3.21.2-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block="Cover" -m 2 -landscape -p "ANSI C (431.8x558.8)" /home/doug/CAD/page1.dwg
Is there a way I could implement this myself with a script? I have reviewed https://www.ribbonsoft.com/doc/qcad/3.0 ... xport.html and am still unsure if the function can append more than one file to a print/export file. Can the Scene/View be set to particular named Block/Layout, such as "Cover" or "Single Line"? The following is our current typical command line usage:
/usr/share/httpd/opt/qcad-3.21.2-pro-linux-x86_64/dwg2pdf -platform offscreen -a -f -block="Cover" -m 2 -landscape -p "ANSI C (431.8x558.8)" /home/doug/CAD/page1.dwg
Re: Multi-page output from dwg2pdf
Do you intend to scale a drawing to an array of multiple rows/columns of paper to later stitch together or do you want to output individual blocks, one per page?
In the latter case, you might want to produce multiple PDF files and later concat them, for example using the PDFtk command line tools.
The Print class generates one page unless multiple rows / columns are defined (for stitching).DougVW wrote: ↑Mon Aug 13, 2018 3:05 pmIs there a way I could implement this myself with a script? I have reviewed https://www.ribbonsoft.com/doc/qcad/3.0 ... xport.html and am still unsure if the function can append more than one file to a print/export file.
Example:
Code: Select all
var blockName = getArgument(args, "", "-block", undefined);
if (!isNull(blockName)) {
var doc = di.getDocument();
if (doc.hasBlock(blockName)) {
di.setCurrentBlock(blockName);
}
}
Re: Multi-page output from dwg2pdf
Yes, we need multiple layouts/blocks printed on separate pages. Thanks for more sample code, yet you have already provided the ability to select a layout from dwg2pdf and yes, we use pdftk to assemble the pages. So the subject request is still not urgent, yet I'm always looking for ways to speed up and simplify our processes.