Create PDF that's editable in Canva #3850
Unanswered
foranuj
asked this question in
Looking for help
Replies: 2 comments 2 replies
-
I don't know how Canva works. What do you mean by "embed"? There is no such function in PyMuPDF. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was thinking this function embfile_add, and Canva is just an example, the idea is that I'd like to manipulate the PDF that contains a bunch of images on a single page in an external editor. And the external editor should be able to recognize that there's more than 1 image on that page. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create PDF that contains a series of images, a collage so to speak. However, I'd like this PDF then to be exported to Canva and opened there for further editing, like adding borders etc. Each image inside the original PDF also needs to be editable by either resizing or whatever functionality Canva provides.
I am wondering how can I achieve this, currently I'm creating my collage and then inserting the images in the corresponding locations by using something like this
`# Convert the resized PIL image to bytes for PyMuPDF
img_byte_arr = BytesIO()
img.save(img_byte_arr, format='PNG') # Save as PNG format
img_byte_arr = img_byte_arr.getvalue() # Get byte data
`
And then I save the final PDF
if self.output_file: pdf.save(self.output_file, deflate=False) pdf.close()
But when I open this PDF file in Canva, I can't manipulate any of the existing individual images. Should I be using embed instead?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions