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: pdedumpobject
Conf: (P-PDF) Developers, Msg: 55233
From: rosy specchia
Date: 5/29/2002 05:11 PM

Hi,
I use Acrobat SDK 4.0 R3 and I need to use the "PDEDumpObject" method.

I use the following code:

/* Dump callback function */
ACCB1 void ACCB2 myPDEObjectDumpProc(PDEObject
pdeobject, char* dumpInfo, void* clientData)
{
/* Output the data to a file */
FILE *f;
f=fopen("c:\\temp\\PDEObjectDump.txt", "a");
if (f) {
fprintf(f, "%s\n", dumpInfo);
fclose(f);
}
}

PDDoc pdDoc = PDDocOpen ((ASPathName) lpszPathName, NULL,ASCallbackCreateProto(PDAuthProc, MyProc), TRUE);
PDPage pdPage = PDDocAcquirePage (pdDoc, (ASInt32) 0);
PDPageGetCropBox (pdPage, &cropBox);
PDEContent pdeContent = PDPageAcquirePDEContent(pdPage, 0);
numElems = PDEContentGetNumElems(pdeContent);
for (j = 0; j < numElems; j++)
{
pdeElement = PDEContentGetElem(pdeContent, j);
PDEObjectDump((PDEObject)pdeElement, (ASInt32)10,ASCallbackCreateProto PDEObjectDumpProc,myPDEObjectDumpProc), NULL);
.........
........

I find the following lines in the PDEObjectDump.txt file:
Content (0) #1 13109f0
Path (2) #1 1306310
Path (2) #1 1307e60
Path (2) #1 1312430
Text (1) #1 1312840
Path (2) #1 1312b10
Text (1) #1 1312d60
Path (2) #1 1313930
Path (2) #1 1314260
Path (2) #1 1314410
Path (2) #1 1314600
Text (1) #1 13147b0
Path (2) #1 1314a30
Path (2) #1 1314be0
Path (2) #1 1314d90
Path (2) #1 1314f40
Text (1) #1 1314310
Path (2) #1 13151c0
........
........

while in the PDEDumpObject sample, in the api overview manual, there is the following lines in the PDEObjectDump.txt:

Content (0) #1 3a9d264
Content flags: none Num elems: 3
Path (2) #1 3a9d31c
Op: fill Size: 20 bbox 71 143 288 216 {
ColorSpace (9) #6 3a9d2fc
{DeviceGray }
fill: DeviceGray 0 0 0 0
Rect: 72 144 216 72
}

I use the same code of the sample.
who can help me ?
thenks

Thanks.






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.