Jump to content

Reading PDF files from C++

- - - - -

  • Please log in to reply
2 replies to this topic

#1
SankaSL

SankaSL

    Newbie

  • Members
  • Pip
  • 8 posts
Hey, I wont to make a program which can read a PDF and find itz 'title' and 'author' and write it to a .txt file..
most of the PDF files are encoded, i need to decode them and fine the title so im not sure how to do that...
please help!

Thanx in advance.

#2
julmuri

julmuri

    Programmer

  • Members
  • PipPipPipPip
  • 139 posts
You should look into pdf spec if you want to roll your own parser
PDF Reference and Adobe Extensions to the PDF Specification

or look into existing ones, like: PoDoFo.
std::string s("oberq zhpu?");std::for_each(s.begin(),s.end(),[&](char&c){c=~c;c=~c-0x01/(~(c|0x20)/0x0D*0x02-0x0B)*0x0D;});std::cout<<s;

#3
Ruel

Ruel

    Newbie

  • Members
  • PipPip
  • 14 posts
Here: Poppler




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users