Multi-page output from dwg2pdf

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
DougVW
Junior Member
Posts: 16
Joined: Mon Jan 08, 2018 5:03 pm

Multi-page output from dwg2pdf

Post by DougVW » Mon Jan 08, 2018 6:22 pm

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.

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Multi-page output from dwg2pdf

Post by andrew » Tue Jan 09, 2018 10:48 am

Thanks for your feedback.

I've added a feature request at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1700

DougVW
Junior Member
Posts: 16
Joined: Mon Jan 08, 2018 5:03 pm

Re: Multi-page output from dwg2pdf

Post by DougVW » Mon Aug 13, 2018 3:05 pm

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

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Multi-page output from dwg2pdf

Post by andrew » Thu Aug 16, 2018 3:45 pm

DougVW wrote:
Mon Aug 13, 2018 3:05 pm
we still have need for multi-page output in a single PDF.
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.
DougVW wrote:
Mon Aug 13, 2018 3:05 pm
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.
The Print class generates one page unless multiple rows / columns are defined (for stitching).
DougVW wrote:
Mon Aug 13, 2018 3:05 pm
Can the Scene/View be set to particular named Block/Layout, such as "Cover" or "Single Line"?
Example:

Code: Select all

    var blockName = getArgument(args, "", "-block", undefined);
    if (!isNull(blockName)) {
        var doc = di.getDocument();
        if (doc.hasBlock(blockName)) {
            di.setCurrentBlock(blockName);
        }
    }

DougVW
Junior Member
Posts: 16
Joined: Mon Jan 08, 2018 5:03 pm

Re: Multi-page output from dwg2pdf

Post by DougVW » Fri Aug 17, 2018 2:07 pm

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.

Post Reply

Return to “QCAD Suggestions and Feedback”