[iText-questions] Re: Simple example of onStartPage
Benoit, Mark H. writes: I need to place our company logo in the top left had corner as well as Repeat the name of the report on the top of each page. A footer of the page number is also needed but was simple using your examples. What I have done, is using the onStartPage, I add the image to the doc, as well as adding a paragraph which contained the report title. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] onStartPage should not be used to produce output (i.e. to write things to the document), only to set variables. I don't know how you did the footer (using the HeaderFooter object?) but in case of the header I think you've got something wrong. Don't add images and text in inStartPage. Add it in onEndPage, not with document.add(someImage) or document.add(somePhrase), but with an image and text that are added with absolute positions (using the PdfContentByte object). If necessary, you can make the top margin a little bit bigger to make some space for your company logo. (Also please post this kind of questions to the mailing list so that the QA's get archived for future use) ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Absolute Positioning Text and Measurements Problems
I need to position texts and lines in determined positions (measured in cms.). I have had a look on the page http://www.lowagie.com/iText/tutorial/ch01.html http://www.lowagie.com/iText/tutorial/ch01.html Margins Section, in particular about how to convert from cms into points and, for instance, i want to draw to horizontal lines one 2 cms. further than the other: 2cm / 2.54 = 0.7874 inch 0.7874 * 72 = 57 points (56.6928) cb.moveTo(300, 700); cb.lineTo(400, 700); cb.moveTo(300, 700 + 56.69f); cb.lineTo(400, 700 56.69f); I generate the PDF, print it and take a rule to measure the distance between the two lines ... it measures less than 1.8 cm What did i do wrong? And it's the same if i use an empty constructor for Document or with parameters If this has already been answered, please tell me more or less the data Thanks a lot Regards Sergio P.S (Off Topic): In the page http://www.lowagie.com/iText/tutorial/ch01.html http://www.lowagie.com/iText/tutorial/ch01.html the link titled page http://www.lowagie.com/iText/tutorial/firstpage initialisations ( http://www.lowagie.com/iText/tutorial/firstpage http://www.lowagie.com/iText/tutorial/firstpage ) doesn't work --- Este mensaje y los documentos, que en su caso, lleve anexos, pueden contener informacion confidencial y atañe exclusivamente a las personas a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de su autor y no representa necesariamente la opinion de AZERTIA. Si usted no es el destinatario de este mensaje, considerese advertido de que lo ha recibido por error y que cualquier uso, difusion o copia estan prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda a destruirlo inmediatamente. This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of AZERTIA. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify it to AZERTIA by telephone on number +34 93 207 55 11. --- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] TrueType Fonts
Hi Is it possible to create TrueType font without using direct link to .ttf file - and use SystemFontName ??? thanks sv
[iText-questions] Using fonts
I need to use the Arial font and position, once more, text ... in Chapter 10 the examples seems to indicate i have to use BaseFont, but if i want to use another kind of font (Chapter 9) i should use the full path of the font. Is there another way without specifying the path. Should i use then Chunks and Font classes? Thanks P:S: Or just indicate if this topic has already been treated ;-) --- Este mensaje y los documentos, que en su caso, lleve anexos, pueden contener informacion confidencial y atañe exclusivamente a las personas a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de su autor y no representa necesariamente la opinion de AZERTIA. Si usted no es el destinatario de este mensaje, considerese advertido de que lo ha recibido por error y que cualquier uso, difusion o copia estan prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda a destruirlo inmediatamente. This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of AZERTIA. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify it to AZERTIA by telephone on number +34 93 207 55 11. --- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Again Cell - PdfPCell - verticalAlignment probelm
Hi. I've read in archive that a lot of people have a problem with verticalAlignment - but Idid not find any good explanation or"how to" So - what I have to do if I wona get a Cell - with alignment type = Middle ? thanks. sv
[iText-questions] Tables in Header
Hi, I have been using the iText API for a while now and have been quite impressed with it. The only thing I need to be able to do is to include a table in the header or footer of a PDF document. It is mentioned in the headers and footers section of the tutorial, but the link (to chapter 12 I think) doesn't provide any additional information on how to actually do it. Is this possible and if so, how? Regards, Craig Pardey -- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. -- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Re: Tables in Header
Pardey, Craig writes: The only thing I need to be able to do is to include a table in the header or footer of a PDF document. Create a PdfPTable and add it at an absolute position in the onEndPage-method. ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] alternate row background without cover the watermak image
I use a PdfPTable and also a watermark I want to alternate the rows background (more readable) without cover the watermark image. Is possible ? I appreciate any suggestion. Thanks in advance. ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] alternate row background without cover the watermak image
Explain better. Best Regards, Paulo Soares -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 15:00 To: [EMAIL PROTECTED] Subject: [iText-questions] alternate row background without cover the watermak image I use a PdfPTable and also a watermark I want to alternate the rows background (more readable) without cover the watermark image. Is possible ? I appreciate any suggestion. Thanks in advance. ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Using different fonts and ... positioning text
I want to use CODE39 and Helvetica + positioning but i have problems to do it. 1. Can i do sth like...? cb.beginText(); BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); BaseFont bf_BARCODE = BaseFont.createFont(c:\\winnt\\fonts\\CODE39.TTF, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); cb.setFontAndSize(bf, 16); cb.showTextAligned(cb.ALIGN_LEFT, FASA MONTAJE 3, 100, 700, 0); cb.setFontAndSize(bf_BARCODE, 34); cb.showTextAligned(cb.ALIGN_LEFT, 337636, posX1 + convertX(5), convertY(posY + 12), 0); cb.endText(); 2. Or, do i have to use PdfBarcode? In such a case, how can i use it? Thanks Sergio --- Este mensaje y los documentos, que en su caso, lleve anexos, pueden contener informacion confidencial y atañe exclusivamente a las personas a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de su autor y no representa necesariamente la opinion de AZERTIA. Si usted no es el destinatario de este mensaje, considerese advertido de que lo ha recibido por error y que cualquier uso, difusion o copia estan prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda a destruirlo inmediatamente. This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of AZERTIA. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify it to AZERTIA by telephone on number +34 93 207 55 11. --- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Search iText website
Hi Bruno, I follow the list and read most of the emails. It seems that a lot of people would find their answers if they could search your website. You may want to implement one of the free search engines which spider you site. I implemented one in my brothers website (www.pogo-snowboards.de). It is www.freefind.com. You may want to look at that and see if it helps the users to find what they are looking for. It's not the perfect search tool but it is free. Again: GREAT LIBRARY!!! HTH Gunter -- Gunter Sammet SAMMYSOLUTIONS.COM LTD -- 2102-12 AVE NW Calgary/AB, T2N 4X1, CANADA Ph./Fax: +1 (403) 210-2603, Cell:+1 (403) 830-0705 E-mail: [EMAIL PROTECTED] Web: www.SammySolutions.com BEGIN:VCARD VERSION:2.1 N:Sammet;Gunter FN:Gunter Sammet (E-mail) ORG:SammySolutions.com ltd TEL;WORK;VOICE:(403) 210-2603 TEL;CELL;VOICE:(403) 830-0705 TEL;WORK;FAX:(403) 210-2603 ADR;WORK:;;2102-12 AVE NW;Calgary;Alberta;T2N 4X1;Canada LABEL;WORK;ENCODING=QUOTED-PRINTABLE:2102-12 AVE NW=0D=0ACalgary, Alberta T2N 4X1=0D=0ACanada EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020212T095803Z END:VCARD
RE: [iText-questions] Using different fonts and ... positioning text
There are several ways of doing this. Your way works if you embedd the font and use the start/stop character '*'. My last version, that is not yet official, supports barcodes without external fonts. Besides that, it has the advantage that it gives you the final dimensions of the barcode, before it's placed. The use for direct positioning is direct. Best Regards, Paulo Soares -Original Message- From: Sergio Lopez Rodriguez [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 15:22 To: [EMAIL PROTECTED] Subject: [iText-questions] Using different fonts and ... positioning text I want to use CODE39 and Helvetica + positioning but i have problems to do it. 1. Can i do sth like...? cb.beginText(); BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); BaseFont bf_BARCODE = BaseFont.createFont(c:\\winnt\\fonts\\CODE39.TTF, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); cb.setFontAndSize(bf, 16); cb.showTextAligned(cb.ALIGN_LEFT, FASA MONTAJE 3, 100, 700, 0); cb.setFontAndSize(bf_BARCODE, 34); cb.showTextAligned(cb.ALIGN_LEFT, 337636, posX1 + convertX(5), convertY(posY + 12), 0); cb.endText(); 2. Or, do i have to use PdfBarcode? In such a case, how can i use it? Thanks Sergio --- Este mensaje y los documentos, que en su caso, lleve anexos, pueden contener informacion confidencial y atañe exclusivamente a las personas a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de su autor y no representa necesariamente la opinion de AZERTIA. Si usted no es el destinatario de este mensaje, considerese advertido de que lo ha recibido por error y que cualquier uso, difusion o copia estan prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda a destruirlo inmediatamente. This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of AZERTIA. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify it to AZERTIA by telephone on number +34 93 207 55 11. --- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Re: Using different fonts and ... positioning t ext
Paulo Soares writes: My last version, that is not yet official Unless I forgot something, I think it's official now. I didn't find the time to do 2 things I normally do: 1. I generated the JAVADOC with J2SDK1.4.0 and I saw there were a lot of warnings. Normally I remove the cause of such warnings. 2. I didn't update the tutorial... ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Get PdfContentByte from Document
Hi, Is it possible to get the PdfContentByte for a particular Document? I am trying to write some modularised code that will take a Document as a parameter and add content to it, but it also needs to be able to add outline entries. For this purpose it has to be able to get the PdfContentByte somehow. Craig -- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. -- ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Searchable Text
What are the requirements for text to be searchable in PDF? What I'm doing is this. I'm trying to create an alternate method to generate mainframe xerox forms. I've created a parser for the xerox form language that will create PDFTemplates. When I go to match the report data to the template I have to be very explicit (the forms are many, and very complex), So I determine the spacing to use and put the report line to the template 1 character at a time. ---CODE SAMPLE--- formTemplate.beginText(); formTemplate.setFontAndSize(baseFont, pointSize); //Write out the report line a character at a time for (int i=1; i lineSize; i++) { if (String.valueOf(lineChar[i]).trim().length() 0 !Character.isISOControl(lineChar[i])) { formTemplate.setTextMatrix(new Float(xVar).floatValue(), height - (new Float(yVar).floatValue())); formTemplate.showText(String.valueOf(lineChar[i])); } xVar = xVar + charSpacing; } formTemplate.endText(); ---CODE SAMPLE END--- My problem is the report data is not searchable. I've tried putting the data out in words (buffer until space), and using setCharacterSpacing() to keep things looking good. But if I use setCharacterSpacing(1) the report data is not searchable either. Thanks for the help, Matt ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions