Re: [iText-questions] table forced to next page

2012-04-16 Thread Jason Berk
I think I've traced the (presumed) bug to this method in PdfDocument: https://itext.svn.sourceforge.net/svnroot/itext/trunk/itext/src/main/jav a/com/itextpdf/text/pdf/PdfDocument.java boolean fitsPage(final PdfPTable table, final float margin) { if (!table.isLockedWidth()) { float total

Re: [iText-questions] Why am I unable to paint over content of particular type of PDF file?

2012-04-16 Thread Peter Sterba
I have find the solution. This particular PDF has the begining of coordinates in top-left corner, and not in bottom-left corner as most of pdfs do. (It is basically mirrored around the x-axis). Thanks for reading anyway. ---

Re: [iText-questions] Maybe a bug on PdfPKCS7-->getCrlUrl

2012-04-16 Thread Paulo Soares
I'll change the code to DERIA5String.getInstance(..., false); Paulo On Mon, Apr 16, 2012 at 11:33 AM, David Hook wrote: > > It is, although in this case it's more that a previous bug has been fixed. > The getInstance method should never have accepted the tagged object. Using > the getInstance()

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-16 Thread Paulo Soares
Thank you. Paulo On Mon, Apr 16, 2012 at 11:29 AM, David Hook wrote: > > getContent call in > > envelopedData = recipientInfo.getContent(certificateKey, > certificateKeyProvider); > > Should be: > > getContent(new > JceKeyTransEnvelopedRecipient(certificateKey).setProvider(certificateKeyProvider

[iText-questions] Why am I unable to paint over content of particular type of PDF file?

2012-04-16 Thread Peter Sterba
Hi, PDFs generated by a number of different scanners are processed by iText-5.0.5, and watermark is applied over scanned image. It works like charm, but just one new scanner produces his pdfs in such a format, that makes the stamp somehow invisible (or misplaced). (Files produced by this scanner m

Re: [iText-questions] Maybe a bug on PdfPKCS7-->getCrlUrl

2012-04-16 Thread David Hook
It is, although in this case it's more that a previous bug has been fixed. The getInstance method should never have accepted the tagged object. Using the getInstance() method with two parameters will work in both 1.47 and earlier versions of BC though. Regards, David -- View this message in con

Re: [iText-questions] iText 5.2.1 and Bouncycastle 1.47

2012-04-16 Thread David Hook
getContent call in envelopedData = recipientInfo.getContent(certificateKey, certificateKeyProvider); Should be: getContent(new JceKeyTransEnvelopedRecipient(certificateKey).setProvider(certificateKeyProvider)); I'd also suggest allowing people to specify a content provider, the original BC app

[iText-questions] Fitting things into current page

2012-04-16 Thread Stephen Davies
Is it possible to determine whether a given image will fit in the current page? If so, how? Is it possible to determine whether a given chunk will fit in the current page? If so, how? Cheers and thanks, Stephen -- = St