DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: parse pdf file to pdf viewer via cmd  (Read 7,821 times)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
parse pdf file to pdf viewer via cmd
« on: February 21, 2012, 01:50 PM »
hello!

I want to parse a pdf file in a pdf viewer with a cmd commant or any other none GUI way

it would be best to use MuPDF, but any other pdf viewer would suffice

any help?

thanks!

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #1 on: February 26, 2012, 05:03 PM »
any chance?

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #2 on: March 03, 2012, 10:03 PM »
bump

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #3 on: June 01, 2012, 11:43 AM »
does anyone know if xpdf can open a pdf file with something like C:> xpdf afile.pdf ?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: parse pdf file to pdf viewer via cmd
« Reply #4 on: June 01, 2012, 02:08 PM »
does anyone know if xpdf can open a pdf file with something like C:> xpdf afile.pdf ?
How dangerous could it be to simply try that?
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #5 on: June 01, 2012, 04:00 PM »
I tried it with no luck
I cannot also locate a win32 manual, neither a xpdf.exe file
I only got xpdf tools for win32

any hint?

or any other solution? maybe a stand-alone library implementation?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: parse pdf file to pdf viewer via cmd
« Reply #6 on: June 01, 2012, 04:24 PM »
Did you look through the xpdf package at all?  There is no xpdf.exe file.  In the bin32/bin64 folders of the xpdf package, you'll find the following executables:

pdftotext.exe
pdftops.exe
pdftoppm.exe
pdfinfo.exe
pdfimages.exe
pdffonts.exe
pdfdetach.exe


I coloured the one you need to use.

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #7 on: June 01, 2012, 04:27 PM »
yeah I know, so there is no way to open a pdf via cmd, even with another program?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: parse pdf file to pdf viewer via cmd
« Reply #8 on: June 01, 2012, 04:30 PM »
Since you said you wanted to use MuPDF:

Code
"c:\path\to\mupdf.exe" "c:\my\path\somefile.pdf"

Obviously, change the paths to match your computer.

kalos

  • Member
  • Joined in 2006
  • **
  • Posts: 1,824
Re: parse pdf file to pdf viewer via cmd
« Reply #9 on: June 02, 2012, 09:31 AM »
wow great thanks!

Original address: https://www.donationcoder.com/forum/index.php?topic=30034.0