Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: Re: binary stuff' ???
Conf: (P-PDF) Developers, Msg: 56539
From: LeonardR
Date: 5/29/2002 05:20 PM

At 08:10 AM 8/25/2001 -0400, p-pdf-developer Listmanager wrote:
>i'd like to write a little command line tool that merges two pdf-files.

OK. That's a pretty difficult task to get correct if your not
careful.


>Reading adobes references enabled me to do that job.

Yup, all the info you need is in there - you just have to make
sure you "cross all the i's and dot all the t's". Of course, that assumes
that you are working with PDF files that are 100% to spec - and there are a
LOT of them out there that are not.


>But now i encounter some problems by viewing my output files with acrobat
>reader.

What kind of problems? What errors do you get from Acrobat?


>I think the problem is the "binary stuff" right after the header.

That could be. Other common problems would involve correctly
updating all object ID references, correctly updating the XREF tables, etc.


>At development time i didn't pay any attention to that, because i thought
>it is not important. But now it seems, that the acrobat reader can't read
>the file without the "binary stuff".

You can have a file w/o that "binary stuff", provided that you get
all the object offsets in the Xref correct.


>The reference doesn't specify the "binary stuff". What is it? What has it
>to contain? The reference only tells that it consists of characters
>greater 128.

It's there for historical reasons to trick software from not doing
line ending conversions on a PDF.


Leonard

----------------------------------------------------------------------------------
Leonard Rosenthol
Director of Software Development (215) 922-3509 (voice)
Appligent, Inc. (formerly Digital Applications) (610) 284-4233 (fax)

PGP Fingerprint: 8CC9 8878 921E C627 0BC1 15BB FC19 64A9 0016 1397


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.