[iText-questions] Break current page and start from new page

2008-07-17 Thread Sumeet T
Hi Is it possible to break the current page in PDF after writing some infotrmation on that page and start from the new page. My requirement is to write summary on one page and details on the next page . -- View this message in context: http://www.nabble.com/Break-current-page-and-start-from-ne

Re: [iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Kianoosh Raika
Ah yes, that setting is there. However, this RtfShape class is a bit tricky to use. Here's some unit test code where I'm getting a NullPointerException (stack below). Am I not setting the Image properly? The RtfShapeProperty constructor takes an Image, not RtfImage, and I believe I'm creating the

Re: [iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Howard Shank
Have a look at the RtfShape class. Howard - Original Message From: Kianoosh Raika <[EMAIL PROTECTED]> To: iText-questions Sent: Thursday, July 17, 2008 5:49:34 PM Subject: Re: [iText-questions] RTF Image : setting alignment and layout Continuing this conversation out loud with myself

Re: [iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Howard Shank
Take a look at the RtfImage class. Image is a higher level class that gets, for lack of a better term, wrapped by a RtfImage. RtfImage should have the settings you are looking for. Howard - Original Message From: Kianoosh Raika <[EMAIL PROTECTED]> To: iText-questions Sent: Thursday,

Re: [iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Kianoosh Raika
Continuing this conversation out loud with myself :) The control word \shpwr2 seems to correspond to the square wrapping for an image (or any shape for that matter). \shpwr2 is for "square" \shpwr3 is for "behind text" \shpwr4 is for "tight" Problem is I'm not sure where I need to set this.

Re: [iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Kianoosh Raika
I apologize for the incorrect terminology being used. I believe what I am looking for is correctly described as the "wrapping" style for an image. Looks like the default wrapping style is "In line with text". I'd like to set it to "Square" if at all possible. The Image alignment constants don't

[iText-questions] RTF Image : setting alignment and layout

2008-07-17 Thread Kianoosh Raika
I'm trying to set an image in this RTF doc to display in a fixed position in a "square" layout. How do I set an image's layout to do this? The Image class doesn't seem to have this alignment/layout value. RtfDocument doc = new RtfDocument(); float scale = 50; Image logo = Image.getInstance("weba

Re: [iText-questions] iText & GeoPDF

2008-07-17 Thread 1T3XT info
Leonard Rosenthol wrote: > TerraGo is no longer going to us their own implementation for GIS- > data in PDF, they will be transitioning to ours. The "City of Foobar" example in "iText in Action" was profetic! ;-) -- This answer is provided by 1T3XT BVBA ---

Re: [iText-questions] Filling in barcode of PDF Form

2008-07-17 Thread 1T3XT info
Leonard Rosenthol wrote: > Barcodes ARE supported in AcroForms, and have been since PDF 1.6. > However, due to a mixup, the details of the implementation for them > never made it into the PDF Reference OR ISO 32000 :(. Aha, I didn't know that. It's as if whatever isn't in the PDF Reference do

[iText-questions] Need help with java.lang.RuntimeException: Unbalanced save/restore state operators.

2008-07-17 Thread Bora, Niladri
Hi All, I am getting an unbalanced state save/restore exception. My application creates a multi-page pdf document. I first insert images in each page and then use the Graphics2D object that I get from the PdfContentByte object to draw text over the inserted images. A more detailed explanat

Re: [iText-questions] RFT importRtfFragment

2008-07-17 Thread Howard Shank
It has to do with the RTF Specification and the way readers function. Some RTF Tags can be ignored if not recognized. There are generally 2 images in a Word doc for each image you see, but not always. I do not have an explanation of how/why/when this occurs though. You may want to try embeddin

Re: [iText-questions] Opening PDF protected by a LiveCycle policy

2008-07-17 Thread Mark Storer
Leonard Rosenthol pdfsages.com> writes: > > Greg - you are correct that iText (nor any other 3rd party PDF > Library) is not? > able to open PDF documents encrypted with LiveCycle Rights > Management server (formerly Policy Server). It is an extra encryption > handler that is private t

Re: [iText-questions] Problems with Fonts

2008-07-17 Thread Laura Cobos
Could I use PdfContentParser instead of reading from the txt file for attempt to solve the problem about the encoding when I use PrintStream? Or it would remain the problem ? Thanks Laura 2008/7/17 1T3XT info <[EMAIL PROTECTED]>: > Laura Cobos wrote: > > I hope my explanation is clearand

Re: [iText-questions] RFT importRtfFragment

2008-07-17 Thread Kianoosh Raika
Thanks Howard, that is very much appreciated. I didn't see this alternate image when I opened the RTF in Word. And actually, after doing some testing, the file you sent does open without exceptions in my test code, but after I open it in Word and save it as another file, that new file doesn't wor

Re: [iText-questions] Filling in barcode of PDF Form

2008-07-17 Thread Leonard Rosenthol
On Jul 17, 2008, at 9:18 AM, 1T3XT info wrote: > msypl wrote: >> Hi all, >> >> I create an XFA PDF Form in Adobe LiveCycle Designer 8 which >> contains a >> barcode (Code 128) , > > Barcodes in forms are XFA specific. > They weren't supported in AcroForms. > As you know, there is some support f

[iText-questions] PdfPTable Cell Width Problem

2008-07-17 Thread v2cg4ss
I have an issue with a pdfptable and cells that have one blank. When the cells have just one blank the ColumnText.getWidth(phrase) is returning 2.0. If have verified that the content is just one blank and the number of chunks is 1. When I use an underscore _ for the cell all is well, when I

[iText-questions] Times Font Problem on Weblogic 9

2008-07-17 Thread Libor Spevak
Hi, we have been using JasperReports solution and iText PDF export on WebLogic 8.1 (JRocket 4, RedHat Linux) for several years. We wanted to upgrade to 9.2 server (JRocket 5, RedHat Linux). But we noticed very bad behavour. Text fields printed using Windows True Type Times New Roman font someti

Re: [iText-questions] RFT importRtfFragment

2008-07-17 Thread Howard Shank
The image in your RTF file is a PNG the Alternate image is a WMF8. The alternate image is causing the problem. I will look at the code and see what I can do, but I'm swamped this week. I will send you a private message with an updated file that functions. Regards Howard Shank - Original

Re: [iText-questions] iText & GeoPDF

2008-07-17 Thread Leonard Rosenthol
On Jul 17, 2008, at 5:04 PM, 1T3XT info wrote: > Ronan Crowley wrote: >> What I'm wondering is will there be support coming in iText for >> either >> (or both) of these new capabilities ? > > Does anybody know where to find the 'Reference' for these extensions? > If it's not much work, I could p

Re: [iText-questions] signing/embedding PKCS7 using a key with EC

2008-07-17 Thread Leonard Rosenthol
Just to follow up on that a bit more - EC certs aren't supported by PDF. Can you give me some idea why you're using EC-based certs over standard RSA ones? This is the first "request" that I have heard to support EC in PDF... Leonard On Jul 17, 2008, at 4:38 PM, Paulo Soares wrote: > You'l

Re: [iText-questions] Opening PDF protected by a LiveCycle policy

2008-07-17 Thread Leonard Rosenthol
Greg - you are correct that iText (nor any other 3rd party PDF Library) is able to open PDF documents encrypted with LiveCycle Rights Management server (formerly Policy Server). It is an extra encryption handler that is private to Adobe - just as others like FileOpen, LockLizard, etc. have

Re: [iText-questions] RTFWriter2.importRtfDocument(FileOutputStream) puts images out of tables

2008-07-17 Thread Howard Shank
It is not possible at this point to import a document into an existing/new element, i.e. Chapter, Section, Table, Cell, etc. So, if you create a table and then try to import a file into that table, it will not work. The imported document ends up outside the table you are trying to place it in.

[iText-questions] RTFWriter2.importRtfDocument(FileOutputStream) puts images out of tables

2008-07-17 Thread Marco Giani
Hello, I have a RTF Document with tables containing images. When I import this RTF document into another RTF document using RTFWriter2.importRtfDocument the resulting document has all the images just before the tables and out of them. I tried to put the images into paragraphs but the result

Re: [iText-questions] new to iText need urgent response (Consider thismail forgot to attach document)

2008-07-17 Thread Iliadis Yannis
An example as pseudocode: Start open connection execute query create PdfPtable while data in resultset create PdfPCell add field of record to cell ... //repeat the cell creation for every field you want to add into table add cell(s) to table do a

Re: [iText-questions] iText & GeoPDF

2008-07-17 Thread Ronan Crowley
I've been looking for some sort of Reference for these extensions, but without any luck. The native Adobe support has just been announced, not yet seen, but the Terragotech implementation is available now. The tutorials on the Terragotech website so not provide any insight into the underlying str

Re: [iText-questions] new to iText need urgent response (Consider thismail forgot to attach document)

2008-07-17 Thread sumanth divvela
Hi, Thank you for your response. I have gone through the examples given in "iText in Action" but here my requirement is to read data from database and need display in the tables. One more question is it possible to pass Array object to the table? because I don't know how many records I have in my

Re: [iText-questions] new to iText need urgent response

2008-07-17 Thread sumanth divvela
Hi, Thank you for your concern. *Here my requirement is to generate PDF file by reading data from database only.* Now we are not in situation to but any license. So it's better me to choose 2nd option. But here the problem is I am new to iText usage and I know few basic things like how to create

Re: [iText-questions] new to iText need urgent response

2008-07-17 Thread 1T3XT info
Sr. Miguel wrote: > Hello, > > I don´t see any problem in using iText to achieve your goals, and I > believe you have two main options: > > 1 - use Acrobat or Adobe Designer to design the template (without > coding), but you will have to buy an Acrobat licence; > 2 - code with iText to create

Re: [iText-questions] new to iText need urgent response (Consider thismail forgot to attach document)

2008-07-17 Thread Paulo Soares
That's quite simple to do with tables. You have lots of examples in the book "iText in Action". Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Sumanth Divvela > Sent: Thursday, July 17, 2008 1:18 PM > To: itext-questions@lists.sourceforg

Re: [iText-questions] signing/embedding PKCS7 using a key with EC

2008-07-17 Thread Paulo Soares
You'll have to use an external signature. The internal signing mode only supports RSA and DSA. I want to move all the signing logic to bouncycastle and avoid this and other problems but there's always something more urgent to attend to. Paulo > -Original Message- > From: [EMAIL PROTECTED

Re: [iText-questions] Problems with Adobe Type 1 font for Windows

2008-07-17 Thread Paulo Soares
You also need the .afm or .pfm file. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andrej Virant > Sent: Thursday, July 17, 2008 11:06 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Problems with Adobe Type

Re: [iText-questions] new to iText need urgent response

2008-07-17 Thread Sr. Miguel
Hello, I don´t see any problem in using iText to achieve your goals, and I believe you have two main options: 1 - use Acrobat or Adobe Designer to design the template (without coding), but you will have to buy an Acrobat licence; 2 - code with iText to create the template; In both option,

Re: [iText-questions] iText & GeoPDF

2008-07-17 Thread 1T3XT info
Ronan Crowley wrote: > What I'm wondering is will there be support coming in iText for either > (or both) of these new capabilities ? Does anybody know where to find the 'Reference' for these extensions? If it's not much work, I could provide some of the Goodies, the way I wrote the Portable Coll

Re: [iText-questions] Problems with Adobe Type 1 font for Windows

2008-07-17 Thread 1T3XT info
Andrej Virant wrote: > Hello, > > I have to use Adobe Type 1 font (.pfb). I use Java 6. When I use this > font in application, it has no problems using font, but when I try this > when making PDF, it uses default font in instead of one I choose. Can > you tell me how to use Adobe Type 1 font wi

Re: [iText-questions] Problems with Fonts

2008-07-17 Thread 1T3XT info
Laura Cobos wrote: > I hope my explanation is clearand sorry if I did foolish remarks... > If anyone can tell me what he/she thinks about my problem I would be > very grateful Your explanation is clear to me, but you've read chapter 18, so you know that you're doing something that

[iText-questions] iText & GeoPDF

2008-07-17 Thread Ronan Crowley
Hi All, There's been a lot of talk in the Spatial & GIS communities about GeoPDF. (http://www.terragotech.com/solutions/geopdftoolbar.php) Adobe have also announced native support for Viewing and interaction with maps in version 9 (http://www.adobe.com/products/acrobatproextended/ - Section 1.5)

Re: [iText-questions] new to iText need urgent response (Consider this mail forgot to attach document)

2008-07-17 Thread Howard Shank
An excerpt from the iText FAQs... "The use of the word URGENT in a question is not done. You are (hopefully) paid to do your job, so it's your responsibility. We are not paid to do your job, we are NOT responsible." Regards, Howard Shank - Original Message From: Sumanth Divvela <[EMAIL

Re: [iText-questions] RFT importRtfFragment

2008-07-17 Thread Howard Shank
There was an issue in prior versions with importing RTF file with images. This has been fixed in the current release. iText 2.1.3 contains the fix. RTF Supports the following: EMF, PNG, JPEG, Word 97-Word 2002 Picture, QuickDraw, OS/2 metafile, Windows Metafile, DIB, Windows device-dependent bit

[iText-questions] new to iText need urgent response

2008-07-17 Thread Sumanth Divvela
Dear, I am new to iText for preparing PDF files. I have some requirement to generate PDF format for one report. I am trying to implement the report but I need some clarification from you guys, i.e. please find the attached document file that contains my requirement report screen shot and could

[iText-questions] signing/embedding PKCS7 using a key with EC

2008-07-17 Thread Maximilian Schmidt
Dear all, I'm trying to sign a bunch of PDF documents using a PKCS12 keystore. Using the great HowToSign tutorial I already managed to do this in no time. However, once I try to do the same with a PKSC12 containing keys that use elliptic curves (EC), I get the following error: ExceptionConverte

[iText-questions] Problems with Adobe Type 1 font for Windows

2008-07-17 Thread Andrej Virant
Hello, I have to use Adobe Type 1 font (.pfb). I use Java 6. When I use this font in application, it has no problems using font, but when I try this when making PDF, it uses default font in instead of one I choose. Can you tell me how to use Adobe Type 1 font with iText PDF creator? Ma code t

[iText-questions] Problems with Fonts

2008-07-17 Thread Laura Cobos
> > Hi, > > I want to read line by line the content stream from a pdf input that has > been done using Latex, but in my tests I make it with iText (actually I > won't make the pdf inputs, so I only can obtain information about how it is > done from the content stream) and remake this pdf in an outp

Re: [iText-questions] iText 2

2008-07-17 Thread 1T3XT info
achtal wrote: > Dear ladies and gentlemen, > > my college Joachim Sautter communicated with you, but perhaps he didn't > describe the problem exactly. After having read your description, I discovered that this question is not about FDF! Thank you for using Occam's razor so that we can finally pro

Re: [iText-questions] iText 2

2008-07-17 Thread achtal
Dear ladies and gentlemen, my college Joachim Sautter communicated with you, but perhaps he didn't describe the problem exactly. So I try my best to give you a clear picture of our problem. We have a forms server which holds forms. This forms can be downloaded, filled and resent by clients. If a

Re: [iText-questions] Insert transparent Text

2008-07-17 Thread jamesblast
1T3XT info wrote: > > jamesblast wrote: >> Hello, >> >> I use the code (c#) at the bottom of this post to insert some kind of >> text-stamp/watermark onto a PDF-File. >> >> The question is: is it possible, and if yes how to make this text >> tranparent? Meaning the content of the document sho