PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Resources Key is missing in the page object for empty pages

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Bug Reports - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
Fish



Joined: 13 Jan 2009
Posts: 1

PostPosted: Tue Jan 13, 2009 4:12 pm    Post subject: Resources Key is missing in the page object for empty pages Reply with quote

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
Back to top
View user's profile Send private message
Soldier-B



Joined: 14 Oct 2008
Posts: 16
Location: USA

PostPosted: Tue Jan 13, 2009 8:11 pm    Post subject: Re: Resources Key is missing in the page object for empty pa Reply with quote

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%.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Bug Reports - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com