Re: [iText-questions] selectpages for non existing page

2013-11-20 Thread beppecosta
/> That looks like a case of garbage in, garbage out./ I agree but we receive some pdf from our dealer that SHOULD have 26 pages (the last page contains the signature) and we must extract the first, fifth and 28th. page. But possibly there was an error and it was built without some pages. The sel

[iText-questions] selectpages for non existing page

2013-11-20 Thread beppecosta
If I call reader.selectpages ('1, 5, 26') for a pdf that has only 20 pages, I get page 1, 5 and 20. Is this correct ? Thanks. Giuseppe. -- View this message in context: http://itext-general.2136553.n4.nabble.com/selectpages-for-non-existing-page-tp4659480.html Sent from the iText - General m

Re: [iText-questions] SignWithCAcert error

2013-07-25 Thread beppecosta
Now it compiles but when I try to sign a pdf I get this error: Exception in thread "main" java.lang.NullPointerException at com.itextpdf.text.pdf.security.PrivateKeySignature.(PrivateKeySignature.java:76) at SignWithCAcert

[iText-questions] SignWithCAcert error

2013-07-23 Thread beppecosta
Hello, I' trying to encrypt a Pdf using the example from the latest white paper of Bruno Lowagie, at page 66, with "bcprov-ext-jdk15on-149.jar", "bcmail-jdk15on-149.jar" and "itextpdf-5.4.1.jar" When compiling, I get this error: /pdf/SignPdf.java:41: cannot find symbol symbol : class S

Re: [iText-questions] PDF/A Validation

2011-04-27 Thread beppecosta
Pdfpilot says: http://itext-general.2136553.n4.nabble.com/file/n3478412/invalidpdfa.jpg -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-A-Validation-tp3465491p3478412.html Sent from the iText - General mailing list archive at Nabble.com. -

Re: [iText-questions] PDF/A Validation

2011-04-25 Thread beppecosta
http://itext-general.2136553.n4.nabble.com/file/n3474837/PDFA-INVALID.pdf PDFA-INVALID.pdf -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-A-Validation-tp3465491p3474837.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread beppecosta
Yes. Where can I send it ? --- Gio 21/4/11, Mark Storer-2 [via iText - General] ha scritto: Da: Mark Storer-2 [via iText - General] Oggetto: Re: PDF/A Validation A: "beppecosta" Data: Giovedì 21 Aprile 2011, 20:00 How odd.  Can we see the PDF? --Mark Storer   Senio

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread beppecosta
I tried to set the document properties before the createXmpMetadata() but the validator says that there is an invalid use of XMP metadata. Without anu property set, however, the document passes ok. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-A-Validation-tp34

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread beppecosta
I don't write any property and now it seems that the validation is ok. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-A-Validation-tp3465491p3466276.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread beppecosta
Document document = createDocument(pageSize, BACKGROUND, PAGEWIDTH, PAGEHEIGHT, LEFTMARGIN, TOPMARGIN, ORIENTATION); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(TOPDF)); if (PDFA.equals("Y")) { writer.setPdfVersion(PdfWriter.PDF

[iText-questions] PDF/A Validation

2011-04-21 Thread beppecosta
I successflully created a PDF/A with iText.5 Acroreader opens it and says that it's a PDF/A. However when I try to validate it (with Acrobat or Callas) I get some errors like: - Object in document does not correspond with XMP Metadata - Keywords does not correspond .. - Title does not correspon

Re: [iText-questions] TSA in iText 2.1.6

2009-07-03 Thread beppecosta
Digistamp provides full source code to be used with latest iText + Bouncycastle and and their TSA account. They also have a free test server. I've tried it and it works fine. Giuseppe. Bert_Vingerhoets wrote: > > For those who like to use timestamping (without OCSP, I haven't figured > that o

Re: [iText-questions] Put-Replace text at x,y

2009-06-15 Thread beppecosta
ent on how long it took him). > > Good luck! > > Leonard > > -Original Message- > From: beppecosta [mailto:beppeco...@yahoo.it] > Sent: Monday, June 15, 2009 8:52 AM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Put-Replace text at x,

Re: [iText-questions] Put-Replace text at x,y

2009-06-15 Thread beppecosta
database. It works well, but it's not > something terribly easy to do. I had to use iText and Apache's > PDFBox to pull it off. > You'll need to download the PDF spec and become familiar with how a > PDF is constructed. Probably a few weeks worth, but it's doable

Re: [iText-questions] Put-Replace text at x,y

2009-06-15 Thread beppecosta
I understand, but in this company I'm only a poor consultant and can't ask our users to use a tool other than MSoft. However I will try the designing tool you suggest ... just in case. Thanks. Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> Hi Bruno, &g

Re: [iText-questions] Put-Replace text at x,y

2009-06-15 Thread beppecosta
ded at run time. That's there where my job would start from. Note that this layout would change very often, while data to insert are always quite te same. Could annotations fit into this design-update process ? Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> Hell

[iText-questions] Put-Replace text at x,y

2009-06-15 Thread beppecosta
Hello, is there a way to scan a pdf for given string markers (like "#1", #2", or similar patterns) and get their x,y coordinates ? Step 2 would be to put some text or images or some other content right over these markers. Or - are there some other suggestions - to automate this process ? Than

Re: [iText-questions] Select font at runtime

2009-05-20 Thread beppecosta
Hi, you understood my question. That's the code I tried this morning, but I coded a wrong Basefont instead of a BaseFont[]. It works fine. Sorry ! Giuseppe. 1T3XT info wrote: > > beppecosta wrote: >> Hi, >> >> is it possible to have an

[iText-questions] Select font at runtime

2009-05-20 Thread beppecosta
Hi, is it possible to have an array of Basefont to use with setFontAndSize and select the font to use at run-time, like in example 131 ? Thanks. Giuseppe. -- View this message in context: http://www.nabble.com/Select-font-at-runtime-tp23632765p23632765.html Sent from the iText - General ma

Re: [iText-questions] Pdf with version 1.3

2009-01-07 Thread beppecosta
ot pdf 1.3, which is a completly > different thing. You must decide what you want. > > Paulo > > ____ > From: beppecosta [beppeco...@yahoo.it] > Sent: Wednesday, January 07, 2009 10:20 AM > To: itext-questions@lists.sourceforge.net >

[iText-questions] Pdf with version 1.3

2009-01-07 Thread beppecosta
I've to create simple documents that have a small company logo and some text, but these documents must be with pdf version 1.3 I've tried with pdfconformance pdf/a but it says that I need to embed the 2 fonts used (base courier and helvetica). This way the final size increases a lot. Is there a

[iText-questions] Split a big pdf

2008-10-13 Thread beppecosta
Hello, I have an accounting application that at the end of month produces a single pdf with all the transactions. This pdf contains more than 100.000 pages (only flate text). What is the fastest way to split it into smaller documents, say 5000 pages each, if possible just in one reading step ? T

Re: [iText-questions] Text Render Mode

2008-10-04 Thread beppecosta
Now it looks perfect with the right setColorFill/setColorStroke and TEXT_RENDER_MODE_FILL_STROKE ! Thanks. Giuseppe. Paulo Soares-3 wrote: > > See page 349 of the book for some examples. > > Paulo > >> -Original Message- >> From: beppecosta [mailt

[iText-questions] Text Render Mode

2008-09-30 Thread beppecosta
Hello, I'm adding a simple word to the first page an existing pdf using: PdfContentByte over; over = stp.getOverContent(1); over.showTextAligned(PdfContentByte.ALIGN_LEFT, "SPECIMEN", 75, pageHeight - 120, 13); How can I get a more special effect using setTextRenderMode with TEXT_RENDER_MODE_S

Re: [iText-questions] Creade a pdf with bookmarks

2008-09-04 Thread beppecosta
ailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Thursday, September 04, 2008 11:03 AM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] Creade a pdf with bookmarks >> >> >> Hi Paulo, >> >> You say "Coll

Re: [iText-questions] Creade a pdf with bookmarks

2008-09-04 Thread beppecosta
then create the bookmarks. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Wednesday, September 03, 2008 3:42 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iTe

[iText-questions] Creade a pdf with bookmarks

2008-09-03 Thread beppecosta
At present I create a pdf from a text file that contains one line with customer code, one line with customer name and a few line of data. A text file has some customers. I've found an example in the tutorial and I create the bookmarks with the "new PdfOutline" in the "onParagraph" when the line

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
: > > beppecosta wrote: >> Hi Bruno, >> >> how can I get this new code ? > > The certificate encryption stuff is already in the current > iText distribution; see the API docs: > http://www.1t3xt.info/api/com/lowagie/text/pdf/interfaces/PdfE

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hi Bruno, how can I get this new code ? Beppe. 1T3XT info wrote: > > [EMAIL PROTECTED] wrote: >> I'm writing to you in detail in hopes that Bruno will see my response, >> saving himself a little time to spend with his son. > > Thanks, my wife and I just changed shifts at the hospital. > For

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
ode later on in > the process needs to decrypt the existing PDF, the code doing the > modifying has to have the owner password available to it. > > Cheers, > Bill Segraves > -- Original message from beppecosta <[EMAIL PROTECTED]>: > -- > >

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
y welcome, Beppe. > > Please keep in mind that if you want to do anything in the way of > modifications to a password protected PDF, you must have the owner > password. > > Best regards, > Bill Segraves > ------ Original message from beppecosta <[EMAIL PROTECTE

Re: [iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
;m writing to you in detail in hopes that Bruno will see my response, > saving himself a little time to spend with his son. > > Best regards, > Bill Segraves > -- Original message from beppecosta <[EMAIL PROTECTED]>: > -- > > >> >&g

[iText-questions] Re write an encrypted Pdf

2008-06-19 Thread beppecosta
Hello, our user creates encrypted pdf and keep them on a shared folder. (This is done with iText). When the user wants to send a document, he would like to send a non-encrypted version. At present he opens it with Acrobat, removes the pass, saves a copy and sends it. Is is possible to automate

[iText-questions] Concatenate pdf with keywords

2008-06-05 Thread beppecosta
When I concatenate 2 pdf that have some keywords, how can I have the final pdf having the keywords concatenated too ? Thanks. -- View this message in context: http://www.nabble.com/Concatenate-pdf-with-keywords-tp17665914p17665914.html Sent from the iText - General mailing list archive at Nabb

[iText-questions] Validate Pdf

2008-05-07 Thread beppecosta
Each day we produce thousands of pdf with iText. Most of them are built from scratch but some other are obtained by concatenate of documents that arrive from outside. We need to validate these documents before using them. At present we use a C function pdfinfo from xpdf but I would like to inc

[iText-questions] Timestamping

2008-04-07 Thread beppecosta
What is the state of the art about timestamping pdf with iText. Is the page at http://itextpdf.sourceforge.net/howtosign.html the last updated source of informations. Thanks. Giuseppe. -- View this message in context: http://www.nabble.com/Timestamping-tp16536786p16536786.html Sent from the iTe

Re: [iText-questions] White text on a black background

2007-12-06 Thread beppecosta
ROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Thursday, December 06, 2007 2:27 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] White text on a black background >> >> >> I'm currently

[iText-questions] White text on a black background

2007-12-06 Thread beppecosta
I'm currently adding some lines of text on top of an existing pdf with "over.showTextAligned". I'm asked to add a special word in the middle of the first line that should appear as white text on a black background. How can I do it ? Thanks. Giuseppe. -- View this message in context: http://w

Re: [iText-questions] Tiff orientation

2007-03-09 Thread beppecosta
- > From: "beppecosta" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, February 20, 2007 10:32 AM > Subject: Re: [iText-questions] Tiff orientation > > >> >> Paulo, >> >> thanks; when importing TIFF image the "getInitialRotation()"

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Friday, March 09, 2007 2:33 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] Tiff2Pdf >> >&

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Friday, March 09, 2007 2:08 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] Tiff2Pdf >> >> >> Paulo, >

Re: [iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
Paulo, what shall I include to get the TIFFConstants.TIFFTAG_* ? Thanks. Paulo Soares wrote: > > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Friday, March 0

[iText-questions] Tiff2Pdf

2007-03-09 Thread beppecosta
I've already posted on this subject but nobody answered because probably my question was not clear enough. I'm using tiff2pdf to create pdf from scanned tiff images. Imagescaling, rotation and positioning work fine and the final pdf is perfect. However I would like to timestamp it at creation tim

[iText-questions] Tiff2Pdf

2007-03-05 Thread beppecosta
During tiff to pdf conversion is it possible to get tiff tags, like for example the DateTime Tag (Code 306 (hex 0x0132)), Software Tag, etc ? Thanks. -- View this message in context: http://www.nabble.com/Tiff2Pdf-tf3347760.html#a9308406 Sent from the iText - General mailing list archive at Na

Re: [iText-questions] Tiff orientation

2007-03-01 Thread beppecosta
During tiff to pdf conversion is it possible to get tiff tags other tnat initialOreintation, like for example the DateTime Tag (Code 306 (hex 0x0132) ? Thanks. Paulo Soares wrote: > > > - Original Message - > From: "beppecosta" <[EMAIL PROTECTED]> >

Re: [iText-questions] Tiff orientation

2007-02-20 Thread beppecosta
lling the compressor and apply when adding the image in iText; then are the "setPageSize(PageSize.A4.rotate())" and "img.setRotationDegrees(270)" the correct methods to rotate and show the image in landscape ? Thanks. Look at Image.getInitialRotation(). Paulo - Original M

Re: [iText-questions] Tiff orientation

2007-02-19 Thread beppecosta
our questions about iText here" > > Sent: Monday, February 19, 2007 12:03 PM > Subject: Re: [iText-questions] Tiff orientation > > >> I'll have to see the tiff. >> >> Paulo >> >> - Original Message - >> From: "beppecos

Re: [iText-questions] Tiff orientation

2007-02-19 Thread beppecosta
> - Original Message - > From: "beppecosta" <[EMAIL PROTECTED]> > To: > Sent: Friday, February 16, 2007 3:57 PM > Subject: [iText-questions] Tiff orientation > > >> >> I have a multipage tiff that contains in mixed order portrait and >

[iText-questions] Tiff orientation

2007-02-16 Thread beppecosta
I have a multipage tiff that contains in mixed order portrait and landscape pages. Each tiff has the Orientation tag (274) set to 1 for portrait and 6 for landscape. How can I set the rotation in order to see the page rotated in pdf ? I've tried to rotate the page with setPageSize and the imag

Re: [iText-questions] tiff2pdf with jbig2

2007-01-23 Thread beppecosta
Hi Paulo, yesterday the unreadable pdf had this: 2 0 obj < -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppecosta > Sent: Monday, January 22, 2007 4:56 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iTex

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread beppecosta
AIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of beppecosta >> Sent: Monday, January 22, 2007 4:24 PM >> To: itext-questions@lists.sourceforge.net >> Subject: Re: [iText-questions] tiff2pdf with jbig2 >> >> >> Paulo, >> >> Fi

Re: [iText-questions] tiff2pdf with jbig2

2007-01-22 Thread beppecosta
s about iText here >> Subject: Re: [iText-questions] tiff2pdf with jbig2 >> >> Clever script. I'll need the jbig2 files and the resulting PDF to do >> some tests. You can send it to me privately if you don't want >> to post it >> to the world. >> &g

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
;Kids'] = '[' + ' '.join([ref(x.id) for x in page_objs]) + ']' print str(doc) def usage(script, msg): if msg: sys.stderr.write("%s: %s\n"% (script, msg)) sys.stderr.write("Usage: %s [file_basename] > out.pdf\n"% script) sys.e

[iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
At present on our iSeries(as400) we use iText/tiff2pdf to create pdf from scanned tiff documents. We produce thousands of documents per day and this works perfecty. However because these pdf's should be archived on optical disks and kept for one year (and because optical media cost a lot) we are i

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
I've rebuilt from CVS. But I will replace with the new jar. The user said that the gun reads the barcode without problems. Thanks a lot. Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> Hi Bruno, >> >> I had the wrong classpath > >

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
Hi Bruno, I had the wrong classpath IT WORKS and looks like the sample. Now I will ask the customer to test with some more types of guns. Thanks. Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> I've rebuilt the jar with 1.4.8 sources + the Barc

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
I've rebuilt the jar with 1.4.8 sources + the Barcode.java from cvs. Just to make sure that I'm not using the wrong jar I called it 1.4.8.1; I've tried with some ink spread but the barcode still looks the same. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >>

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
I will try to rebuild jar from CVS Thanks !! Bruno Lowagie (iText) wrote: > > Paulo Soares wrote: >> In barcode128 the space is significant and you must use the ink spreading >> attribute (when fixed). > > It's fixed. > >> From: "beppecosta&qu

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
y. While code39 reads perfectly with any gun (but they want the code 128). I will wait for the fix. Thanks. Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> Hi Bruno, >> >> I've tried some random values for setInkSpreading from 0.1f to 10

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
Hi Bruno, I've tried some random values for setInkSpreading from 0.1f to 1f but the barcode still looks the same. Should there be any consistency with other settings ? Giuseppe. Bruno Lowagie (iText) wrote: > > beppecosta wrote: >> This is a sample of a barcode tha

Re: [iText-questions] Barcode 128 distance between bars

2006-12-20 Thread beppecosta
wagie (iText) wrote: > > beppecosta wrote: >> How can I set the blank space between bars ? >> I have tried code128.setN(nf) with n = any value but the barcode always >> looks the same. > > n has different meanings for different types of barcodes. > setN sets the blan

[iText-questions] Barcode 128 distance between bars

2006-12-19 Thread beppecosta
How can I set the blank space between bars ? I have tried code128.setN(nf) with n = any value but the barcode always looks the same. Thanks. Giuseppe. -- View this message in context: http://www.nabble.com/Barcode-128--distance-between-bars-tf2858442.html#a7986070 Sent from the iText - General