Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title

2010-02-28 Thread sashah

Hi Mike,

The .jar is always built into the .ear for the application and deployed to
the server.

The original WL8 version used iText-1.4.7.jar.  I did not have to make any
significant code changes when I went from iText-1.4.7.jar to
iText-2.1.7.jar, while there were quite a few changes going to
iText-5.0.1.jar.  Since WL10 runs under Java 1.6, and the 5.0.1 version is
written in Java 5, I was hoping the Adobe 9 issues were resolved in
iText-5.0.1.jar.

I wish it was easier to narrow down the problem in the iText.jar.  Since no
errors are thrown and I have not been able to pinpoint the difference in the
documents I was hoping somebody had already experienced the problem.

Thanks...
S



Mike Marchywka-2 wrote:
> 
> 
> 
> 
> 
> 
> 
> 
>> Date: Sat, 27 Feb 2010 11:12:04 -0800
>> From: sandys...@yahoo.com
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] PDF opened in Java shows 'Error Page' in
>> Title
>>
>>
>> Hi Mike,
>>
>> The code has been under my control through the changes aso I can confirm
>> that no configurations changes were made. Also all the tests were run on
> 
> Changing versions of something often creates small config changes. 
> This could be a classpath order or some really subtle thing- unlikely
> but I'm pointing out issues. Normally you can't just change a jar
> file when API has changed and assume all the methods are the same
> and it sounds like you never tried to recompile your app against the new
> itext jars. I usually try to have a build of somethiing designed to run on
> a server
> that runs from the  command line so it is easier to test. 
> 
>> the same server so that is also not likely to be the problem. However, my
>> PC has Adobe 9 installed which was the client when I ran the tests
>> described
>> below. Then later, I tested it on a PC with Adobe 8 installed and I did
>> not see ant of the errors.
>>
>> This could be an Adobe 9 related problem. Does anybody know of a fix for
>> it?
> 
> If you want to approach this empirically and look at properties of the
> final
> result, version-specific Adobe problems can only be answered by an insider
> like
> Leonard- I'm not sure if either version has any means to get a detailed
> error report or
> report back to adobe when it finds an error ( obviously I try not to use
> them LOL) . 
> I'm not sure there is a good  pdf-dump tool likely to
> point to the questionable code inside the pdf but maybe someone can
> suggest one. 
> But, again, if you can narrow down the
> problem item and it seems to be isolated, you may be able to find the
> itext code
> responsible and post that. 
> 
> 
> 
> 
>>
>> Thanks
>> S
>>
>>
>>
>>
>> Mike Marchywka-2 wrote:
>>>
>>> 
 Date: Fri, 26 Feb 2010 11:53:27 -0800
 From: sandys...@yahoo.com
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] PDF opened in Java shows 'Error Page' in
 Title


 This may be an application specific problem. If anybody has experienced
 it
 before, please let me know.

 I am in the process of upgrading a java web application from Weblogic8
 to
 Weblogic10. The application renders invoices in PDF format via
 iText.jar.
>>>
>>>
>>> There have been some cases where web servers treat PDF as ASCII
>>> and clear high bit. You wouldn't want to rule out a change in
>>> configuration
>>> so if you can diff config files that may be worthwhile ( if not for this
>>> specific problem more generally ). Some people have complained about
>>> quirks or problems using their code  with servlets etc and it isn't hard
>>> to write code that only works for a very idiosyncratic server setup.
>>>
>>>

 The original WL8 version used iText-1.4.7.jar

 For the WL10 version I first tried iText-2.1.7.jar saw the errors I am
 about
 to describe in this post and so am now trying out iText-5.0.1.jar but
 still
 see the same errors. The invoices (1 or 2 page documents) are all
 rendered
 correctly, however, some of the invoices are rendered with the title
 displayed as:

 Billng App - Error Page (only this line shows)
 https://... url to the page

 The title should display:

 https://... url to the page

 Error Page is the default title for the application's errorpage.jsp
>>>
>>>
>>> Can you trace the code far enough to get something related to itext?
>>> Did you recompile against new itext or just replace jar files?
>>> Often catching Exception is done when Throwable is more comprehensive.
>>> In particular note that this does not derive from exception,
>>>
>>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoSuchMethodError.html
>>>
>>>

 If the applicaiton is throwing any errors, it is not apparent as there
 are
 no errors in the logs or any visible differences in the PDF document.
 It
 is
 always the same documents 

[iText-questions] iTextSharp - extended features is no longer avalible

2010-02-28 Thread dathrix primeni
Hi,
Im filling Form Fields with iTextsharp, but when I open the pdf file it shows 
this message:
"This document enabled extended features in Adobe Reader. The document has been 
changed since it was created an use of extended features in no longer 
available. Please contact the author for the original version of this document."

What Im doing wrong?
This is my code:
string OUT_FILE = "c:\\out.pdf";
string IN_FILE = "c:\\in.pdf";
System.IO.FileStream out_stream = new 
System.IO.FileStream(OUT_FILE, FileMode.Create);
PdfStamper stamper = new PdfStamper(new PdfReader(IN_FILE), 
out_stream, '\0', true);
stamper.AcroFields.SetField("some_field[0]", "some text");
stamper.FormFlattening = false;//need to fill the form fields again 
sometime
stamper.Close();

thank you very much for answer
Jiri Mares

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title

2010-02-28 Thread 1T3XT info
Leonard Rosenthol wrote:
> Without an actual PDF, I can't tell anything...

Also it isn't clear what is meant:
is "Error Page" shown in the browser title?
Then it's not a PDF or an iText problem.

Furthermore: the OP is using JSP.
It is very well documented that people using iText with JSP are
deliberately choosing to solve all their problems on their own.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title

2010-02-28 Thread Leonard Rosenthol
Without an actual PDF, I can't tell anything

Leonard

-Original Message-
From: Mike Marchywka [mailto:marchy...@hotmail.com] 
Sent: Sunday, February 28, 2010 12:59 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title








> Date: Sat, 27 Feb 2010 11:12:04 -0800
> From: sandys...@yahoo.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title
>
>
> Hi Mike,
>
> The code has been under my control through the changes aso I can confirm
> that no configurations changes were made. Also all the tests were run on

Changing versions of something often creates small config changes. 
This could be a classpath order or some really subtle thing- unlikely
but I'm pointing out issues. Normally you can't just change a jar
file when API has changed and assume all the methods are the same
and it sounds like you never tried to recompile your app against the new
itext jars. I usually try to have a build of somethiing designed to run on a 
server
that runs from the  command line so it is easier to test. 

> the same server so that is also not likely to be the problem. However, my
> PC has Adobe 9 installed which was the client when I ran the tests described
> below. Then later, I tested it on a PC with Adobe 8 installed and I did
> not see ant of the errors.
>
> This could be an Adobe 9 related problem. Does anybody know of a fix for
> it?

If you want to approach this empirically and look at properties of the final
result, version-specific Adobe problems can only be answered by an insider like
Leonard- I'm not sure if either version has any means to get a detailed error 
report or
report back to adobe when it finds an error ( obviously I try not to use them 
LOL) . 
I'm not sure there is a good  pdf-dump tool likely to
point to the questionable code inside the pdf but maybe someone can suggest 
one. 
But, again, if you can narrow down the
problem item and it seems to be isolated, you may be able to find the itext code
responsible and post that. 




>
> Thanks
> S
>
>
>
>
> Mike Marchywka-2 wrote:
>>
>> 
>>> Date: Fri, 26 Feb 2010 11:53:27 -0800
>>> From: sandys...@yahoo.com
>>> To: itext-questions@lists.sourceforge.net
>>> Subject: [iText-questions] PDF opened in Java shows 'Error Page' in Title
>>>
>>>
>>> This may be an application specific problem. If anybody has experienced
>>> it
>>> before, please let me know.
>>>
>>> I am in the process of upgrading a java web application from Weblogic8 to
>>> Weblogic10. The application renders invoices in PDF format via iText.jar.
>>
>>
>> There have been some cases where web servers treat PDF as ASCII
>> and clear high bit. You wouldn't want to rule out a change in
>> configuration
>> so if you can diff config files that may be worthwhile ( if not for this
>> specific problem more generally ). Some people have complained about
>> quirks or problems using their code  with servlets etc and it isn't hard
>> to write code that only works for a very idiosyncratic server setup.
>>
>>
>>>
>>> The original WL8 version used iText-1.4.7.jar
>>>
>>> For the WL10 version I first tried iText-2.1.7.jar saw the errors I am
>>> about
>>> to describe in this post and so am now trying out iText-5.0.1.jar but
>>> still
>>> see the same errors. The invoices (1 or 2 page documents) are all
>>> rendered
>>> correctly, however, some of the invoices are rendered with the title
>>> displayed as:
>>>
>>> Billng App - Error Page (only this line shows)
>>> https://... url to the page
>>>
>>> The title should display:
>>>
>>> https://... url to the page
>>>
>>> Error Page is the default title for the application's errorpage.jsp
>>
>>
>> Can you trace the code far enough to get something related to itext?
>> Did you recompile against new itext or just replace jar files?
>> Often catching Exception is done when Throwable is more comprehensive.
>> In particular note that this does not derive from exception,
>>
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoSuchMethodError.html
>>
>>
>>>
>>> If the applicaiton is throwing any errors, it is not apparent as there
>>> are
>>> no errors in the logs or any visible differences in the PDF document. It
>>> is
>>> always the same documents that display the error.
>>>
>>> Please let me know if you need more information, code extracts or screen
>>> shots.
>>>
>>> Your responses to this would be much appreciated.
>>>
>>> Thanks!
>>> S
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/PDF-opened-in-Java-shows-%27Error-Page%27-in-Title-tp27722675p27722675.html
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>> --
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Spe

Re: [iText-questions] Get the Fields not from Datasets

2010-02-28 Thread 1T3XT info
SRI!0! wrote:
> Hi,
>I have a requirement to populate the PDF template. Some fields from the
> template are from  and some are not from . So
> when i get the XFAForm object from the reader it does not have the other
> fields so is there a way to get the fields from the template and how do we
> need to set that fields back to template. These fields that are not from
>  are like headers and footer that repeat in each in page.
> 
> Please let me know how to proceed.

Sounds like what you call "the other fields" aren't fields.
In that case, you're on your own.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title

2010-02-28 Thread Mike Marchywka







> Date: Sat, 27 Feb 2010 11:12:04 -0800
> From: sandys...@yahoo.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title
>
>
> Hi Mike,
>
> The code has been under my control through the changes aso I can confirm
> that no configurations changes were made. Also all the tests were run on

Changing versions of something often creates small config changes. 
This could be a classpath order or some really subtle thing- unlikely
but I'm pointing out issues. Normally you can't just change a jar
file when API has changed and assume all the methods are the same
and it sounds like you never tried to recompile your app against the new
itext jars. I usually try to have a build of somethiing designed to run on a 
server
that runs from the  command line so it is easier to test. 

> the same server so that is also not likely to be the problem. However, my
> PC has Adobe 9 installed which was the client when I ran the tests described
> below. Then later, I tested it on a PC with Adobe 8 installed and I did
> not see ant of the errors.
>
> This could be an Adobe 9 related problem. Does anybody know of a fix for
> it?

If you want to approach this empirically and look at properties of the final
result, version-specific Adobe problems can only be answered by an insider like
Leonard- I'm not sure if either version has any means to get a detailed error 
report or
report back to adobe when it finds an error ( obviously I try not to use them 
LOL) . 
I'm not sure there is a good  pdf-dump tool likely to
point to the questionable code inside the pdf but maybe someone can suggest 
one. 
But, again, if you can narrow down the
problem item and it seems to be isolated, you may be able to find the itext code
responsible and post that. 




>
> Thanks
> S
>
>
>
>
> Mike Marchywka-2 wrote:
>>
>> 
>>> Date: Fri, 26 Feb 2010 11:53:27 -0800
>>> From: sandys...@yahoo.com
>>> To: itext-questions@lists.sourceforge.net
>>> Subject: [iText-questions] PDF opened in Java shows 'Error Page' in Title
>>>
>>>
>>> This may be an application specific problem. If anybody has experienced
>>> it
>>> before, please let me know.
>>>
>>> I am in the process of upgrading a java web application from Weblogic8 to
>>> Weblogic10. The application renders invoices in PDF format via iText.jar.
>>
>>
>> There have been some cases where web servers treat PDF as ASCII
>> and clear high bit. You wouldn't want to rule out a change in
>> configuration
>> so if you can diff config files that may be worthwhile ( if not for this
>> specific problem more generally ). Some people have complained about
>> quirks or problems using their code  with servlets etc and it isn't hard
>> to write code that only works for a very idiosyncratic server setup.
>>
>>
>>>
>>> The original WL8 version used iText-1.4.7.jar
>>>
>>> For the WL10 version I first tried iText-2.1.7.jar saw the errors I am
>>> about
>>> to describe in this post and so am now trying out iText-5.0.1.jar but
>>> still
>>> see the same errors. The invoices (1 or 2 page documents) are all
>>> rendered
>>> correctly, however, some of the invoices are rendered with the title
>>> displayed as:
>>>
>>> Billng App - Error Page (only this line shows)
>>> https://... url to the page
>>>
>>> The title should display:
>>>
>>> https://... url to the page
>>>
>>> Error Page is the default title for the application's errorpage.jsp
>>
>>
>> Can you trace the code far enough to get something related to itext?
>> Did you recompile against new itext or just replace jar files?
>> Often catching Exception is done when Throwable is more comprehensive.
>> In particular note that this does not derive from exception,
>>
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoSuchMethodError.html
>>
>>
>>>
>>> If the applicaiton is throwing any errors, it is not apparent as there
>>> are
>>> no errors in the logs or any visible differences in the PDF document. It
>>> is
>>> always the same documents that display the error.
>>>
>>> Please let me know if you need more information, code extracts or screen
>>> shots.
>>>
>>> Your responses to this would be much appreciated.
>>>
>>> Thanks!
>>> S
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/PDF-opened-in-Java-shows-%27Error-Page%27-in-Title-tp27722675p27722675.html
>>> Sent from the iText - General mailing list archive at Nabble.com.
>>>
>>>
>>> --
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> ___
>>> iText-questions mailing list
>>> iText-questions@lis

Re: [iText-questions] PDF opened in Java shows 'Error Page' in Title

2010-02-28 Thread sashah

Hi Mike,

The code has been under my control through the changes aso I can confirm
that no configurations changes were made.  Also all the tests were run on
the same server so that is also not likely to be the problem.  However, my
PC has Adobe 9 installed which was the client when I ran the tests described
below.   Then later, I tested it on a PC with Adobe 8 installed and I did
not see ant of the errors.  

This could be an Adobe 9 related problem.  Does anybody know of a fix for
it?

Thanks
S
 



Mike Marchywka-2 wrote:
> 
> 
>> Date: Fri, 26 Feb 2010 11:53:27 -0800
>> From: sandys...@yahoo.com
>> To: itext-questions@lists.sourceforge.net
>> Subject: [iText-questions] PDF opened in Java shows 'Error Page' in Title
>>
>>
>> This may be an application specific problem. If anybody has experienced
>> it
>> before, please let me know.
>>
>> I am in the process of upgrading a java web application from Weblogic8 to
>> Weblogic10. The application renders invoices in PDF format via iText.jar.
> 
> 
> There have been some cases where web servers treat PDF as ASCII
> and clear high bit. You wouldn't want to rule out a change in
> configuration
> so if you can diff config files that may be worthwhile ( if not for this
> specific problem more generally ). Some people have complained about
> quirks or problems using their code  with servlets etc and it isn't hard
> to write code that only works for a very idiosyncratic server setup. 
> 
> 
>>
>> The original WL8 version used iText-1.4.7.jar
>>
>> For the WL10 version I first tried iText-2.1.7.jar saw the errors I am
>> about
>> to describe in this post and so am now trying out iText-5.0.1.jar but
>> still
>> see the same errors. The invoices (1 or 2 page documents) are all
>> rendered
>> correctly, however, some of the invoices are rendered with the title
>> displayed as:
>>
>> Billng App - Error Page (only this line shows)
>> https://... url to the page
>>
>> The title should display:
>>
>> https://... url to the page
>>
>> Error Page is the default title for the application's errorpage.jsp
> 
> 
> Can you trace the code far enough to get something related to itext?
> Did you recompile against new itext or just replace jar files?
> Often catching Exception is done when Throwable is more comprehensive.
> In particular note that this does not derive from exception,
> 
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoSuchMethodError.html
> 
> 
>>
>> If the applicaiton is throwing any errors, it is not apparent as there
>> are
>> no errors in the logs or any visible differences in the PDF document. It
>> is
>> always the same documents that display the error.
>>
>> Please let me know if you need more information, code extracts or screen
>> shots.
>>
>> Your responses to this would be much appreciated.
>>
>> Thanks!
>> S
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/PDF-opened-in-Java-shows-%27Error-Page%27-in-Title-tp27722675p27722675.html
>> Sent from the iText - General mailing list archive at Nabble.com.
>>
>>
>> --
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>> Check the site with examples before you ask questions:
>> http://www.1t3xt.info/examples/
>> You can also search the keywords list:
>> http://1t3xt.info/tutorials/keywords/
> 
> _
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/201469228/direct/01/
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://old.nabble.com/PDF-opened-in-Java-shows-%27Error-Page%27-in-Title-tp27722675p27730225.html
Sent from the 

Re: [iText-questions] Converting Swing JTextPane to HTML with iText

2010-02-28 Thread ken_s


Hi, I am have Java document application I wrote myself, problem is  i use
iText to convert a JtextPane to pdf. It produces one page only and the other
text is cut off. I am trying to insert pages etc. nut does not work.
Does anyone have a similar problem and solution to it???
-- 
View this message in context: 
http://old.nabble.com/Converting-Swing-JTextPane-to-HTML-with-iText-tp19014796p27732279.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/