Jump to content

encoding/decoding a pdf file


Recommended Posts

Hello,

I am trying to figure out how to read and write pdfs, but I cannot find any info on how they are encoded.

I created a simple pdf by using on of those printer programs. It says "Untitled" at the top, then "Hello", then at the bottom "Page 1". That's it, just that one page in the whole document.

A FileRead ( ) of that pdf file gives me this:

%PDF-1.3
%Çì¢
5 0 obj
<</Length 6 0 R/Filter /FlateDecode>>
stream
xœMŒÍ
Â0„ÑÚª«ø{¬‡®›íO’« ž-9öV± Th}0
î\†™ogB&%ÈA?Ópj5oˆ1¶×¯™˜ÀP.ÿ¾ñìü£AK¶¶J£{

I can make neither heads nor tails of that. Well, I can get the obvious info, but not the author or anything. Performing a String ( ) on the fileread'ed info gives me a ton of random letters/numbers, which also make no sense...

Google has led me nowhere.

Anyone have any idea?

edit: omg wrong forum :"> please move to v3 support

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

When working with PDF's I found it was easier to have the SDK provided by Adobe. It actually costs $99 for a single license, but if you have Adobe Acrobat installed the COM Objects are already there, but your target system will also need Acrobat installed.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

When working with PDF's I found it was easier to have the SDK provided by Adobe. It actually costs $99 for a single license, but if you have Adobe Acrobat installed the COM Objects are already there, but your target system will also need Acrobat installed.

JS

The Acrobat SDK its now again available for free: http://www.adobe.com/devnet/acrobat/

If you want to en/decrypt you may use a free command-line tool: http://www.accesspdf.com/pdftk/

HTH, Reinhard

Link to comment
Share on other sites

The Acrobat SDK its now again available for free: http://www.adobe.com/devnet/acrobat/

If you want to en/decrypt you may use a free command-line tool: http://www.accesspdf.com/pdftk/

HTH, Reinhard

Ah thank you! I didnt know they had released a free version. That is awesome! I will have to re-code a couple of my applications.

THANKS A MILLION!

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...