If dxf has multiple layers, could output PDF file have dxf’s layers as PDF’s layers?
I don’t want to output dxf layers as different pdf files, I want those layers as PDF’s layers.
I have observed your requirements and regret to share that I have not been able to completely understand it. Can you please share the elaboration of requirement in the form of source file and desired output PDF so that we may investigate that further on our end.
I’ve a dxf with layers - see attached test1.zip (408.8 KB)
It has following layers:
A-WALL
A-FLOR
A-GLAZ-CURT
A-GLAZ-CWMG
I-WALL
Q-SPCQ
S-STRS
A-FLOR-HRAL
A-DOOR
I-FURN-PNLS
I-FURN
Q-CASE
A-AREA
M-HVAC-DUCT
M-HVAC-CDFF
M-EQPM
P-SANR-FIXT
A-DETL
A-WALL-PATT
A-FLOR-PATT
S-STRS-ANNO
S-STRS-MBND
A-FLOR-HRAL-MBND
S-STRS-TEXT
M-HVAC-DUCT-ANNO
A-DETL-GENF
I ran the following codes to output dxf as pdf
final CadImage image = (CadImage) Image.load(“C:/test1.dxf”);
final CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageSize(new com.aspose.cad.SizeF(800, 800));
rasterizationOptions.setCenterDrawing(true);
final PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
image.save(“C:/test.pdf”, pdfOptions);
The output pdf has no built-in pdf layers.
PDF support layers - PDF layers, Adobe Acrobat
My question: can I output the layers of dxf into corresponding pdf layers in one pdf file?
I have observed your requirements. An issue with ID CADJAVA-392 has been created in our issue tracking system to further investigate the possibility of implementing requested requirement. This thread has been linked with the issue so that you may be notified once the issue will be fixed.