Re: [iText-questions] Unicode 3.1/hkscs support

2002-06-04 Thread Kumata Mitsugu
Hello all,

Does the follwing mean iText will support Adobe-Japan1-3 Character
Collection too?
If so I will be very happy as a Japanese iText user.
I sometimes need to use pre-rotated latin1 glyphs in vertical line.

Thank you,
KuMi


> You have three options:
> 
> - If your pdf is to be read with Acrobat 5 with the Adobe CJK font pack then
> all that is required is to tweak the font supplement from Adobe-CNS1-0 to
> Adobe-CNS1-3. I'll have this in the next release, it will still work in
> Acrobat 4.0 but without the new characters, of course.
> 
> - your font contains the characters from Unicode block \uff00 (Halfwidth and
> Fullwidth Forms). See
> http://www.lowagie.com/iText/faq.html#preformattedtext.
> 
> - Otherwise it's just a matter of programming although I must say that a
> font that doesn't include \u0020-\u007e characters is really weird. The
> sequence is as follows:
> 
> 1 - create two fonts, the HK and TIMES for example.
> 2 - read the text from the database
> 3 - divide the text in chunks each one using a font depending on the
> character range.
> 4 - assemble the chunks into a phrase and use the phrase.
> 
> Best Regards,
> Paulo Soares
> 
>> -Original Message-
>> From:Zhen  Cua [SMTP:[EMAIL PROTECTED]]
>> Sent:Tuesday, June 04, 2002 7:48
>> To:[EMAIL PROTECTED]
>> Subject:[iText-questions] unicode 3.1/hkscs support
>> 
>> Hello all,
>> 
>> I am reposting this question from the forum.
>> The current CJKFont does not seem to include support for HKSCS (HongKong
>> Supplementary character set) characters, and hence I am forced to embed a
>> TTF. Unfortunately, the TTF does not contain support for other characters
>> such as latin1 and basic punctuations, I've tried using MS Arial Unicode
>> but it contains only chracters until unicode 2.0, I am generating the pdf
>> based on the contents of the database, so it is almost impossible to
>> pre-determine the font to be used. Is there a solution to this problem?
>> will it be possible to modify something in the code to allow it to specify
>> two or more fonts in a call to new Chunk() or new Phrase() such that it
>> will automatically search the character in font2 if it is no in font1?
>> 
>> Thanks in advance,
>> Zhen
>> 
>> ___
>> 
>> Don't miss the 2002 Sprint PCS Application Developer's Conference
>> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>> 
>> ___
>> iText-questions mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] New release itext-paulo-98

2002-06-04 Thread Paulo Soares

Changes in itext-paulo-98 (2002-06-04)

- added PdfWriter.setAdditionalAction() to support additional-actions in
  the catalogue. This is a PDF1.4 only feature.

- added PdfReader.getInfo() to get the metadata information from a PDF
  document.

- no-wrap in PdfPCell now works correctly for all the horizontal
  alignments.

- minor fix in HyphenationAuto.getHyphenatedWordPre() to optimize the
available
  word space.

- new supplements in CJKFont to support the new characters in PDF1.4.
It's still
  compatible with PDF1.3.


All this at:

http://www.geocities.com/itextpdf


Best Regards,
Paulo Soares


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] PdfPTable absolute positioning

2002-06-04 Thread Paulo Soares

Use a PdfPTableEvent to get the cell positions.

Best Regards,
Paulo Soares

> -Original Message-
> From: Wojciech Wisniowski [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 04, 2002 18:55
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] PdfPTable absolute positioning
> 
> Hello,
> 
> I am a new user of  the iText library.
> It is very usefull for my project but I need a little help.
> I'm using a PdfPTable/PdfPCell  objects to create my pdf document. But in
> order to complete my project I need export page layout (positions and
> content of cells ) to external application.
> I would like to get absolute position of all cells and save it to external
> xml file.
> How to do it? The methods left(), right() ... of PdfPCell objects always
> return 0.0.
> How can I solve my problem?
> 
> Thank for any help
> 
> Wojtek
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] PdfPTable absolute positioning

2002-06-04 Thread Wojciech Wisniowski

Hello,

I am a new user of  the iText library.
It is very usefull for my project but I need a little help.
I'm using a PdfPTable/PdfPCell  objects to create my pdf document. But in
order to complete my project I need export page layout (positions and
content of cells ) to external application.
I would like to get absolute position of all cells and save it to external
xml file.
How to do it? The methods left(), right() ... of PdfPCell objects always
return 0.0.
How can I solve my problem?

Thank for any help

Wojtek


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] barcodeEAN 8 checksum digit calculation

2002-06-04 Thread Paulo Soares

You must pass the 8 digits to the method. If you want to calculate the
checksum use barcodeEAN.calculateEANParity(), see the javadoc. An example:

BarcodeEAN codeEAN = new BarcodeEAN();
codeEAN.setCodeType(codeEAN.EAN8);
codeEAN.setCode("55123457");
Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null);

Best Regards,
Paulo Soares

> -Original Message-
> From: Dogan, Bulent [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 04, 2002 17:33
> To:   '[EMAIL PROTECTED]'
> Subject:  [iText-questions] barcodeEAN 8 checksum digit calculation
> 
> I have tried to use the barcodeEAN class to generate barcodes in type EAN
> 8.
> I have tried to pass in codes without the checksum digit and I kept on
> getting the ExceptionConverter exception. I have even set the
> setGenerateChecksum() to true. This didn't help either. Any suggestions?
> 
> Bulent
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] barcodeEAN 8 checksum digit calculation

2002-06-04 Thread Dogan, Bulent

I have tried to use the barcodeEAN class to generate barcodes in type EAN 8.
I have tried to pass in codes without the checksum digit and I kept on
getting the ExceptionConverter exception. I have even set the
setGenerateChecksum() to true. This didn't help either. Any suggestions?

Bulent




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Line wrapping

2002-06-04 Thread Paulo Soares

You can fix that by doing some programming. It's not that difficult to
eliminate some CR from a text string.

Best Regards,
Paulo Soares

> -Original Message-
> From: Marc Ellison [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 04, 2002 17:01
> To:   '[EMAIL PROTECTED]'
> Subject:  [iText-questions] Line wrapping
> 
> Hi,
>  
> Am trying to grab info from a text area on a screen, to then show on a pdf
> report. However, I have a problem with unwanted carriage returns! I.e., if
> I typed in my text area:-
>  
> 1
> 2
> 3
>  
> 4
>  
> ...it appears in my report as:-
>  
> 1
>  
> 2
>  
> 3
>  
>  
> 4
>  
> In effect I want to be able to disable the carriage returns as it is
> screwing up the presentation of my data! Is this a known 'problem'? Any
> ideas on how I might fix this. Would really appreciate someguidance on
> this!
>  
> Regards
>  
> Marc
>  
>  
>  ft/Signatures/www.pangaeainc.com>
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] page footer template using table (beginner)

2002-06-04 Thread morpheus Smith

hi all,
i know using pageevents (onPageEnd) i can add a
template to pdfContentByte as page footer, but i don't
know how to create a template object from a table
object i have. Any help regarding this is greatly
appriciated.
thanks
morpheus


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Line wrapping

2002-06-04 Thread Marc Ellison
Title: Message



Hi,
 
Am trying to grab 
info from a text area on a screen, to then show on a pdf report. However, I have 
a problem with unwanted carriage returns! I.e., if I typed in my text 
area:-
 
1
2
3
 
4
 
...it appears in my 
report as:-
 
1
 
2
 
3
 
 
4
 
In effect I want to 
be able to disable the carriage returns as it is screwing up the presentation of 
my data! Is this a known 'problem'? Any ideas on how I might fix this. Would 
really appreciate someguidance on this!
 
Regards
 
Marc
 





[iText-questions] Adding a Phrase in PdfPTableEvent.tableLayout()

2002-06-04 Thread Carsten Frewert


Hi!

I'm looking for a way to add a Phrase (or some Chunks) to a document
within PdfPTableEvent.tableLayout(), so the real problem seems to be
adding a Phrase or Chunks to the PdfContentByte object.

As I've only little experience with this "low level" PDF stuff, I'm in
trouble ;)

I would be glad if someone had a hint for me.

TIA,
Carsten

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] PDF Download saves the HTML page instead of PDF

2002-06-04 Thread Akshat Jain
Title: PDF Download saves the HTML page instead of PDF





HI,
I am trying to save the pdf file by popping up a Save As dialogue box. This works fine with IE 6.0 and IE 5.5 (basic) but in IE 5.5 SP1,2 the browser opens a Save as Dialogue box and saves the HTML page of the calling page, (In my case the frame-set page).

I am using the following code. Can someone help me fix this one. This is urgent please.



document = new Document(PageSize.A4.rotate(), 10, 10, 10, 10);


    // Create a Writer that listens to the document and writes the document into the PDF.
    PdfWriter.getInstance(document, bytesToWrite);


// Open the document.

    document.open();


    // Call method(to set data) with document and 2D array of data as arguments.


    loadDocument();//loads the document object.


document.close();



response.setHeader("Expires", "-1");
response.setContentType("application/pdf");

  response.setHeader("Content-Disposition", "attachment;filename="+sCompleteFileName);


response.setContentLength(bytesToWrite.size());

    ServletOutputStream out = response.getOutputStream();
    bytesToWrite.writeTo(out);
    bytesToWrite.flush();
    out.flush();
    bytesToWrite.close();
    out.close();


Thanks,
Akshat Jain
 





RE: [iText-questions] Unicode 3.1/hkscs support

2002-06-04 Thread Paulo Soares

You have three options:

- If your pdf is to be read with Acrobat 5 with the Adobe CJK font pack then
all that is required is to tweak the font supplement from Adobe-CNS1-0 to
Adobe-CNS1-3. I'll have this in the next release, it will still work in
Acrobat 4.0 but without the new characters, of course.

- your font contains the characters from Unicode block \uff00 (Halfwidth and
Fullwidth Forms). See
http://www.lowagie.com/iText/faq.html#preformattedtext.

- Otherwise it's just a matter of programming although I must say that a
font that doesn't include \u0020-\u007e characters is really weird. The
sequence is as follows:

1 - create two fonts, the HK and TIMES for example.
2 - read the text from the database
3 - divide the text in chunks each one using a font depending on the
character range.
4 - assemble the chunks into a phrase and use the phrase.

Best Regards,
Paulo Soares

> -Original Message-
> From: Zhen  Cua [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 04, 2002 7:48
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] unicode 3.1/hkscs support
> 
> Hello all,
> 
>   I am reposting this question from the forum. 
>   The current CJKFont does not seem to include support for HKSCS (HongKong
> Supplementary character set) characters, and hence I am forced to embed a
> TTF. Unfortunately, the TTF does not contain support for other characters
> such as latin1 and basic punctuations, I've tried using MS Arial Unicode
> but it contains only chracters until unicode 2.0, I am generating the pdf
> based on the contents of the database, so it is almost impossible to
> pre-determine the font to be used. Is there a solution to this problem?
> will it be possible to modify something in the code to allow it to specify
> two or more fonts in a call to new Chunk() or new Phrase() such that it
> will automatically search the character in font2 if it is no in font1?
> 
> Thanks in advance,
> Zhen
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions