Inlcuding Image/ImageRef's in PDF output? #951
Replies: 5 comments 3 replies
-
it is a limitation of the current drawing addon (that should be documented here but isn't) that IMAGEDEF/IMAGE is not supported. But the only reason for this was that no-one has required support yet. You should be seeing If you would like to add support you would need to
|
Beta Was this translation helpful? Give feedback.
-
An update on this: I have been waiting for a colleague to put together a test file involving images (I don't personally have access to autocad). They have now created the file so I should be able to make a start in the coming weeks |
Beta Was this translation helpful? Give feedback.
-
A pull request is now ready that implements Image support in the drawing addon. #999 |
Beta Was this translation helpful? Give feedback.
-
and support for the mupdf backend was also added #1001 in addition, the
|
Beta Was this translation helpful? Give feedback.
-
Thanks so much for the help on this feature @mbway I appreciate your hard work! |
Beta Was this translation helpful? Give feedback.
-
Quick Context: I'm working to make a feature that will export a construction site plan as both a DXF and a PDF, and part of my content (e.g. company logos, rasterized satellite imagery) is made up of images.
I'm able to place the images on the paperspace layout as expected, and I see the images appear when I open the DXF files (or I do when I open the DXF with the source image in the same folder), but when I use the PyMuPDF backend to generate a PDF (using
get_pdf_bytes
), I don't see the image shown in the resulting PDF, though other entities appear as expected.Is there a straightforward way to include raster images in the PDF generation that I'm missing? Or is this something where I'd need to implement some custom functionality in order to get raster images embedded in my PDF?
Thanks for the help!
Side Note: What's the best practice for sending a DXF with image references to someone else to ensure when they open it they see the images? Zip up the DXF and all the images together? (I assume this is different dependent on what viewer the person is using)
Beta Was this translation helpful? Give feedback.
All reactions