This will output each page in the PDF using the format outputname-01.png, with 01 being the index of the page. I apologise to the community too.You can use pdftoppm from the poppler-utils package to convert a PDF to a PNG: pdftoppm input.pdf outputname -png I have to atone for my putting your abilities on to a poor mission, when the entire community could have been better served by your abilities being put to good use. Unfortunately, I had by then already set you off on solving the problem via gimp. I in fact had asked you for clarifying certain aspects of the pdfimages code line. So, if all pages are turned at different angles, and have to be handled manually, it would be better to use popplar-utils and then gimp to cut individual pages (off the 2-page format) and polish up those the pics.įor me, in the end of this chat, I simply wasted your time, energy, money and zeal, that could have been better used for a higher purpose. The whole image I cropped to the size of the 'window'. I rotated the whole layer stack a very small amount. Thank goodness, this experience already answered that stupid question. But this idea too defeats the purpose of a GUI. Like gimp run in terminal like popplar-utils. So there is no script file to be run that has gimp run in a terminal and extract individual images? Then in this aspect, pdfimages et al would have indeed been better.īTW, I could have had stupidly posted another question that could have been put up in a different thread. Unzip and put in ~/.config/GIMP/2.10/scripts. If using the latest Debian, Gimp might not have python support, so the attachment is a script-fu. Rich2005 Wrote:Exporting the layers as individual jpegs. So better to use popplar-utils to extract, and then manually adjust all pages? Yes, that was the first thought I had when when I opened the file with evince. Rich2005 Wrote:The pages are all different sizes / angles / offsets. It took me about 10 minutes for that but then I know my way around Gimp.Į (Size: 3.91 KB / Downloads: 168)įirst words: Our illustrious Admin, our leader, your Neural Network clusters rock! You really are magic! I am surprised that you aren't being utilised better by GNU-Linux for its achieving loftier ideals. That gives File -> Export Layers put in your export location / filename.jpg to get numbered files. The whole image I cropped to the size of the 'window'Įxporting the layers as individual jpegs. Set some guides up for that 'window'įor multi-layer manipulation, hold the shift key down to toggle layer visibility and links on / off Try and find a sensible 'window' that fits best. The pages are all different sizes / angles / offsets. ![]() Once installed in Gimp, open gmic and look for the Repair scanned images filter. The overall readability of the pages can be improved using a plug-in gmic_gimp_qt from There is a version compiled for Debian. ![]() My feeling is not much point importing at 300 ppi, I used 150 ppi. I checked the actual embedded images and they are small jpgs. To do a better job will require each page to be checked and modified individually and I am guessing that is not what you want to do. The 29 page PDF supplied took 10 minutes to process. However, there can be some improvements made and each page exported to a separate jpg as required. This scanned document does not lend itself to an automated extraction process. I hope you do not have a library full of similar PDF's to process.
0 Comments
Leave a Reply. |