Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELP WANTED: How to convert cadDocument into a pdf file. #391

Open
KyleeChangg opened this issue Jul 23, 2024 · 3 comments
Open

HELP WANTED: How to convert cadDocument into a pdf file. #391

KyleeChangg opened this issue Jul 23, 2024 · 3 comments
Labels
feature New feature added

Comments

@KyleeChangg
Copy link

As the title suggests, I currently have a cadDocument but cannot find in the documentation how to convert this document into a pdfFile. Any help would be appreciated, thanks!

@DJGosnell
Copy link
Contributor

It is a complicated process and to my knowledge, there is no public .NET solution for this, which is why my company needed to create this system from scratch. Our system uses SKIA as the PDF creation engine.

The process is as follows: Convert all the simple objects to their equivalent SKIA counterparts. Render the blocks into SKPictures then apply the transformation matrix to them to place them into the correct location. Rendering the text is also a bit tricky as you have to parse MText values. I have an old version of our parser located in this PR.

@DomCR
Copy link
Owner

DomCR commented Jul 24, 2024

Hi @KyleeChangg

The current state of the library doesn't allow to export the file in PDF, I might take a look after the v1 is released.

@DomCR DomCR added the feature New feature added label Aug 31, 2024
@DomCR
Copy link
Owner

DomCR commented Sep 3, 2024

It not functional yet but I started to take a look:

https://github.com/DomCR/ACadSharp.Pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature added
Projects
None yet
Development

No branches or pull requests

3 participants