PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Feb 24, 2020 2:57 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jan 13, 2009 4:12 pm 
Offline

Joined: Tue Jan 13, 2009 3:43 pm
Posts: 2
Hi,

first of all: You have done a great job.

My PDF documents use some empty pages. Viewing them with Acrobat is not a problem but some
other tools are more strict when processing the PDF. Empty pages create an error message which
says that the page is missing the resources dictionary.
PDFsharp doesn't add an emtpy dictionary (/Resources<<>>) if the page is empty.

If I understand the PDF reference (see below) this is required.

TABLE 3.27 Entries in a page object
Key = Resources
Type = dictionary
(Required; inheritable) A dictionary containing any resources required by
the page (see Section 3.7.2, “Resource Dictionaries”).
If the page requires no resources, the value of this entry should be an empty dictionary.
Omitting the entry entirely indicates that the resources are to be inherited from an ancestor node in the page tree.

Regards


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 13, 2009 8:11 pm 
Offline
User avatar

Joined: Tue Oct 14, 2008 6:15 pm
Posts: 32
Location: USA
Fish wrote:
Omitting the entry entirely indicates that the resources are to be inherited from an ancestor node in the page tree.


As you quoted from the pdf spec, if a page doesn't have a resource dictionary its to be assumed the page's resources are inherited from a parent node.

Acrobat doesn't have an issue with this (obviously because Adobe knows how to properly adhere to their own spec), on the other hand not all third party apps follow the spec 100%.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group