How to load the image from a dwg file? #588
Replies: 4 comments 9 replies
-
Do you mean the Preview of the file? or an image inserted in it? If is the preview there is a conversation about it: |
Beta Was this translation helpful? Give feedback.
-
I also tried to use ACADSharp.PDF but I received an exception erorr when using this code:
It returned "The method or operation is not implemented" and proceeded to create a 0 byte sized pdf file. |
Beta Was this translation helpful? Give feedback.
-
I've released a new version for Here is a documentation of how to add the https://github.com/DomCR/ACadSharp/blob/master/docs/CadWriterDocs.md I still have to write the documentation for the Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@DomCR Thank you very much for including this in v1.1,6! I have been very ill recently and didn't see this comment until now - Apologies for the late reply.
Sadly, before the code reaches File 1 produced the error: File 2 produced the error: File 3 didn't produce an error, but it just sat in a seemingly never ending loop for what felt like 10 minutes before I called it. However, some fantastic news! The update to ACadSharp.PDF means that the following code is now producing PDF files successfully!
Which is really very simple and easy to use, amazing! I do really need to work out how to resize the PDF though, as the file produced is the same as the model space at a laughable 86 metres wide and 133 metres tall (I do mean metres, too). It would be incredible to have a method to do this on the PdfExporter itself, otherwise I guess I am going to need to look at Also, the pdf produced is doing something very weird with fonts on the paperlayouts - There's massive writing going across the page. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, congratulations on moving the library from pre-release to release! Last time I was here it was in a much earlier phase.
Is there an easy way to extract or load the image inside a .dwg file? I tried a few other libraries and one in particular was extremely easy to load the image, then I could easily load the image into a Windows.Forms.PictureBox.
Trouble is, this is the only advantage (for myself) that the other library has - The ACadSharp library currently does everything else I want it to with ease, and is faster.
Beta Was this translation helpful? Give feedback.
All reactions