← All bug reports

FS#1966Add a new option to convert all blocks to pdfs

Type
Feature Request
Status
Closed
Resolution
Works for me
Category
dwg2pdf
Severity
High
Priority
Low
Reported version
3.23.0
Operating system
Windows (All)
Reported
2019-10-10 by Frankie
Closed
2019-10-10 by andrew

Relative to FS#1965

I suggest that if dwg2pdf have an new options that can convert all the blocks to pdf.
Now, I need to know all the block names before converting.

But if I put qcad on server, the computer won't know how many blocks in the dwg and their names.

For examples:

There are 4 blocks in dwg.block1, block2, block3, block4

Command line: ./dwg2pdf -block-all path

Result: block1.pdf block2.pdf block3.pdf block4.pdf

Comments (2)

andrew 2019-10-10

Try:
-block=".*"

dwg2pdf cannot create multiple PDF files, so you will get a single PDF with multiple pages.

Alternatively, you can get a list of all blocks first with:
dwginfo -b file.dwg

Then, you could iterate through the block list and create PDFs.

Frankie 2019-10-10

Thank you!!!!!!!!!!!!!