itext-questions@lists.sourceforge.net

2004-10-07 Thread Pankaj Sinha
Hi

I am getting following error when I am trying to
create PDF file using itext 
It seems problem is with " ". What is the
replacement for this attribute of html in itext.

Thanks

Pankaj

 Inside generatePdf
Exception in thread "main"
javax.xml.transform.TransformerConfigurationException
: javax.xml.transform.TransformerException:
org.xml.sax.SAXParseException: Refer
ence to undefined entity " ".
at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Unknow
n Source)
at
org.apache.xalan.processor.TransformerFactoryImpl.newXMLFilter(Unknow
n Source)
at
com.doc.GenerateHDoc.mergeXmlXsl(GenerateHDoc.java:76)
at
com.doc.GenerateHDoc.generatePDF(GenerateHDoc.java:110)
at com.doc.TestGDoc.main(TestGDoc.java:21)
Caused by: javax.xml.transform.TransformerException:
org.xml.sax.SAXParseExcepti
on: Reference to undefined entity " ".
... 5 more
Caused by: org.xml.sax.SAXParseException: Reference to
undefined entity " "
.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: nested table problems

2004-10-07 Thread Mayank Mishra
The solution that I found useful was using PdfpTable and PdfpCell instead of 
Table and Cell.But still I can't figure out how to add a mix of phrase and a 
table in a single PdfpCell.
Thanks
mm






---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] nested table problems

2004-10-07 Thread Mayank Mishra
Hello everyone,
 I am getting problems using nested tables.I have 3 tables

Outermost Table-->1,1(added to the document)
Inner Table-->27,10(added to the only cell in outermost Table)
Innermost Table-->14,13(Added to the second row and first col)

The innermost table appears as it is limited to the first column of
itself despite the fact that col span is set properly  .Do u guys have
an idea what mite be going wrong?

Thanks
mm


test.pdf
Description: Adobe PDF document


[iText-questions] Variable size form XObjects

2004-10-07 Thread Steve Appling
I have a very limited understanding of the PDF specification, so please be patient 
with me.

I would like to output text in the form of "This has VARIABLE stuff", where VARIABLE 
is text content
that will not be known until the end of document processing.  This would seem to be 
the place to use
a PdfTemplate (generating a form XObject), but I'm not sure that the examples I've 
seen can handle a
template of variable width.  The examples I have seen are of the form "Page X of Y" 
where Y is the
template part and it's length really doesn't matter.  I don't know how to place my 
text down such
that the word "stuff" would adjust position to handle the width of the VARIABLE part.

It looked like perhaps a "Free Text Annotation" could do this from the discussion of 
Variable Text
on page 617 of the PDF Reference (version 1.5), but I have not figured out how to make 
use of this
yet.  I saw PdfAnnotation.createFreeText, but am not sure how to use it to form 
Variable Text as
discussed in the reference.

Does anyone have an example of something like this?  Any help would be appreciated.




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Multiple Font Styles

2004-10-07 Thread Julie Russell
Hi Everyone,

I am writing a Javascript WYSIWYG editor that converts the HTML to PDF
documents. I have managed to parse the html, however, in the case when I try
and set text that has multiple styles ie bolditalic, I have tried
hard-coding it from the servlet as font style "bolditalic" which works fine,
but as soon as I add it from my parser, that Phrase does not show, yet any
other text without multiple styles does show. I have no idea why this would
be happening. I tried querying the font object, the font style is returning
the correct number (ie for bolditalic 3), however the text just isn't
there...

Also, how do I show a horizontal rule in PDF?

Any help would be greatly appreciated,
Julie.





---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] how can i use Barcode128 with START_C and START_B?

2004-10-07 Thread Paulo Soares
See http://www.barcodeisland.com/code128.phtml and use the CODE128_RAW if
you really need those sequences precisely. Alternatively just use
CODE128_UCC like:

String code = "(91)20170716(92)010504595(93)2004";

Note that if you are using a scanner connected to the keyboard you'll get
wrong characters if the keyboard mapping doesn't match waht the scanner
expects.

Best Regards,
Paulo Soares

- Original Message - 
From: "Faber Ruiz" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, October 07, 2004 21:23
Subject: Re: [iText-questions] how can i use Barcode128 with START_C and
START_B?


> hi,  thanks
>
> i use CODE128_UCC,
>
> i have the next estandar
>
> INC+FNC1+9192AA+INBNNN+INC93
>
> when
> INC : code C
> INB : code B
> A : Numbers and letters
> N : only numbers
>
> i don't know how to build de string for producing the code
>
> (91)(92)AA+INBNNN+INC(93)
>
> i try with
>
> BarcodeEAN128 ean128 = new BarcodeEAN128();
> ean128.setCodeType(Barcode.CODE128_UCC);
> ean128.setBarHeight(30);
> ean128.setX(10.35f);
> ean128.setSize(6);
> ean128.setN(5);
> String code =
> Barcode128.START_C +Barcode128.FNC1
+"(91)20170716"+Barcode128.START_B+"(92)010504595"+Barco
de128.START_C+"(93)2004";
> ean128.setCode(code);
> Image bars = ean128.createAwtImage(Color.BLACK, Color.WHITE);
> saveToJPEG(bars, System.currentTimeMillis() + ".jpg");
>
> but this code don't produce the correct code. I know  that something is
wrong, but i don't know what.
> i get of the reader :
i202(91=20170716h(92=010504595i(93=2004
>
> can you help me?
>
> again, thanks
>
>
>
> Paulo Soares wrote:
>
> >You can use the mode CODE128_RAW and put whatever codes you want.
> >
> >Best Regards,
> >Paulo Soares
> >
> >- Original Message - 
> >From: "Faber Ruiz" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, October 06, 2004 15:39
> >Subject: [iText-questions] how can i use Barcode128 with START_C and
> >START_B?
> >
> >
> >
> >
> >>Hi,
> >>
> >>i have this code in BARCODE 128
> >>
> >>INC+FNC1+91201707169201+INB0504595+INC932004
> >>
> >>the code INC and FNC1 i understand them, but i don know how indicate in
> >>the Java code  the part :
> >>INB = START_C
> >>INC= START_B
> >>
> >>this code produce
> >>
> >>(91)20170716(92)010504595(93)2004 or
> >>912017071692010504595932004
> >>
> >>can you help me?
> >>
> >>
> >>beforehand, thnks you
> >>
> >>
> >>---
> >>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> >>Use IT products in your business? Tell us what you think of them. Give
us
> >>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> >>
> >>
> >more
> >
> >
> >>http://productguide.itmanagersjournal.com/guidepromo.tmpl
> >>___
> >>iText-questions mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>
> >>
> >
> >
> >
>
>
>
> ---
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] how can i use Barcode128 with START_C and START_B?

2004-10-07 Thread Faber Ruiz
hi,  thanks
i use CODE128_UCC,
i have the next estandar
INC+FNC1+9192AA+INBNNN+INC93
	 			   			  
when 
INC : code C
INB : code B
A : Numbers and letters
N : only numbers

i don't know how to build de string for producing the code
(91)(92)AA+INBNNN+INC(93)
i try with
BarcodeEAN128 ean128 = new BarcodeEAN128();
ean128.setCodeType(Barcode.CODE128_UCC);
ean128.setBarHeight(30);
ean128.setX(10.35f);
ean128.setSize(6);
ean128.setN(5);
String code = 
Barcode128.START_C +Barcode128.FNC1 +"(91)20170716"+Barcode128.START_B+"(92)010504595"+Barcode128.START_C+"(93)2004";
ean128.setCode(code);
Image bars = ean128.createAwtImage(Color.BLACK, Color.WHITE);
saveToJPEG(bars, System.currentTimeMillis() + ".jpg");

but this code don't produce the correct code. I know  that something is wrong, but i 
don't know what.
i get of the reader : i202(91=20170716h(92=010504595i(93=2004
can you help me?
again, thanks 


Paulo Soares wrote:
You can use the mode CODE128_RAW and put whatever codes you want.
Best Regards,
Paulo Soares
- Original Message - 
From: "Faber Ruiz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 2004 15:39
Subject: [iText-questions] how can i use Barcode128 with START_C and
START_B?

 

Hi,
i have this code in BARCODE 128
INC+FNC1+91201707169201+INB0504595+INC932004
the code INC and FNC1 i understand them, but i don know how indicate in
the Java code  the part :
INB = START_C
INC= START_B
this code produce
(91)20170716(92)010504595(93)2004 or
912017071692010504595932004
can you help me?
beforehand, thnks you
---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
   

more
 

http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
   

 


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Make Image-Only PDF?

2004-10-07 Thread Leonard Rosenthol
At 03:06 PM 10/7/2004, [EMAIL PROTECTED] wrote:
Is there any way to take a PDF that uses TrueType fonts that are not embedded,
figure out what fonts are used in the file, and then embed those TT fonts in
the PDF?
Yes, but it means your having a VERY indepth understanding of both 
the TrueType font format and the PDF file format - as there are a variety 
of potential "got yahs" in trying to implement "post production font 
embedding".

You do know there are tools that can do this already, right?
Leonard
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] AcroField with formatting and MaxLen

2004-10-07 Thread Haroon Rafique
On Sep 21 at 11:32pm, PS=>Paulo Soares <[EMAIL PROTECTED]> wrote:

PS> That's a bug. MaxLen should only be applied to the information that 
PS> goes into the /V key and not to the appearance. Next week I'll have a 
PS> new release with this fix and others.
PS> 
PS> Best Regards,
PS> Paulo Soares

Hi Paulo,

I just downloaded paulo-139 and I'm happy to report that the bug has been 
fixed. Thanks a bunch for your hard work and excellent support on this 
mailing list.

Regards,
--
Haroon Rafique
<[EMAIL PROTECTED]>



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Make Image-Only PDF?

2004-10-07 Thread Leonard Rosenthol
At 01:38 PM 10/7/2004, [EMAIL PROTECTED] wrote:
Quick question...  Is there any easy way to convert a PDF with text and
annotations into a PDF that is only an image (300 dpi) using iText?
Using only iText - no there is not.  You'd need another component 
to rasterize the PDF into a bitmap image (TIFF or JPEG) and then put that 
back into a new PDF using iText.

Try PSServices (http://www.apago.com) or Ghostscript.
Leonard
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Embedded data object

2004-10-07 Thread Leonard Rosenthol
At 06:37 AM 10/7/2004, Paulo Soares wrote:
I had promised to make this easier some time ago but... I forgot. I'll 
have something in the next release to list and retrieve attachments. (The 
next release will happen before the end of the month)

Be sure to support the newer model for attachments - that's the 
future direction for Adobe.

Leonard
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Embedded data object

2004-10-07 Thread Leonard Rosenthol
At 04:35 AM 10/7/2004, [EMAIL PROTECTED] wrote:
PDF allows to embedded files in PDF files and therefore to use PDF files 
as a kind of archive
Correct.  Actually, there are two kids of embedded files - file 
attachment annotations, and embedded files/data objects.


 (the content of the embedded files is not intended to be visualized by 
the PDF reader).
This is NOT the case, however.
Access to the embedded files by the reader of the PDF is FULLY 
available - so that the reader is able to extract them for 
reference/use.  For example, you might include the original Excel file of 
your financial report so that someone can review the formulas - not just 
the final numbers.


I would like to know if iText supports such a functionnality of the PDF 
specification? If yes, where should I start to write a small program to 
list, import, export... embedded data objects from a PDF file?
As Paulo wrote, you can easily embed files using the existing 
PdfAnnotation feature - however these files aren't accessible to the 
JavaScript DataObject methods.  Those files are embedded using a different 
method (via the /Names table in the /Catalog).

Leonard
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)

---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Make Image-Only PDF?

2004-10-07 Thread frederick
OK, thanks.  Scratch that idea, then. :)

Is there any way to take a PDF that uses TrueType fonts that are not embedded,
figure out what fonts are used in the file, and then embed those TT fonts in
the PDF?

Thanks,

Rick

Quoting Paulo Soares <[EMAIL PROTECTED]>:

> No. iText has no rasterizer capabilities.
>
> Best Regards,
> Paulo Soares
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 07, 2004 18:38
> Subject: [iText-questions] Make Image-Only PDF?
>
>
> >
> > Hi all,
> >
> > Quick question...  Is there any easy way to convert a PDF with text and
> > annotations into a PDF that is only an image (300 dpi) using iText?
> >
> > Thanks for the help!
> >
> > Take Care,
> >
> > Rick
> >
> >
> > ---
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>





---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Make Image-Only PDF?

2004-10-07 Thread Paulo Soares
No. iText has no rasterizer capabilities.

Best Regards,
Paulo Soares

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 2004 18:38
Subject: [iText-questions] Make Image-Only PDF?


>
> Hi all,
>
> Quick question...  Is there any easy way to convert a PDF with text and
> annotations into a PDF that is only an image (300 dpi) using iText?
>
> Thanks for the help!
>
> Take Care,
>
> Rick
>
>
> ---
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Make Image-Only PDF?

2004-10-07 Thread frederick

Hi all,

Quick question...  Is there any easy way to convert a PDF with text and
annotations into a PDF that is only an image (300 dpi) using iText?

Thanks for the help!

Take Care,

Rick


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problems with Table. Page breaks

2004-10-07 Thread Paulo Soares
Use a PdfPTable 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of José María Bergés Sorondo
> Sent: Thursday, October 07, 2004 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Problems with Table. Page breaks
> Importance: High
> 
> Hi!
> 
> I've problems with Table.
> If there is no enough space to place the table in the current 
> page, when the page break occurs, the table is printed two 
> times in the new page.
> I only add the table to the document once.
> What can I do to solve this problem?
> 
> Thanks.
> 
> Best regards, Chema.
> 
> 
> 
> http://webmail.wanadoo.es. Tu correo gratuito, rápido y en español
> 


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] ColumnText

2004-10-07 Thread Merlyn Mathias
Hi Paulo,
 
I have a fixed size PDF form and I use PDFStamper to populate the fields. The document has 15 pages. There are couple of fields which span multiple pages. In the PDF I have named the fields as name.1, name.2, name.3 etc. If the contents should continue from name.1 to name.2 and name.3. I have the following code:
 
public void checkMultiplePageSpan(AcroFields form, String name, String value, PdfStamper stamper) throws DocumentException, IOException  {   int i = 1;  String field = name + "." + i;  // Point it to page 1    PdfContentByte cb = stamper.getOverContent(1);  ColumnText text = new ColumnText(cb); text.addText(new Phrase(value, FontFactory.getFont(FontFactory.COURIER, 12, Font.NORMAL)));  do   { 
 AcroFields.Item item = form.getFieldItem(field);    if (item != null)  {    int pageN =  ((Integer)item.page.get(0)).intValue();  float[] position = form.getFieldPositions(field);  
  // Here I need to specify which page the contents should be written
    
  text.setSimpleColumn(position[1], position[2], position[3], position[4]);  field = name + "." + (++i);    }  else  {  break;  }    }      while ((text.go() & ColumnText.NO_MORE_TEXT) == 0);       }
Now the question is, how do I move to the specific page every time, using the same columntext.? 
 
If this is not possible, is there any other way I can achieve this?
 
Thank you very much.
Merlyn.
		Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.

[iText-questions] Problems with Table. Page breaks

2004-10-07 Thread José María Bergés Sorondo
Hi!

I've problems with Table.
If there is no enough space to place the table in the current page, when the page 
break occurs, the table is printed two times in the new page.
I only add the table to the document once.
What can I do to solve this problem?

Thanks.

Best regards, Chema.



http://webmail.wanadoo.es. Tu correo gratuito, rápido y en español

[iText-questions] RE: ColumnText

2004-10-07 Thread Paulo Soares



Use ColumnText.setCanvas()

  
  
  From: Merlyn Mathias 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 
  4:15 PMTo: Paulo Soares; 
  [EMAIL PROTECTED]Subject: 
  ColumnText
  
  Hi Paulo,
   
  I have a fixed size PDF form and I use PDFStamper to populate the fields. 
  The document has 15 pages. There are couple of fields which span multiple 
  pages. In the PDF I have named the fields as name.1, name.2, name.3 etc. If 
  the contents should continue from name.1 to name.2 and name.3. I have the 
  following code:
   
  public void checkMultiplePageSpan(AcroFields form, String name, String 
  value, PdfStamper stamper) throws DocumentException, IOException  { 
    int i = 
  1;  String field = name + "." + 
  i;  // Point it to page 1    
  PdfContentByte cb = 
  stamper.getOverContent(1); 
   ColumnText text = new 
  ColumnText(cb); text.addText(new Phrase(value, 
  FontFactory.getFont(FontFactory.COURIER, 12, 
  Font.NORMAL)));  
  do   
  {  AcroFields.Item 
  item = 
  form.getFieldItem(field);  
    if (item != 
  null)  {  
    
  int pageN =  
  ((Integer)item.page.get(0)).intValue();  
  float[] position = 
  form.getFieldPositions(field);  
    // Here I need to specify which page the 
  contents should be written
      
    
  text.setSimpleColumn(position[1], position[2], position[3], 
  position[4]);  
  field = name + "." + (++i);  
    
  }  
  else  
  {  
  break;  
  }    
  }  
      while ((text.go() & 
  ColumnText.NO_MORE_TEXT) == 0);     
    }
  Now the question is, how do I move to the specific page every time, 
  using the same columntext.? 
   
  If this is not possible, is there any other way I can achieve this?
   
  Thank you very much.
  Merlyn.
  
  
  Do you Yahoo!?Take 
  Yahoo! Mail with you! Get it on your mobile 
phone.


RE: [iText-questions] Add a checksum in a pdf

2004-10-07 Thread Paulo Soares
See http://itextpdf.sourceforge.net/howtosign.html 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Guillaume Allée
> Sent: Thursday, October 07, 2004 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Add a checksum in a pdf
> 
> Hi,
> 
> 
> I wonder if it is possible to add a checksum in a pdf file so 
> that when
> a reader (adobe acrobat for instance) opens the file, the user is
> notified if the checksum is not matched ?
> 
> If yes, how can it be done with itext ?
> 
> 
> Thanks.
> 
> Guillaume
> -- 
> Allée Guillaume
> Development Engineer
> 
> ATCHIK
> 8, Port Saint Sauveur 
> 31000 Toulouse
> France
> 
> E-mail: [EMAIL PROTECTED]
> Web: http://www.atchik.com 
> tel: +33 5 34 31 77 22
> fax: +33 5 34 31 70 71
> Mob: +33 6 75 08 52 38
> 
> 
> ---
> This SF.net email is sponsored by: IT Product Guide on 
> ITManagersJournal
> Use IT products in your business? Tell us what you think of 
> them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to 
> find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Add a checksum in a pdf

2004-10-07 Thread Guillaume Allée
Hi,


I wonder if it is possible to add a checksum in a pdf file so that when
a reader (adobe acrobat for instance) opens the file, the user is
notified if the checksum is not matched ?

If yes, how can it be done with itext ?


Thanks.

Guillaume
-- 
Allée Guillaume
Development Engineer

ATCHIK
8, Port Saint Sauveur 
31000 Toulouse
France

E-mail: [EMAIL PROTECTED]
Web: http://www.atchik.com 
tel: +33 5 34 31 77 22
fax: +33 5 34 31 70 71
Mob: +33 6 75 08 52 38


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PDF in Chinese & russian. (TF8 encoding or fonts?

2004-10-07 Thread Paulo Soares



It all depends on the fonts and encoding.
 
Russian - the standard TT fonts that come with winxp with encoding 
"Cp1251" or "Identity-H" (arial, ...)
 
CJK - see http://www.lowagie.com/iText/tutorial/ch09.html#CJK. 
If you wand to embedd the fonts use arialuni.ttf with encoding "Identity-H". 
Other fonts can be used, see the winxp instalation disk.
 
Best Regards,
Paulo Soares

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Parag 
  SagarSent: Thursday, October 07, 2004 11:38 AMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] PDF 
  in Chinese & russian. (TF8 encoding or fonts?
  
  Hi 
  experts,
   
  I am 
  using itext.jar for generating PDF documents online.
  My 
  Website generate reports in different languages including russian & 
  chinese.
  My 
  text is in UTF8 format which is picked up from resourcebundles depending upon 
  the locale.
   
  I 
  can see other language text ie english, french Italian.
  But 
  not able to see Chainese and russian. 
   
  Is 
  this is a problem with UTF8 encoding. Do the need to explicitly encode the 
  document with UTF8 encoding?
  Or 
  just changing the fonts will do? can you please suggest the fonts name for 
  russian & chinese in that case?
   
   
  Thanks & regards,
  Parag Sagar


Re: [iText-questions] RTF-- Solve my problem

2004-10-07 Thread Mark Hall
On Thursday 07 October 2004 12:16, sachin wrote:
>  is it possible that without the use of document.open and document.close we
> can still create the RTF ..
No.

Greetings,
Mark
-- 
The sum of the intelligence of the world is constant.  The population is,
of course, growing.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PDF in Chinese & russian. (TF8 encoding or fonts?

2004-10-07 Thread Parag Sagar



Hi 
experts,
 
I am 
using itext.jar for generating PDF documents online.
My 
Website generate reports in different languages including russian & 
chinese.
My 
text is in UTF8 format which is picked up from resourcebundles depending upon 
the locale.
 
I can 
see other language text ie english, french Italian.
But 
not able to see Chainese and russian. 
 
Is 
this is a problem with UTF8 encoding. Do the need to explicitly encode the 
document with UTF8 encoding?
Or 
just changing the fonts will do? can you please suggest the fonts name for 
russian & chinese in that case?
 
 
Thanks 
& regards,
Parag 
Sagar


RE: [iText-questions] Embedded data object

2004-10-07 Thread Paulo Soares
Title: Embedded data object



File attachments are supported. Adding them is trivial in 
PdfAnnotation but retrieval must be done the hard way by direct dictionary 
access. I had promised to make this easier some time ago but... I forgot. I'll 
have something in the next release to list and retrieve attachments. (The next 
release will happen before the end of the month)
 
Best Regards,
Paulo Soares

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Thursday, October 07, 2004 9:35 
  AMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] Embedded data object
  
  iText, 
  First note that I am new to PDF (except for reading with 
  acroread :-) 
  PDF allows to embedded files in PDF files and therefore to use 
  PDF files as a kind of archive (the content of the embedded files is not 
  intended to be visualized by the PDF reader). I found some explanation of it 
  in:
  AcumenJournal_July2002.pdf  
  acrobat _javascript_ scripting reference  
  (look for "Data Objects"
  I would like to know if iText supports such a functionnality 
  of the PDF specification? If yes, where should I start to write a small 
  program to list, import, export... embedded data objects from a PDF 
  file?
  Thanks 
      Richard 
  -- Richard Mouli (mailto:[EMAIL PROTECTED]) 
  DIO Architecture Department AXA 
  Belgium boulevard du Souverain, 23 / B-1170 Bruxelles Tel(Fax): +32 2 678 6778(6281) -Disclaimer-This message may contain 
  confidential information intended solely for the use of the named addressee. 
  If you are not the intended recipient, you should not read, use, disclose or 
  reproduce the content of this message. If you have received this message by 
  mistake, please notify the sender immediately. Any views or opinions presented 
  in this message are solely those of the author and do not necessarily 
  represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV 
  or any other entity of the AXA Group, unless otherwise stated by the sender 
  and duly authorized by the said 
companies.-


[iText-questions] RTF-- Solve my problem

2004-10-07 Thread sachin
Hi,  

 is it possible that without the use of document.open and document.close we can
still create the RTF ..

 



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Itext 1.02 and Paulo 139

2004-10-07 Thread Paulo Soares
Title: Itext 1.02 and Paulo 139



See http://article.gmane.org/gmane.comp.java.lib.itext.general/11473
 
Best Regards,
Paulo Soares

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Thursday, October 07, 2004 7:33 
  AMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] Itext 1.02 and Paulo 139
  
  Just wondering, 
  Why is the "official" version on Sourceforge so old (february 
  2004), whilst the Paulo version is evolving quiet fast? Is there a reason that it is not put on the Itext sourceforge 
  page? What is best? Take the Paulo version or the 
  Sourceforge one? 
  Thanks David -Disclaimer-This message may contain 
  confidential information intended solely for the use of the named addressee. 
  If you are not the intended recipient, you should not read, use, disclose or 
  reproduce the content of this message. If you have received this message by 
  mistake, please notify the sender immediately. Any views or opinions presented 
  in this message are solely those of the author and do not necessarily 
  represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV 
  or any other entity of the AXA Group, unless otherwise stated by the sender 
  and duly authorized by the said 
companies.-


RE: [iText-questions] img tags and HTMLWorker

2004-10-07 Thread Paulo Soares



As I said before the HTMLWorker class was done with a purpose and 
still lacks many features like decent CSS support and img tags. Furthermore even 
if it supported images it would not support text flow around images. It's 
trivial to add image support on this terms.
 
Best Regards,
Paulo Soares

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Christopher BachmannSent: Wednesday, October 06, 2004 10:42 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] img tags and HTMLWorker
  
  
  Does parsing with the HTMLWorker 
  class support HTML img tags?
  If not, how would one accurately 
  replicate HTML code that contains
  images? Thanks 
  in advance,
   
  Christopher


RE: [iText-questions] how iReport support Thai?

2004-10-07 Thread Paulo Soares



Wrong group?

  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of liang 
  yewSent: Thursday, October 07, 2004 4:29 AMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] how 
  iReport support Thai?
  
  
  Dear Experts:    I m new to iReport, 
  anyway, i would like to ask that the iReport is ableto support Chinese and 
  Thai?    If yes, what configuration that i 
  need?    My application is using the technologies as 
  below:    JAVA (JSP, EJB, J2EE)    
  Oracle9i DB (Multiligual support)    Windows XP and Linux 
  OSThanks
  
  Fast, clear and easy. The new MSN Search. Try it. 
  --- This SF.net email is 
  sponsored by: IT Product Guide on ITManagersJournal Use IT products in your 
  business? Tell us what you think of them. Give us Your Opinions, Get Free 
  ThinkGeek Gift Certificates! Click to find out more 
  http://productguide.itmanagersjournal.com/guidepromo.tmpl 
  ___ iText-questions mailing list 
  [EMAIL PROTECTED] 
  https://lists.sourceforge.net/lists/listinfo/itext-questions 



[iText-questions] img tags and HTMLWorker

2004-10-07 Thread Christopher Bachmann








Does parsing with the HTMLWorker class support HTML img
tags?

If not, how would one accurately replicate HTML code that
contains

images? Thanks in
advance,

 

Christopher








[iText-questions] Embedded data object

2004-10-07 Thread richard . mouli
Title: Embedded data object





iText,


First note that I am new to PDF (except for reading with acroread :-)


PDF allows to embedded files in PDF files and therefore to use PDF files as a kind of archive (the content of the embedded files is not intended to be visualized by the PDF reader). I found some explanation of it in:

AcumenJournal_July2002.pdf 
acrobat _javascript_ scripting reference  (look for "Data Objects"

I would like to know if iText supports such a functionnality of the PDF specification? If yes, where should I start to write a small program to list, import, export... embedded data objects from a PDF file?

Thanks


    Richard


-- 
Richard Mouli (mailto:[EMAIL PROTECTED])
DIO Architecture Department
AXA Belgium boulevard du Souverain, 23 / B-1170 Bruxelles
Tel(Fax): +32 2 678 6778(6281) 




-Disclaimer-

This message may contain confidential information intended solely for the use of the named addressee. If you are not the intended recipient, you should not read, use, disclose or reproduce the content of this message. If you have received this message by mistake, please notify the sender immediately. Any views or opinions presented in this message are solely those of the author and do not necessarily represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless otherwise stated by the sender and duly authorized by the said companies.

-




[iText-questions] Itext 1.02 and Paulo 139

2004-10-07 Thread david . deridder
Title: Itext 1.02 and Paulo 139





Just wondering,


Why is the "official" version on Sourceforge so old (february 2004), whilst the Paulo version is evolving quiet fast?
Is there a reason that it is not put on the Itext sourceforge page?
What is best? Take the Paulo version or the Sourceforge one?


Thanks
David




-Disclaimer-

This message may contain confidential information intended solely for the use of the named addressee. If you are not the intended recipient, you should not read, use, disclose or reproduce the content of this message. If you have received this message by mistake, please notify the sender immediately. Any views or opinions presented in this message are solely those of the author and do not necessarily represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless otherwise stated by the sender and duly authorized by the said companies.

-




[iText-questions] how iReport support Thai?

2004-10-07 Thread liang yew
Dear Experts:    I m new to iReport, anyway, i would like to ask that the iReport is ableto support Chinese and Thai?    If yes, what configuration that i need?    My application is using the technologies as below:    JAVA (JSP, EJB, J2EE)    Oracle9i DB (Multiligual support)    Windows XP and Linux OSThanksFast, clear and easy. The new MSN Search. Try it.


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions