Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread info
jgmaux wrote: > PdfAnnotation anote = PdfAnnotation.createScreen(pdfwriter, new > Rectangle(100,100,100,100), "prueba", > fs,"application/x-shockwave-flash",true); Another reason why the annotation probably doesn't show, is the fact that you present it in a rectangle with dimension zero by zer

Re: [iText-questions] pdf Image to real Image?

2008-04-03 Thread Gawędzki , Paweł
Thanks Mark still i have problem. Text shows only on first page. I need that text on every page. Now my code looks like this and its still doesn't work: public void wstawDanePdf(String existing_pdf) { try { PdfReader reader = new PdfReader(existing_pdf_file); int

Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread Leonard Rosenthol
Most certainly! Since that is what will print... Leonard On Apr 3, 2008, at 5:07 PM, jgmaux wrote: Thanks Leonard I didn't it. Is it necessary? Thanks in advance. Leonard Rosenthol escribió: Did you supply a default appearance for your SWF? Leonard On Apr 3, 2008, at 4:42 PM, jgmaux

Re: [iText-questions] Problem with anchor and chapter

2008-04-03 Thread Javier Del Amo
I don´t intend to fail to respect either the seriousness of anybody. Wonder if these questions is because I certainly locked. I am a serious person that the only thing he wants is to make my job, I am not writing in order to hurt or wasting time anyone. And I have to speak in english, and it is ver

Re: [iText-questions] limit to size of rtf

2008-04-03 Thread Mark Hall
Hi, I'm not aware of any size limitations in RTF. I believe that using the disk caching mode, people have generated much larger documents. I fear that you are running into some kind of bug. Which version of Word are you using to view the RTF document? Which iText elements are you using in the d

Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread jgmaux
Thanks Leonard I didn't it. Is it necessary? Thanks in advance. Leonard Rosenthol escribió: Did you supply a default appearance for your SWF? Leonard On Apr 3, 2008, at 4:42 PM, jgmaux wrote: Hi Leonard This is my information: * Acrobat Reader Version: 8.1.0.2007051100 * S.O.: Microsoft W

Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread Leonard Rosenthol
Did you supply a default appearance for your SWF? Leonard On Apr 3, 2008, at 4:42 PM, jgmaux wrote: Hi Leonard This is my information: * Acrobat Reader Version: 8.1.0.2007051100 * S.O.: Microsoft Windows XP Professional Service Pack 2 * Acrobat Reader Plug-ins: Accessibility.api, AcroForm.api

Re: [iText-questions] limit to size of rtf

2008-04-03 Thread Howard Shank
There is not a limitation that I know of in the RTF specification, but you never know what the viewer may limit. Howard Shank - Original Message From: Jeffrey Barrus <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Thursday, April 3, 2008 1:41:05 PM Subject: [iText-qu

[iText-questions] limit to size of rtf

2008-04-03 Thread Jeffrey Barrus
I am using rtfwriter2 to create fairly large rtf files. The largest one, 41mb when opened with word, gives an error "This document may be corrupt..." It does not appear to have any problems in the document. All of the smaller ones do not give this error. I am wondering, is there a limit to

Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread jgmaux
Hi Leonard This is my information: * Acrobat Reader Version: 8.1.0.2007051100 * S.O.: Microsoft Windows XP Professional Service Pack 2 * Acrobat Reader Plug-ins: Accessibility.api, AcroForm.api, Annots.api, Checkers.api, DVA.api, DigSig.api, EScript.api, EWH32.api, HLS.api IA32.api ImageViewer

Re: [iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread Leonard Rosenthol
What version of Acrobat and/or Reader are you using on what OS platform in order to print? Leonard On Apr 3, 2008, at 1:47 PM, jgmaux wrote: > Hi, > > I'have a problem. I'have a annotation with a SWF file. It's display > but > not printing. > This is my code. > > ... > PdfFileSpecification f

[iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread MrFishKill
Hi, I'have a problem. I'have a annotation with a SWF file. It's display but not printing. This is my code. ... PdfFileSpecification fs = PdfFileSpecification.url(pdfwriter, filePath); PdfAnnotation anote = PdfAnnotation.createScreen(pdfwriter, new Rectangle(100,100,100,100), "prueba", fs,"appli

Re: [iText-questions] How to embed a SWF inside a PDF with ITEXT???

2008-04-03 Thread MrFishKill
Solved: .. PdfFileSpecification fs = PdfFileSpecification.url(pdfwriter, filePath); PdfAnnotation anote = PdfAnnotation.createScreen(pdfwriter, new Rectangle(100,100,100,100), "prueba", fs,"application/x-shockwave-flash",true); pdfwriter.addAnnotation(anote); . MrFishKill w

[iText-questions] PdfAnnotation (with SWF) not Printing

2008-04-03 Thread jgmaux
Hi, I'have a problem. I'have a annotation with a SWF file. It's display but not printing. This is my code. ... PdfFileSpecification fs = PdfFileSpecification.url(pdfwriter, filePath); PdfAnnotation anote = PdfAnnotation.createScreen(pdfwriter, new Rectangle(100,100,100,100), "prueba", fs,"app

Re: [iText-questions] pdf Image to real Image?

2008-04-03 Thread Mark Storer
Your while loop (as written in the email here) is an infinite loop. You need to increment 'i'. And I suggest you use a 'for' loop when you know ahead of time how many passes you're going to make... it reduces the chance of you making this kind of error. You might end up with something like: for

Re: [iText-questions] Problem with anchor and chapter

2008-04-03 Thread Bruno Lowagie
Javier Del Amo wrote: > I have this: > >Paragraph val = new Paragraph ("VALORACIÓN", seccíon); >Anchor enlaceval = new Anchor("VALORACIÓN", seccion); >enlaceval.setReference("#VALORACIÓN"); >val.add(enlaceval); You deliberately repeat the word. What you do is like: a = 1; b = 1;

Re: [iText-questions] Problem with anchor and chapter

2008-04-03 Thread Bruno Lowagie
Javier Del Amo wrote: > Good afternoon. > > I have a problem: how does a chapter be able to an internal link? I have > a chapter and this I want to be a internal link. > I have problems both in the origin of the link and the destination. In > the origin I have a duplicate word, the chapter and t

Re: [iText-questions] Problem with anchor and chapter

2008-04-03 Thread Javier Del Amo
Ok Bruno. Sorry for my English. :D I will try to explain the problem: I have this: Paragraph val = new Paragraph ("VALORACIÓN", seccíon); Anchor enlaceval = new Anchor("VALORACIÓN", seccion); enlaceval.setReference("#VALORACIÓN"); val.add(enlaceval); Section sectionval =

Re: [iText-questions] getting the PDF from an Applet back to the calling javascript

2008-04-03 Thread 1T3XT info
Peter Rait wrote: > If this is the case please let me know how you solved this problem. I fear there won't be a lot of response. I'm sorry, but IMHO your design has plenty of flaws: are you going to depend on JavaScript/Applet communication? Are you going to use Applets to write PDF to the user's

Re: [iText-questions] underline text

2008-04-03 Thread 1T3XT info
Javier Del Amo wrote: > Good morning. > > Is there any way to underline a chunk, phrase, or paragraph and whose > width is the width of the paper? I see this question was overlooked. > The api said that the underline is the width of the chunk. Is > it possible that this underlined has the widt

Re: [iText-questions] Help with Page Numbers

2008-04-03 Thread Bruno Lowagie
Hansoti, Avni wrote: > Hi Jen, > > Thanks a lot for your answer, it worked but it give me page number 1 on my > each page. > > Is it because every time I print my header table I did, document.newPage()?? Oops, maybe you can ignore my previous answer. I assumed you were doing stuff like this:

Re: [iText-questions] pdf Image to real Image?

2008-04-03 Thread Bruno Lowagie
Jens Kapitza wrote: > is there a way to import a PDF page (PdfContentByte) A PdfImportedPage is more than just a PdfContentByte object. > and then write it to Graphics object or save it as Image (JPG,PNG,...) No, iText generates and manipulates PDF. It doesn't render them (and that's what you'r

Re: [iText-questions] Help with Page Numbers

2008-04-03 Thread Bruno Lowagie
Hansoti, Avni wrote: > And I forgot to mentioned that yes, you are right. I am creating a > padfTable, that's why the write don't know the page Number. > But is there any way I can get it work with pdftables to print > pagenumbers. That makes it more difficult because there are many possible ways

Re: [iText-questions] Help with Page Numbers

2008-04-03 Thread Hansoti, Avni
Hi Jen, Thanks a lot for your answer, it worked but it give me page number 1 on my each page. Is it because every time I print my header table I did, document.newPage()?? Thanks, Avni > So what should pass for my arg1?? > >ByteArrayOutputStream baos = new ByteArrayOutputStream() >PdfWriter

Re: [iText-questions] pdf Image to real Image?

2008-04-03 Thread Howard Shank
You never increment i... int i=1; while(i < nu_pages) { over = stamper.getOverContent(i); putData(over, helv); } Try changing to while(i < nu_pages) { over = stamper.getOverContent(i);

[iText-questions] pdf Image to real Image?

2008-04-03 Thread Gawędzki , Paweł
I can't add data to existing pdf. It's adding data only to first page. Nothing hepends on others. This is my code: try { PdfReader reader = new PdfReader(pdf_path1); int nu_pages = reader.getNumberOfPages(); PdfStamper stamper = new PdfStamper(reader, new F

[iText-questions] pdf Image to real Image?

2008-04-03 Thread Jens Kapitza
is there a way to import a PDF page (PdfContentByte) and then write it to Graphics object or save it as Image (JPG,PNG,...) --- Jens - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell servic

Re: [iText-questions] Help with Page Numbers

2008-04-03 Thread Hansoti, Avni
And I forgot to mentioned that yes, you are right. I am creating a padfTable, that's why the write don't know the page Number. But is there any way I can get it work with pdftables to print pagenumbers. I appreciate your help, Thanks, Avni Hansoti Please explain, because in my examples the

Re: [iText-questions] "Help" with Page Numbers

2008-04-03 Thread Jens Kapitza
Hansoti, Avni schrieb: > > Thanks for your reply Mr. Bruno. > > Actually I couldn’t get it work with pdfWriter because I don’t know > what to put in Output Stream argument: > > PdfWriter writer = PdfWriter.getInstance(document,arg1); > > I am not saving my pdfReport directly, I am running my Java

[iText-questions] Problem with anchor and chapter

2008-04-03 Thread Javier Del Amo
Good afternoon. I have a problem: how does a chapter be able to an internal link? I have a chapter and this I want to be a internal link. I have problems both in the origin of the link and the destination. In the origin I have a duplicate word, the chapter and the anchor. In the destination I have

Re: [iText-questions] "Help" with Page Numbers

2008-04-03 Thread Hansoti, Avni
Thanks for your reply Mr. Bruno. Actually I couldn't get it work with pdfWriter because I don't know what to put in Output Stream argument: PdfWriter writer = PdfWriter.getInstance(document,arg1); I am not saving my pdfReport directly, I am running my Java application on server, and when use

Re: [iText-questions] error in draw function ?? PdfTemplate

2008-04-03 Thread Jens Kapitza
Thanks for the information, > Are you implying that we at iText should ignore this > and break plenty of free functionality that comes with > the correct implementation of these PdfGraphics2D objects ;-) > > ;) > br, > Bruno -- Jens -

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Paulo Soares
I suppose you can create one that is not secret. If thats' not possible the Photoshop batch processing looks good, as someone else said. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Magnus Hed > Sent: Thursday, April 03, 2008 1:06 PM >

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Paulo Soares
If they were produced by the same application they will be equally broken. iText can read a lot of broken TIFFs and PDFs just not that kind because we never saw one. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Magnus Hed > Sent: Thurs

Re: [iText-questions] "Help" with Page Numbers

2008-04-03 Thread Bruno Lowagie
Hansoti, Avni wrote: > But document.getPageNumber() keeps returning me 0. I see that you already found the FAQ entry: http://www.1t3xt.com/docs/faq.php?branch=faq.itext&node=getpagenumber > I googled and found out that i should use writer.getPageNumber() instead > But it's not working. writer.get

Re: [iText-questions] error in draw function ?? PdfTemplate

2008-04-03 Thread Bruno Lowagie
Jens Kapitza wrote: > hi, > i just start using itext and i am confused with using the Graphics2D > object wich is created by itext. Er, the abstract class Graphics2D was invented by SUN. The iText PdfGraphics2D implements SUN's Graphics2D as described in SUN's API: http://java.sun.com/j2se/1.3/do

[iText-questions] "Help" with Page Numbers

2008-04-03 Thread Hansoti, Avni
Hi, I'm writing a table with some data that could go few pages long. On each new page, I want to print the table's header once again but I'm having trouble doing so. It would be helpful if I can get the page number i'm currently writing on, and I also want to print totalnumber of pages But docum

[iText-questions] error in draw function ?? PdfTemplate

2008-04-03 Thread Jens Kapitza
hi, i just start using itext and i am confused with using the Graphics2D object wich is created by itext. i create it using PdfTemplate#createGraphics(breite , hoehe ); Graphics2D gx = tmp.createGraphics(breite , hoehe ); gx.setColor(Color.red); gx.drawRect(0, 0, breit

Re: [iText-questions] Kerning when calculating font point size?

2008-04-03 Thread Andrew Bligh
My mistake, apologies. Thanks for the info. > Date: Thu, 3 Apr 2008 13:24:29 +0200 > From: [EMAIL PROTECTED] > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Kerning when calculating font point size? > > Andrew Bligh wrote: > > Hi, > > > > Could anybody tell me that

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Magnus Hed
I will try that. Thanx! Magnus Hed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Howard Shank Sent: den 3 april 2008 14:43 To: Post all your questions about iText here Subject: Re: [iText-questions] Converting TIFF with errors to PDF You could try o

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Howard Shank
You could try opening and re-saving them as a batch process in Adobe Photoshop or some other program to correct the TIFF? Howard - Original Message From: Magnus Hed <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Thursday, April 3, 2008 8:05:56 AM Subject: Re: [

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Bruno Lowagie
Sergio Lopez wrote: > Anyway, looking forward to having your clean and universal solution You might find it easier to get the current version from SVN: http://1t3xt.com/downloads/svn.php and then use the ANT scripts to build the jar. I guess it's about a quarter of an hour work, which is less than

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Sergio Lopez
Taking advantage of your suggestion to code I tried to adpat it to my case till there's a new release. I had to use onEndPage. But i was forced to define global variables to use PdfContentByte, and table widths and heights used in tableLayout method :-( I know it's a "dirty" solution and maybe

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Magnus Hed
And I forgot to mention that the TIFs are all classified as secret, so I can't send a link to them or even show them to anyone, sorry. /Magnus Hed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: den 3 april 2008 13:57 To: Post all

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Magnus Hed
There are over hundreds of these "broken" tiff's that has to be converted into PDF. Is there a way to program Itextsharp to put them in a pdf even though this error occurs? They can all be viewed perfectly in an image viewer. Regard Magnus -Original Message- From: [EMAIL PROTECTED] [ma

Re: [iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Paulo Soares
You have a broken TIFF. Post a link to the TIFF and I'll see what can be done. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Magnus Hed > Sent: Thursday, April 03, 2008 12:51 PM > To: itext-questions@lists.sourceforge.net > Subject: [iT

[iText-questions] Converting TIFF with errors to PDF

2008-04-03 Thread Magnus Hed
Is there a way to convert single-paged TIFF's that gives an IndexOutOfRangeException to PDF? I can open the TIF's and view them in an imaging-application. Thanx in advance Magnus - Check out the new SourceForge.net M

Re: [iText-questions] Regrading BufferedImage Conversion to PDF.

2008-04-03 Thread Leonard Rosenthol
Then you need to write a PCL parser, and for each object you locate in the PCL, use the equivalent iText API to generate the same in the PDF. NOTHING is going to do this for you - you have a LOT of work ahead of you... Leonard On Apr 3, 2008, at 2:35 AM, Tabish Sarwar wrote: > My primary o

Re: [iText-questions] Kerning when calculating font point size?

2008-04-03 Thread Bruno Lowagie
Andrew Bligh wrote: > Hi, > > Could anybody tell me that if an underlying font file has kerning > information whether this is taken into account when calculating some > text width in points i.e. > > BaseFont.getWidthPoint( someText , textSize ) > > I would have thought it does Why would you

Re: [iText-questions] Kerning when calculating font point size?

2008-04-03 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andrew Bligh > Sent: Thursday, April 03, 2008 12:13 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Kerning when calculating font point size? > > Hi, > > Could anybod

[iText-questions] Kerning when calculating font point size?

2008-04-03 Thread Andrew Bligh
Hi, Could anybody tell me that if an underlying font file has kerning information whether this is taken into account when calculating some text width in points i.e. BaseFont.getWidthPoint( someText , textSize ) I would have thought it does but I would just like to confirm this. Thanks & r

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Sergio Lopez
Exactly what I need!!! I'm looking forward to have the new version ^__^ Hope in my project let me use the new jar soon ;-) Thank you so much Should you come to Madrid, a "paella" will be waiting for you ^_^ Sergio > Date: Thu, 3 Apr 2008 1

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Bruno Lowagie
Paulo Soares wrote: iText has some constructs to simplify life but sometimes life is too complicated. Granted, but this particular problem looked like an interesting challenge to me. I addapted the example (see attachment) and noticed the problem persisted. Then I made some minor changes in Pdf

Re: [iText-questions] Regrading BufferedImage Conversion to PDF.

2008-04-03 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tabish Sarwar > Sent: Thursday, April 03, 2008 10:33 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Regrading BufferedImage > Conversion to PDF. > > I will be

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Sergio Lopez
I feared sth like that Thanks anyway!!! Best regards > Date: Thu, 3 Apr 2008 10:19:50 +0100 > From: [EMAIL PROTECTED] > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] TableLayout + Memory Management > > iText has some con

Re: [iText-questions] Regrading BufferedImage Conversion to PDF.

2008-04-03 Thread Tabish Sarwar
I will be very thankful if you make it more clear . Secondly .. Is this possible what i am trying to do i.e Load a BufferedImage from a PCL file. Then using that buffer create a PDF file using Itext. Secondly , Image (*com.lowagie.text.Image) *works with only JPEG, PNG or GIF as mentioned in API

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Paulo Soares
iText has some constructs to simplify life but sometimes life is too complicated. In this case you'll have to take care of the layout yourself and check the height of the table, when the height is greater than the page, remove the last row and write the table. You'll create a new table for each pag

Re: [iText-questions] Changing document properties of pdf

2008-04-03 Thread Paulo Soares
For the hard of hearing: ONLY ADOBE CAN APPLY SPECIAL RIGHTS. iText will never, never, never be able to do it. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Markus Stork > Sent: Thursday, April 03, 2008 10:08 AM > To: itext-questions@li

Re: [iText-questions] Problem with Chapter

2008-04-03 Thread Paulo Soares
Chapter.setTriggerNewPage(false). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Javier Del Amo > Sent: Thursday, April 03, 2008 9:54 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Problem with Chapter > > G

Re: [iText-questions] Regrading BufferedImage Conversion to PDF.

2008-04-03 Thread Paulo Soares
Use Image.getInstance(java.awt.Image, java.awt.Color). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tabish Sarwar > Sent: Thursday, April 03, 2008 7:36 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Regradi

Re: [iText-questions] Formatting Question: Page Number and footer

2008-04-03 Thread Paulo Soares
You are using an old version and HeaderFooter is deprecated and not supported. Use page events. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Lawrence Tsosie > Sent: Wednesday, April 02, 2008 8:40 PM > To: iText-questions@lists.sourcefo

[iText-questions] Problem with Chapter

2008-04-03 Thread Javier Del Amo
Good morning. Is there any way to have two Chapters on the same page? Every time I create a new Chapter It was going to a new page. Can anybody help me? Thanks. - Check out the new SourceForge.net Marketplace. It's the best p

Re: [iText-questions] TableLayout + Memory Management

2008-04-03 Thread Sergio Lopez
Sorry, I forgot to attach JAVA>-< My case it's a WYSIWYP (What You See Is What You Print) ^_^ And it isn't a double line problem as the body lines are 0.5f width, but border for complete table is 2. If I build the whole table, and then add it to document, perfect, but it I do it in parts no

[iText-questions] underline text

2008-04-03 Thread Javier Del Amo
Good morning. Is there any way to underline a chunk, phrase, or paragraph and whose width is the width of the paper? The api said that the underline is the width of the chunk. Is it possible that this underlined has the width of the paper? Thanks.

Re: [iText-questions] Changing document properties of pdf

2008-04-03 Thread Markus Stork
Hello, I'm facing with the same problem. I have to add a blank signature field to a PDF (while generating with iText). This PDF have to be signed with a standard Acrobat Reader. Any changes in iText since July 2006? Is it now possible to add special rights to a PDF to sign it with the Acrobat Rea