[NEWBIE] - Is there a way to export a selected element into a PDF ? #177
Unanswered
UnderMasterGM
asked this question in
Q&A
Replies: 2 comments 4 replies
-
|
Hei, But you can export views to images. import utility_controller as uc
import cadwork
import base64
from PIL import Image
# or use PyQt instead of PIL
# from PyQt5.QtGui import QImage
snapshot_base64 = uc.create_snapshot("PNG")
image_bytes = base64.b64decode(snapshot_base64)
image = Image.open(io.BytesIO(image_bytes))
# PyQt
# image = QImage.fromData(image_bytes)
image.save(r"C:/Users/MichaelBrunner/Downloads/output.png") |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
https://www.geeksforgeeks.org/how-to-use-images-as-backgrounds-in-tkinter/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I started trying to develop plugins for myself in cadwork using cwapi3d step by step.
However I would like to know if there is a way to render an isometric .pdf view of this element ? Is this even possible ?
I tried using FPDF and export_export_solid_with_clipboard(clipboard_number, element_id_list), but I am not sure this is the right way to go.
Any advice ? Thanks !
Beta Was this translation helpful? Give feedback.
All reactions