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: Content Stream Problems
Conf: (P-PDF) Developers, Msg: 139362
From: essial
Date: 9/13/2005 11:12 PM

I am expanding my XML export to also encapsulate actuial objects (text and paths) from the form (in addition to the form fields, which I have 100% working now). When I dump the content stream of one of my PDFs I get the following:

-------------------------------------------
nnual percentage yield for your account is based \
upon a rate tier as follows:)Tj
/CS1 cs 1 scn
ET
/GS1 gs
BT
/TT2 1 Tf
0.0068 Tc -0.0685 Tw 6 0 0 6 72 27.48 Tm
[(Form TIERRA)67(TE \(Rev)87(. 02/2005 \) Digit)27(al Dimensions, Inc. Co-Pilot PlatFORMachine)]TJ
ET
-------------------------------------------
It seems to cut off a lot of the beginning.. any reason why. And also, is there ANY easier way to get the actuial contents of a page besides MANUALLY parsing that pdf code? I worry that if I take all the time to manually read that info, and PDF specs change, i'll have to re-code that section. [edit] I should also note that I am getting the contents from the Page, and yes, I check to see if its an array or not. Heres my code:

if (CosDictKnown(Page, ASAtomFromString("Contents")))
{
	CosObj Contents = CosDictGet(Page, ASAtomFromString("Contents"));
	if (CosObjGetType(Contents) == CosStream)
	{
		// Single COS Stream
FoundContentStream(Contents); } else if (CosObjGetType(Contents) == CosArray) { // Array of COS Streams for ( int I = 0; I < CosArrayLength(Contents); I++ ) { FoundContentStream(CosArrayGet(Contents, I)); }; }; };


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.