[iText-questions] acrofields count is 0

2014-10-08 Thread tanshishu
Dear all, I have a problem with itext , when i open a pdf to get the fields with the code behind. AcroFields acroFields = pdf.AcroFields; but the returned acrofields is null.it worked fine in some pdf, but there was problem in some other pdf.

Re: [iText-questions] acrofields count is 0

2014-10-08 Thread TvT
Try this: AcroFields acroFields = stamper.getAcroFields(); MapString, AcroFields.Item fields = acroFields.getFields(); 2014-10-08 9:45 GMT+02:00 tanshi...@sina.com: Dear all, I have a problem with itext , when i open a pdf to get the fields with the code behind. AcroFields acroFields

[iText-questions] [SPAM] Re: acrofields count is 0

2014-10-08 Thread mkl
tanshishu, tanshishu wrote it worked fine in some pdf, but there was problem in some other pdf. That obviously indicates that there is some relevant distinction between those sets of files. Have you tried to compare them to find that distinction? If you tried without success or if you simply

[iText-questions] [SPAM] Re: acrofields count is 0

2014-10-08 Thread mkl
TvT, TvT wrote Try this: AcroFields acroFields = stamper.getAcroFields(); Maplt;String, AcroFields.Itemgt; fields = acroFields.getFields(); 2014-10-08 9:45 GMT+02:00 lt; tanshishu@ gt;: AcroFields acroFields = pdf.AcroFields; but the returned acrofields is null. If indeed the

Re: [iText-questions] acrofields count is 0

2014-10-08 Thread Bruno Lowagie
On 10/8/2014 0:45 AM, tanshi...@sina.com wrote: Dear all, I have a problem with itext , when i open a pdf to get the fields with the code behind. AcroFields acroFields = pdf.AcroFields; but the returned acrofields is null. it worked fine in some pdf, but there was problem in some

Re: [iText-questions] [SPAM] Re: acrofields count is 0

2014-10-08 Thread TvT
2014-10-08 15:50 GMT+02:00 mkl m...@wir-sind-cool.org: If indeed the returned acrofields is null, your proposal to do acroFields.getFields() will result in a null pointer exception (or the @mkl But since acroFields is never null this it not going to happen (checked that of course)...

Re: [iText-questions] [SPAM] Re: [SPAM] Re: acrofields count is 0

2014-10-08 Thread TvT
Exactly! I mean I don't know too much about the c# version of itext but there is no way he gets null in return. He seems to directly access the acrofields object which of course can be null if he directly accesses it (depending whether the acroFields object has been instanciated before or not).

Re: [iText-questions] [SPAM] Re: [SPAM] Re: acrofields count is 0

2014-10-08 Thread Bruno Lowagie
On 10/8/2014 10:32 AM, mkl wrote: So in essence you are saying the original poster's description of his observations is nonsense. When looking at the Subject line, not the content of the mail, I assume that the OP means to say that he can get the AcroFields (although he says it returns null),

[iText-questions] iText isn't outputting working jpegs

2014-10-08 Thread Ben
As it stands i've a section of code which writes to the SD card. It writes .jpegs, and it is giving them all variable kb sizes like you'd expect from a pdf full of images. However, when I select them on the tablet it's 'Unable to open photo', and when I open them on my computer it doesn't allow