[iText-questions] identify page content which is not marked and missing marked page content in structure tree

2010-02-16 Thread newoutlook
I want to identify page content which is not marked and missing marked page content in structure tree. Currently, I am getting MCIDs(Marked content identifier) from page contentStream and check the marked conent is in structuretree. This works ok. How do I identify page content which is not makr

Re: [iText-questions] page number determination

2010-01-22 Thread newoutlook
You are right I am parsing StructTree of PDF document. First, I get indirect reference to a page object I am looking from a tag or structure element(table, link, and list etc...) . Then I compare page original reference object's number for each page with number of indirect reference of the pa

Re: [iText-questions] page number determination

2010-01-19 Thread newoutlook
== null) return -1; for (int i=0; i > newoutlook wrote: >> I am using the following code to get page number for a node. > > Can you explain what you're doing and why? > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt

[iText-questions] page number determination

2010-01-18 Thread newoutlook
I am using the following code to get page number for a node. However, for some cases I am not getting page number because PG entry is available for a few nodes. is there any other I can page number for the some cases? Get page number if (getITxtDictionary().contains(PdfName.PG)) {

[iText-questions] creating pdf file issue.

2009-10-08 Thread newoutlook
I copied H.3Simple Text String Example (Hello world) from PDF ISO reference to text editor and added some header text like this "%PDF-1.6 %âãÏÓ" and saved as a PDF file. When I opened the file using PDF reader, I could not open the file. I am not sure it is a correct way to create a pdf file. The

[iText-questions] decoding bytes into character in a PDF document.

2009-10-05 Thread newoutlook
I want to get bytes from a PDF document and decode the bytes into characters. Is there a class in iText API ? it is kinda similiar to PDF reader fuctionality. -- View this message in context: http://www.nabble.com/decoding-bytes-into-character-in-a-PDF-document.-tp25757003p25757003.html Sent fr

Re: [iText-questions] Conversion of Encoding

2009-10-05 Thread newoutlook
that. > > Leonard > > -Original Message- > From: newoutlook [mailto:newoutlo...@yahoo.com] > Sent: Tuesday, September 15, 2009 6:00 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Conversion of Encoding > > > I reviewed the s

[iText-questions] unicode converstion

2009-10-02 Thread newoutlook
I want to check each character in a PDF document and see if the character is convertable to unicode. Is there any iText class for my situation ? I would appreciate if anybody point me to right direction. -- View this message in context: http://www.nabble.com/unicode-converstion-tp25716742p25

Re: [iText-questions] Looking for sample code to use readDictionary of PDfcontentParser

2009-10-01 Thread newoutlook
dex /*not Identity, INDEX*/ = mcDic.getAsNumber( PdfName.MCID > ).intValue(); > > > --Mark Storer > Senior Software Engineer > Cardiff.com > > #include > typedef std::Disclaimer DisCard; > > > >> -Original Message- >> From: newou

[iText-questions] Looking for sample code to use readDictionary of PDfcontentParser

2009-09-30 Thread newoutlook
Anybody out there has any sample code to use readDictionary of PDFcontentParser. I am trying to read "<< MCID 0 >>" dictionary entry from content stream. please help. -- View this message in context: http://www.nabble.com/Looking-for-sample-code-to-use-readDictionary-of-PDfcontentParser-tp2569

[iText-questions] Finding Structure Elements from Content Items

2009-09-24 Thread newoutlook
I reviewed section 14.7.4.4 Finding Structure Elements from Content Items from PDF32000_2008.pdf spec. Especially, this paragraph To locate the relevant parent tree entry, each object or content stream that is represented in the tree shallcontain a special dictionary entry, StructParent or S

Re: [iText-questions] security enabled pdf failed to open using pdfreader

2009-09-23 Thread newoutlook
It was a java issue. If I have bcprov-jdk15-143.jar jar instead of bcprov-jdk16-143.jar in my build path for my project, it works. I am using jdk 1.5. Thanks Mark. newoutlook wrote: > > The error message appears to be java issue. If I didn't enable security > password for th

[iText-questions] getting font for text string

2009-09-21 Thread newoutlook
I am looking for a iText Api class for the following content stream to get font for a text string. For example, Text string (\001) has font /T1_7 1 Tf. Please help me if anybody knows the class. BT /LI_Label <>BDC 0.929 0.11 0.141 scn /GS2 gs /T1_7 1 Tf 0 Tc 8 0 0 8 83.0628 167.5115 Tm (\001 )

Re: [iText-questions] security enabled pdf failed to open using pdfreader

2009-09-17 Thread newoutlook
Mark Storer > Senior Software Engineer > Cardiff.com > > #include > typedef std::Disclaimer DisCard; > > > >> -Original Message- >> From: newoutlook [mailto:newoutlo...@yahoo.com] >> Sent: Wednesday, September 16, 2009 2:22 PM >> To: ite

[iText-questions] security enabled pdf failed to open using pdfreader

2009-09-16 Thread newoutlook
I enabled security password for a pdf document. I tried open the doc using iText Pdfreader. I get the following exception. Anybody come across this issue? Exception in thread "main" java.lang.UnsupportedClassVersionError: (org/bouncycastle/asn1/DEREncodable) bad major version at offset=6

Re: [iText-questions] Conversion of Encoding

2009-09-15 Thread newoutlook
_diff_str = (PdfString) j.next(); // System.out.println("font diff entry =" + font_diff_str); //} } } 1T3XT info wrote: > > newoutlook wrote: >> I was wondering how do I get the encoding for text string using iText API >> before I interpret the text string. &g

Re: [iText-questions] Conversion of Encoding

2009-09-14 Thread newoutlook
I was wondering how do I get the encoding for text string using iText API before I interpret the text string. Bruno Lowagie (iText) wrote: > > Christian Kirchhoff wrote: >> Are there high level classes or functions in iText that would allow to >> change the encoding? > > No. > If you want to i

[iText-questions] parsing pdf text string and uncode compliance check

2009-09-14 Thread newoutlook
I want to parse a pdf document for text string and check if the text string is missing charater encodings(no unicode for characters). I am looking for some sample code to start with. Please help. newoutlook -- View this message in context: http://www.nabble.com/parsing-pdf-text-string-and

[iText-questions] unicode compliance verification

2009-09-11 Thread newoutlook
I am reading a PDF page by using the iText API as follows. byte[] data; FileInputStream in = new FileInputStream("somepdffile"); PdfReader reader = new PdfReader(new RandomAccessFileOrArray(in), null); data = reader.getPageContent(0); Rightnow, data is in byte array, and then I parse this by