It's really interesting that 'this produces an error, because it has not yet been designed or written to be that way' is normally presented here as 'its broken, why haven't you fixed it yet' with the underlying 'because I didn't pay for it you are responsible but you must do it for free'.
How much mileage would you get by saying that you can't fit 7 people in a Mini to go on holiday, or that your big expensive German rear wheel drive saloon on fat tyres is useless in the snow??? SURELY there is a implied caveat that says. This is what this great library can do. It might not do everything you WANT it to do, and specifically old versions may not function correctly with new PDF things, BUT you are at liberty to try and add to/fix it yourself, or you are implicitly bound by the time and other constraints of those who are writing it. Specifically to provide example files and the right amount of error/stack trace to enable them to see if this is a bug, or something not implemented yet. I still can't get my car to do 100mpg, even though I think it is the 'right' thing for it to do, but I do still keep driving it under the 'limitations' it demonstrates. EVERYTHING has something it can't do. john renfrew Right Way Up -----Original Message----- From: Paul Cooper [mailto:pcoo...@emspic.org] Sent: 06 January 2011 19:43 To: Post all your questions about iText here Subject: Re: [iText-questions] remove watermark layer 1T3XT, I did not notice this post, as it isn't a reply to the original thread... Which version of iText generated these pdfs? I've tried both 2.1.4 (yes, I know, not the latest version of v2) and 5.0.5. Both generated errors; 2.1.4 threw a NullPointerException closing the PdfStamper, while 5.0.5 threw a ClassCastException doing the same thing.. I suspect that even if 5.0.5 were to somehow work, we'd be unable to use it, as we make heavy use of JasperReports, which currently uses 2.x (or did last time I checked). And please understand, I was NOT calling iText useless. It is a wonderful library that we make heavy use of. I was very put off by your "pay us to fix this" reply, in that buggy code should not be used as a source of revenue. That is anathema to the open source world. <caustic rant> And since you mentioned it, "harsh words that were exchanged on this free and public (!) forum"...dude, you yourself have had some extremely harsh words for people on this very forum. Most of the time I find it amusing....today, not so much. Understand that in the open source world, these forums are a developer's life-blood, and when we find a problem posted that we experience, and there is a clear thread that ends with "pay us to fix it"...it's very off-putting. </caustic rant> Paul Cooper Applications Director EMS Performance Improvement Center -----Original Message----- From: 1T3XT [mailto:i...@1t3xt.info] Sent: Wednesday, January 05, 2011 1:37 PM To: Post all your questions about iText here Subject: Re: remove watermark layer Op 5/01/2011 18:23, Paul Cooper schreef: > Wow. How so, wow? > So, shouldn't this code be removed from your library, as it seems to > be useless and bug-inducing? See the attached example. Are you saying the code is useless? If I have a file ocg.pdf, then I can use the code to get info about PdfLayers and I can apply changes. The file ocg.pdf is changed into ocg_altered.pdf without throwing an exception. > As for paying for a custom solution...we'll just generate two different > files and switch the filenames.... That's fine by me if that works for you, but there's no reason for you to say that iText is useless. ---------------------------------------------------------------------------- -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions 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 ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions 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