Announcement

Collapse
No announcement yet.

Extracting/exporting images from pdf files where pages were created from images

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extracting/exporting images from pdf files where pages were created from images

    Scanning in document pages.
    I used the manufactures software to scan from a document scanner directly into a pdf file.
    The biggest reason i did that was to contain images in some sort of grouping.
    For example.
    I scan in about 500 pages at a time of the same type material.
    I gathered all my documents that had one paper and I scanned in duplex format into a pdf file.
    That way i could come back and extract the images out of the pdf file for every 2 pages..
    Then I place the 2 images in each of their own pdf file.
    This all goes much faster. On some software, you can even have the scanner wait a period of time before it times out to receive the next document to place in the scanner.
    I have had a hard time finding software that i could depend on to extra the images from the command line and i wanted something open source and one reason is that i
    have a lot of software i have purchased sitting on the shelf. Boy do i wish i had that money back.

    "pdftopng.exe" from XPDF seems to be a the winner for me.
    Also when working with the image files, a non jpeg format was what i needed even though i did not know it in the beginning.

    Here is a batch file that i use to rename my files to keep them sort while i process them.
    Code:
    CLS
    echo %1
    m:\xpdfnew\pdftopng  %1.pdf %1
    if exist %1-000001.png ren %1-000001.png %1-a.png
    if exist %1-000002.png ren %1-000002.png %1-b.png
    if exist %1-000003.png ren %1-000003.png %1-c.png
    if exist %1-000004.png ren %1-000004.png %1-d.png
    if exist %1-000005.png ren %1-000005.png %1-e.png
    if exist %1-000006.png ren %1-000006.png %1-f.png
    if exist %1-000007.png ren %1-000007.png %1-g.png
    if exist %1-000008.png ren %1-000008.png %1-h.png
    if exist %1-000009.png ren %1-000009.png %1-i.png
    if exist %1-000010.png ren %1-000010.png %1-j.png
    if exist %1-000011.png ren %1-000011.png %1-k.png
    if exist %1-000012.png ren %1-000012.png %1-l.png
    if exist %1-000013.png ren %1-000013.png %1-m.png
    if exist %1-000014.png ren %1-000014.png %1-n.png
    if exist %1-000015.png ren %1-000015.png %1-o.png
    if exist %1-000016.png ren %1-000016.png %1-p.png
    if exist %1-000017.png ren %1-000017.png %1-q.png
    if exist %1-000018.png ren %1-000018.png %1-r.png
    if exist %1-000019.png ren %1-000019.png %1-s.png
    if exist %1-000020.png ren %1-000020.png %1-t.png
    if exist %1-000021.png ren %1-000021.png %1-u.png
    if exist %1-000022.png ren %1-000022.png %1-v.png
    if exist %1-000023.png ren %1-000023.png %1-w.png
    if exist %1-000024.png ren %1-000024.png %1-x.png
    if exist %1-000025.png ren %1-000025.png %1-y.png
    if exist %1-000026.png ren %1-000026.png %1-z.png

    p purvis

  • #2

    I use "PDFTK" to combine my pdf files.
    Although i have not set a way to create pdf filef from png files at this time and ghost can probably do this with out any problems.
    I have been using the "tifflib" to convert tif files to pdf files very successfully and I am looking a tiff files to be a final media for long term storage and not likely user media for images.
    p purvis

    Comment


    • #3
      Paul,
      FYI - in my gbPoster app, I used a command line utility "jpeg2pdf" to create PDF files from image files. But for exporting, I ran across XPDF https://www.xpdfreader.com/ that has command line utilities for that task, and others.

      Comment

      Working...
      X