Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Reading PDF files from C++

pdf

  • Please log in to reply
3 replies to this topic

#1 SankaSL

SankaSL

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 27 September 2010 - 12:52 AM

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.
  • 0

#2 julmuri

julmuri

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 137 posts

Posted 27 September 2010 - 01:48 AM

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.
  • 0

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

    CC Newcomer

  • Just Joined
  • PipPip
  • 13 posts

Posted 27 September 2010 - 01:48 AM

Here: Poppler
  • 0

#4 lespauled

lespauled

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1360 posts
  • Programming Language:C, C++, C#, JavaScript, PL/SQL, Delphi/Object Pascal, Visual Basic .NET, Pascal, Transact-SQL, Bash

Posted 05 March 2014 - 05:40 AM

holy%2520thread%2520resurrection.jpg


  • 0
My Blog: http://forum.codecal...699-blog-77241/
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth





Also tagged with one or more of these keywords: pdf

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download