As I had mentioned, I want to parse information out of an exisiting PDF file or 
an InputStream that would contain Base64 encoded version of PDF. Just was 
trying out with the examples to see if I can parse information out of the 
existing PDF files. 


Since I could not figure out which objects must be used, I thought of sending 
it out to group. Iam not sure of any forum on iText.NET . Would appreciate if 
you point me towards the right direction.

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 12:19 PM
To: Vijay Cinnakonda; [EMAIL PROTECTED]
Subject: RE: [iText-questions] Parsing an existing PDF document


This is a java forum, not .NET. Besides that you didn't tell us what you want 
to do. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Vijay Cinnakonda
> Sent: Thursday, December 16, 2004 4:45 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Parsing an existing PDF document
> 
> Hi
>  
>  I was trying to use iText.NET to read from an existing file, 
> but am unable to do it using the examples and the discussions 
> found at your site. I would appreciate if I can get some code 
> snippets on how to go around it. I had been trying to use it 
> in conjunction with a web service that is used transmit and 
> receive documents related to Title Insurance. 
> 
> The only example I found on reading an existing PDF was :
> 
>               PdfReader reader = new PdfReader("AcroForm.pdf");
>               PRAcroForm af = reader.getAcroForm();
>               ArrayList fields = af.getFields();
>               Map map = af.fieldByName;
>               Set keys = map.keySet();
>       
>               StreamWriter sw = new 
> StreamWriter("AcroFormValues.txt");
>               for (Iterator i = keys.iterator(); i.hasNext(); )
>               {
>                       String fieldName = (String)i.next();
>                       PRAcroForm.FieldInformation info = 
> af.getField(fieldName);
>                       PdfDictionary dic = info.getInfo();
>                       String val = dic.contains(PdfName.V) ? 
>                               
> PdfReader.getPdfObject(dic.get(PdfName.V)).ToString() 
>                               : "[null]";
> 
>                       sw.WriteLine(fieldName + "=" + val);
>               }
>               sw.Close();
> 
> 
> But, Iam just trying to parse a PDF which may come in as a 
> Base64String, and I need to parse information from the PDF. 
> Is there any direct approach to it?
> 
> 
> Thanks
> Vijay Cinnakonda
> HWj)bh+yNLv-yv'z\jwbv,xnv!3Ûjj[z('!lXzm^*^JÖv)!v-z+fjv
> z#jW({j-ìx%bMmç*'X(~zwilq zlX)ß{j-
> 

Reply via email to