Skip to main content

Can you provide guidance on how to convert a DWG file to a PNG image and then embed that PNG into an HTML PDF using FME? Specifically, I'm interested in preserving the visual elements like colors, hatch styles, and line widths from the original DWG file.

Here are my transformers.

Thank you.

Hi @jp12212 ,

Thank you for the post.
I have compiled some articles & documentation that may assist in what you're looking for and push you in the right direction.

DWG Reader/Writer - Documentation regarding DWG Reader/Writer 
Autodesk AutoCAD DWG Reader Parameters 


ImageRasterizer - Documentation explaining how ImageRasterizer works.
Also check this article out - Converting Vector Data to Raster - (related articles within may also be of assistance).

PNG Rasterizer Writer -Documentation on the PNG Writer.

The following transformer may be what you're looking for in regards to HTML - HTMLReportGenerator.

Finally to change it into a PDF the following documentation may assist. The transformer PDFPageFormatter may be what you're looking for.
Also the PDF Reader/Writer document (and related articles within).

 

If you have any more queries or issues please reach out again and I will try help with the problem.

Thank you,
Donal. 


Reply