Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Indirect object referencing (PDF parsing)

561 views
Skip to first unread message

Dragi?a Durić

unread,
Nov 2, 2004, 3:54:50 PM11/2/04
to
While trying to understand PDF spec, I've failed to find anywhere
answer to this.

Are indirect object references used only inside dictionary objects,
and always outside of stream objects?

Thanks,
dd

Aandi Inston

unread,
Nov 2, 2004, 4:19:42 PM11/2/04
to
drag...@gmail.com (Dragi?a Durić) wrote:

>While trying to understand PDF spec, I've failed to find anywhere
>answer to this.

When something can't be found in that document, it's often a clue that
you have either too simple or too complicated a view of PDF. On the
other hand, it is a big book so equally you can just miss things.


>
>Are indirect object references used only inside dictionary objects

No, they could be used inside other objects, such as an array

[ 1 2 3 0 R 4 ]

is an array with four elements, three numbers and one indirect
(unknown) object.

>and always outside of stream objects?

A stream dictionary can contain indirect objects like any other.
Nowhere in the PDF spec, however, is there any way a stream itself
(the stream data, filtered or unfiltered) can refer to an object
outside the stream by its object number. This is the reason why
Resource dictionaries exist for page (and some other) streams.
----------------------------------------
Aandi Inston qu...@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

Aandi Inston

unread,
Nov 2, 2004, 4:46:05 PM11/2/04
to
drag...@gmail.com (Dragi?a Durić) wrote:

>Are indirect object references used only inside dictionary objects

Also: as objects

5 0 obj
6 0 R
endobj

Dragi?a Durić

unread,
Nov 3, 2004, 3:08:50 AM11/3/04
to
Ok, this helps, but let me rephrase. (I am still reading spec on:)

I am reading 1.3 spec, and looking at moments to 1.5 for updates,
changes and so on. My intention is to cannibalize some PDF created by
OO and include some objects in my Panda generated PDF. I am designing
lexical analyzer and parser right now and for that I need to define my
scope as small as possible, so I don't have to parse whole .pdf if
possible :).

More exact question would be: Is it possible to have indirect object
reference in content stream?

TIA,
dd

qu...@dial.pipex.con (Aandi Inston) wrote in message news:<4187fffb....@read.news.uk.uu.net>...

Aandi Inston

unread,
Nov 3, 2004, 3:42:27 AM11/3/04
to
drag...@gmail.com (Dragi?a Duri&#263;) wrote:

> More exact question would be: Is it possible to have indirect object
>reference in content stream?

Same answer would be


Nowhere in the PDF spec, however, is there any way a stream itself
(the stream data, filtered or unfiltered) can refer to an object
outside the stream by its object number. This is the reason why
Resource dictionaries exist for page (and some other) streams.

Dragi?a Duri&#263;

unread,
Nov 4, 2004, 8:59:56 AM11/4/04
to
So I can parse pre-1.5 PDF (without uncompressing object streams, and
1.5 with) and make a structure of objects fully ignoring (only
copying) stream content. That is what I hoped, but as I am still on my
first reading of this spec... Many thanks!

dd

qu...@dial.pipex.con (Aandi Inston) wrote in message news:<418899d7....@read.news.uk.uu.net>...

0 new messages