tags:

views:

46

answers:

1

What are the maximum no of objects that a PDF file can have?

+4  A: 

From the PDF specifications:

In general, PDF does not restrict the size or quantity of things described in the file format, such as numbers, arrays, images, and so on.

....

PDF itself has one architectural limit. Because ten digits are allocated to byte offsets, the size of a file is limited to 10 10 bytes (approximately 10GB)."

Tommy
From Spec:Entries in the file trailer dictionarySize: Integer: The Total no of entries in the file Cross Ref table.Here i am confused if this define the limitation as 2 byte integer "65535" for no of objects. I am not sure.
Learner
It's actually 10 digits: 0000000000-9999999999, and from what I undetstand PDF uses two more keys for the cross-reference. The second key is 5 digits.
Tommy