Replies: 2 comments 3 replies
-
Thank you for the thoughtful post, @hi5 . For once, I am slightly ahead of the curve. I've been working on PDF support for the past few weeks in a separate branch: https://github.com/tannerhelland/PhotoDemon/commits/pdf-support/ Basic import support is working very well. Today I'm working on adding custom page ranges to the import dialog (like "1, 3, 5-10") and after a few more tweaks and UI additions, PDF import should be ready to merge into nightly builds. I'm using Google's open-source pdfium library for all the low-level PDF interactions, and so far integration has gone smoothly. I'll report back when the feature has officially been merged into nightly builds. Thank you again for your ongoing feedback and ideas - they're always helpful! |
Beta Was this translation helpful? Give feedback.
-
Low priority ❗
To clarify: Just to see if there is an interest, I just extract the page I need using one of the tools I list below and then edit it in PD or other graphics program.
Photoshop (PS) is able to open PDFs as no doubt some other graphics programs.
PS can do quite a bit with PDFs and I don't advocate turning PhotoDemon into a PDF editor, but perhaps it would be useful to add some very basic functionality and treat a PDF as a multi layered image e.g. just a raster layer, no text editing or editing individual image/objects on a page. (So just like a screenshot of a PDF page pasted into PD as an image for example).
This could be useful to quickly edit a flyer or use a page from a PDF as basis for some new image(s).
So opening a PDF would "simply" convert each page into a raster layer. Or it could even ask which pages you'd like to import e.g. page 1 & 2, skip the rest.
Saving as PDF saves it as an IMAGE pdf, e.g. doesn't convert the image back to text etc. That would simply not fit within the scope of a graphics program.
I do believe it is possible to get an image from a PDF page using gdiplus, but don't ask me how 😸
Note that several tools exist to "export" one or more pages from a PDF to a PNG so it isn't too much work to do it manually:
Beta Was this translation helpful? Give feedback.
All reactions