We have a copy of ISO 32000-1:2008 but still cannot figure out what iText 
commands to use in order to get at the data.

Is what we are asking too difficult?

I'm just wondering, because I do not understand why someone more 
experienced/knowledgeable in iText cannot simple post a snippet of code showing 
us how to get at this data?
 
  
Regards
William
William Bell
E: [email protected]




________________________________
From: Leonard Rosenthol <[email protected]>
To: Post here <[email protected]>
Sent: Friday, 22 July, 2011 12:39:03
Subject: Re: [iText-questions] Document Properties dialog


You need a copy of ISO 32000-1:2008, the PDF standard.  That will tell you 
where 
everything you need is in the PDF, how to determine if a given font is embedded 
(and/or subset and/or ….)

Leonard
From: William Bell <[email protected]>
Reply-To: Post here <[email protected]>
Date: Fri, 22 Jul 2011 04:29:18 -0700
To: Post here <[email protected]>
Subject: [iText-questions] Document Properties dialog


Hi,

Many thanks for your reply.

1. We have found the following:

    ViewerPreferences  --  property in both PdfWriter & PdfReader but this only 
has a Set
    AddViewerPreferences()  --  again in both but this sets the preferences
    SimpleViewerPreferences  --  property in PdfReader only

Unfortunately, I can find no information on SimpleViewerPreferences in either 
theiText in Action book on or the web.

Can anyone provide information on this property?

2. I appreciate viewer preferences are stored in the Catalog.  But that was my 
question - do we have to code the examination of the catalog ourselves?

Our expectation from an API is that it provides functions or similar, which 
perform the actual work and which provide a simple call type interface.  For 
example:

  string getPagelayout()  --  which performs all the interrogation work and 
returns the set value eg: Single page

Nevertheless, if we are to code ourselves there seems to be no documentation to 
show how to do this.  We'd appreciate it if someone could simple show us how to 
get at the information we require.  For example:

a). On the Fonts tab we can list font names - but what code do we need to test 
whether any given font is embedded?

b). On the Initial View tab we need to test all fields - could someone provide 
the code needed to retrieve the (say) Page layout value?

Hopefully, if someone can provide code snippets for the 2 above examples, we 
will be able to develop the rest ourselves (we just need a kick-start!).

Thanks in advance.
  
Regards
William
William Bell
E: [email protected]

-----Original Message-----
From: 1T3XT BVBA [mailto:[email protected]] 
Sent: 21 July 2011 08:35
To: Post all your questions about iText here
Subject: Re: [iText-questions] Document Properties dialog

I wondered why nobody else was answering this question.
Then I saw it was sent to the wrong address: to ONE and only ONE inbox,
instead of to the list.
Please make sure you always use the correct address.

On 20/07/2011 16:57, William Bell wrote:
> 1. On page 435 of iText in Action 2nd Edition the function
> PdfWriter.setViewerPreferenses() is referred to.  However, there is no

> sign of this function in the 2 DLLs we have downloaded: iTextSharp.dll

> and iTextSharp.xtra.dll.  Can you please advise?

What we call "setters" in Java are often translated to "properties" in
C#.
Look for a property ViewerPreferences in PdfWriter instead of for a
setter.

> 2. Assuming that there is a PdfWriter.setViewerPreferences() there is 
> no mention in the book of an equivalent 
> PdfReader.getViewerPreferences().  Are we missing something or does 
> this function not exist?  And further, if it is the case this function

> does not exist, then are we correct in assuming we will effectively 
> have to code this ourselves?

Viewer preferences are stored in the Catalog (the root object of the
PDF).
You'll have to examine that dictionary.
Note that the method "setViewerPreferences()" which takes an int value
is
only a shortcut provided by iText.
Viewer preferences aren't stored as integers inside a PDF.
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to