Re: [iText-questions] Questions about migrating itext from 1.2 to 5.0

2010-06-23 Thread 1T3XT info
Ken11 wrote:
> Hi 1T3XT BVBA,
> 
> Thanks very very much. It is really helpful of your reply.
> 
> About the excel thing, it seems that itext can generate excel file.
> 
> You can google out a lot of information for how to generate an excel file by
> itext.

I tried Googling for "generate EXCEL iText":
http://www.google.com/search?q=generate+EXCEL+iText
I didn't get any link that confirmed your allegation.

> And the class "com.lowagie.text.Table" or "com.lowagie.text.Cell" are really
> fit of generating excel.

No, no, no. That's not true!
Are you talking about RTF instead of Excel?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] iText question regarding one tutorial

2010-06-23 Thread 1T3XT info
vallentin...@gmail.com wrote:
> Can you please tell me where can I find the rest of this tutorial? 
> Because the link in the pdf does not work anymore. I needed asap, 
> please, if you can help me I would really appreciate it

The tutorial was removed after the publication of the first book (2007).
In the meantime, a second book was written. It's available through MEAP:
http://itextpdf.com/book/
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Questions about migrating itext from 1.2 to 5.0

2010-06-23 Thread Ken11

Hi 1T3XT BVBA,

Thanks very very much. It is really helpful of your reply.

About the excel thing, it seems that itext can generate excel file.

You can google out a lot of information for how to generate an excel file by
itext. And of course I don't mean CSV.
And the class "com.lowagie.text.Table" or "com.lowagie.text.Cell" are really
fit of generating excel.

So I guess even different kinds of documents will have some parts of common
ground.

Anyway, I'm trying to upgrade it to 2.1.7 now.


Best regards,
Ken

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Questions-about-migrating-itext-from-1-2-to-5-0-tp2263712p2266428.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Characters missing when using.pfm font

2010-06-23 Thread 1T3XT info
Werner Aernouts wrote:
> I tried using the Identity_H encoding before (having read somewhere that 
> this should always work), but I got an error doing that
> 
> ExceptionConverter: java.io.UnsupportedEncodingException:

That type 1 font doesn't support Unicode as encoding.
That's normal.

> Anyway, I tried referring to the original .afm file instead of the 
> installed .pfm, and that seems to solve the issue somehow. So my problem 
> is/seems solved, now I would just like to understand why/how.

Two possible reasons:
1. iText converts the PFM to AFM internally.
Maybe there's a bug in iText.
2. Maybe the PFM is not as accurate as the AFM.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Characters missing when using.pfm font

2010-06-23 Thread 1T3XT info
Werner Aernouts wrote:
> Dear,
> I am construction a font from a .pfm file as it says in the book, i.e.
> 
> font_normal_10 = new Font( 
> BaseFont.createFont("C:\\Windows\\Fonts\\Sun5.pfm","",BaseFont.EMBEDDED), 
> 10 );

First a counter-question to rule out a possible problem:
did you check if you have a file Sun5.pfb in c:/windows/fonts?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] iTextSharp to convert HTML to PDF with support of full formatting

2010-06-23 Thread Darshak Patel
Hello Team,

I have used iTextSharp to convert HTML to PDF using below code

Dim doc As New Document(PageSize.A4, 80, 50, 30, 65)
Dim strFileName As String = 
HttpContext.Current.Server.MapPath("~/files/golf/test123.pdf")
Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New 
FileStream(strFileName, FileMode.Create))

doc.Open()

Dim strURL As String = "http://ace:2959/admin/testpdf.html";
Dim uri As New Uri(strURL)

Dim req As HttpWebRequest = DirectCast(WebRequest.Create(uri), HttpWebRequest)
req.UserAgent = "Get Content"
Dim resp As WebResponse = req.GetResponse()
Dim stream As Stream = resp.GetResponseStream()
Dim sr As New StreamReader(stream)
Dim html As String = sr.ReadToEnd()

Dim lt As ArrayList = 
iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(New 
StringReader(html), Nothing)

Dim ct As New ColumnText(writer.DirectContent)

ct.SetSimpleColumn(50, 50, PageSize.A4.Width - 50, PageSize.A4.Height - 50)

For k As Integer = 0 To lt.Count - 1
doc.Add(DirectCast(lt(k), IElement))
Next

doc.Close()

Problem:

I can get PDF generated from HTML but formating is not as it looks like in HTML.

It dosen't support images width & height in html table.
I want to convert full formatted HTML structure in generating PDF.

Can anyone help me to solve my problem?

I am awaiting for a solution.

Thanks in advance.

Regards,

Darshak
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Characters missing when using.pfm font

2010-06-23 Thread Werner Aernouts
I tried using the Identity_H encoding before (having read somewhere that 
this should always work), but I got an error doing that

ExceptionConverter: java.io.UnsupportedEncodingException: Identity-H
at java.lang.StringCoding.encode(StringCoding.java:269)
at java.lang.String.getBytes(String.java:947)
at 
com.lowagie.text.pdf.PdfEncodings.convertToBytes(PdfEncodings.java:197)
at com.lowagie.text.pdf.Type1Font.(Type1Font.java:278)

Anyway, I tried referring to the original .afm file instead of the 
installed .pfm, and that seems to solve the issue somehow. So my problem 
is/seems solved, now I would just like to understand why/how.

best regards,
Werner

itext-questions-requ...@lists.sourceforge.net wrote:
> Send iText-questions mailing list submissions to
>   itext-questions@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.sourceforge.net/lists/listinfo/itext-questions
> or, via email, send a message with subject or body 'help' to
>   itext-questions-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>   itext-questions-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of iText-questions digest..."
>
>
> Today's Topics:
>
>1. Re: SVG Salamander does not support "data" URI  schemein SVG
>   images? (Mark Storer)
>2. Re: Characters missing when using.pfm font (Mark Storer)
>3. Re: [itextsharp]: PdfContentByte.AddImage no longer showing
>   image with update to 5.x version (mgabr...@mymts.net)
>
>
> --
>
> Message: 1
> Date: Wed, 23 Jun 2010 14:36:21 -0700
> From: "Mark Storer" 
> Subject: Re: [iText-questions] SVG Salamander does not support "data"
>   URI schemein SVG images?
> To: "Post all your questions about iText here"
>   
> Message-ID: <4c8af5838a329a4aa6458a439b57824e019e9...@vex2.verity.com>
> Content-Type: text/plain; charset="us-ascii"
>
> The "spam" is just our idiot firewall jumping to incorrect conclusions.
>
> As for an SVG mailing list...
>
> http://tinyurl.com/24mqb9a
>
> It was trivially easy to find.
>
> --Mark Storer
>   Senior Software Engineer
>   Cardiff.com
>  
> import legalese.Disclaimer;
> Disclaimer DisCard = null;
>  
>
>   
>> -Original Message-
>> From: ndkevinr2 [mailto:ndkevi...@yahoo.com]
>> Sent: Wednesday, June 23, 2010 11:27 AM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Spam: Re: [iText-questions] Spam: SVG Salamander does not
>> 
> support
>   
>> "data" URI schemein SVG images?
>>
>>
>> I asked my question here, because I did not find a forum or list for
>> 
> SVG
>   
>> Salamander. Can you recommend the appropriate place for this question?
>>
>> (Spam? Come on, man.)
>>
>> --
>> View this message in context: http://itext-
>>
>> 
> general.2136553.n4.nabble.com/SVG-Salamander-does-not-support-data-URI-
>   
>> scheme-in-SVG-images-tp2265911p2266014.html
>> Sent from the iText - General mailing list archive at Nabble.com.
>>
>>
>> 
> 
> --
>   
>> 
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.itextpdf.com/book/
>> Check the site with examples before you ask questions:
>> http://www.1t3xt.info/examples/
>> You can also search the keywords list:
>> http://1t3xt.info/tutorials/keywords/
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com
>> Version: 9.0.829 / Virus Database: 271.1.1/2958 - Release Date:
>> 
> 06/23/10
>   
>> 04:11:00
>> 
>
>
>
> --
>
> Message: 2
> Date: Wed, 23 Jun 2010 14:42:11 -0700
> From: "Mark Storer" 
> Subject: Re: [iText-questions] Characters missing when using.pfm font
> To: "Post all your questions about iText here"
>   
> Message-ID: <4c8af5838a329a4aa6458a439b57824e019e9...@vex2.verity.com>
> Content-Type: text/plain; charset="us-ascii"
>
> That empty string parameter in your createFont call is, I'll wager
> (yep), the desired encoding.  The default is code page 1252
> (WinAnsiEncoding, whatever you want to call it).  It's a single-byte
> encoding that was the default on MS OS's for years.
>
> If you want access to every conceivable character in a font, use
> BaseFont. IDENTITY_H.  With it, you're not even restricted to Unicode...
> though how you'd ask for a non-Unicode character using a Unicode-base
> java.lang.String is an interesting question.
>
> Anyway... use BaseFont.IDENTITY_H

Re: [iText-questions] Characters missing when using.pfm font

2010-06-23 Thread Mark Storer
That empty string parameter in your createFont call is, I'll wager
(yep), the desired encoding.  The default is code page 1252
(WinAnsiEncoding, whatever you want to call it).  It's a single-byte
encoding that was the default on MS OS's for years.

If you want access to every conceivable character in a font, use
BaseFont. IDENTITY_H.  With it, you're not even restricted to Unicode...
though how you'd ask for a non-Unicode character using a Unicode-base
java.lang.String is an interesting question.

Anyway... use BaseFont.IDENTITY_H.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer DisCard = null;
 

> -Original Message-
> From: Werner Aernouts [mailto:werner.aerno...@gmail.com]
> Sent: Wednesday, June 23, 2010 2:13 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Characters missing when using.pfm font
> 
> Dear,
> I am construction a font from a .pfm file as it says in the book, i.e.
> 
> font_normal_10 = new Font(
>
BaseFont.createFont("C:\\Windows\\Fonts\\Sun5.pfm","",BaseFont.EMBED
DE
> D),
> 10 );
> 
> When I add text using this font to the PDF, it works fine for most
> (ASCII) characters, but when I have special characters, like the euro
> sign (\u20AC) or eastern-european characters (\u00E7) they are missing
> from my text.
> 
> I have checked with Character Map, and these characters do seem to be
> included in the font, so I guess there is something wrong with the
> encoding of the font. I have experimented with some encodings but to
no
> avail.
> 
> In the same PDF I use the same characters without any problem with a
> Verdana TTF that I included as follows
> FontFactory.register("C:\\Windows\\Fonts\\verdana.TTF", "Verdana");
> font_verdana_10 = FontFactory.getFont("Verdana", "winansi", true, 10,
> Font.NORMAL);
> 
> Anyone any suggestions?
> 
> Best regards,
> Werner
> 
>

--
> 
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.829 / Virus Database: 271.1.1/2958 - Release Date:
06/23/10
> 04:11:00

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] SVG Salamander does not support "data" URI schemein SVG images?

2010-06-23 Thread Mark Storer
The "spam" is just our idiot firewall jumping to incorrect conclusions.

As for an SVG mailing list...

http://tinyurl.com/24mqb9a

It was trivially easy to find.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer DisCard = null;
 

> -Original Message-
> From: ndkevinr2 [mailto:ndkevi...@yahoo.com]
> Sent: Wednesday, June 23, 2010 11:27 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Spam: Re: [iText-questions] Spam: SVG Salamander does not
support
> "data" URI schemein SVG images?
> 
> 
> I asked my question here, because I did not find a forum or list for
SVG
> Salamander. Can you recommend the appropriate place for this question?
> 
> (Spam? Come on, man.)
> 
> --
> View this message in context: http://itext-
>
general.2136553.n4.nabble.com/SVG-Salamander-does-not-support-data-URI-
> scheme-in-SVG-images-tp2265911p2266014.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
>

--
> 
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.829 / Virus Database: 271.1.1/2958 - Release Date:
06/23/10
> 04:11:00

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] Characters missing when using.pfm font

2010-06-23 Thread Werner Aernouts
Dear,
I am construction a font from a .pfm file as it says in the book, i.e.

font_normal_10 = new Font( 
BaseFont.createFont("C:\\Windows\\Fonts\\Sun5.pfm","",BaseFont.EMBEDDED), 
10 );

When I add text using this font to the PDF, it works fine for most 
(ASCII) characters, but when I have special characters, like the euro 
sign (\u20AC) or eastern-european characters (\u00E7) they are missing 
from my text.

I have checked with Character Map, and these characters do seem to be 
included in the font, so I guess there is something wrong with the 
encoding of the font. I have experimented with some encodings but to no 
avail.

In the same PDF I use the same characters without any problem with a 
Verdana TTF that I included as follows
FontFactory.register("C:\\Windows\\Fonts\\verdana.TTF", "Verdana");
font_verdana_10 = FontFactory.getFont("Verdana", "winansi", true, 10, 
Font.NORMAL);

Anyone any suggestions?

Best regards,
Werner

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Spam: SVG Salamander does not support "data" URI schemein SVG images?

2010-06-23 Thread ndkevinr2

I asked my question here, because I did not find a forum or list for SVG
Salamander. Can you recommend the appropriate place for this question?

(Spam? Come on, man.)

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/SVG-Salamander-does-not-support-data-URI-scheme-in-SVG-images-tp2265911p2266014.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Spam: SVG Salamander does not support "data" URI schemein SVG images?

2010-06-23 Thread Mark Storer
I recommend you ask SVG-related questions on SVG-related lists.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer DisCard = null;
 

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] text in acrofield

2010-06-23 Thread lukasjob

You're the man!
I tried by setting the field font to curier and the size of the strings in
the fields are all equal, problem is the rest of the pdf template is Verdana
so I'm stuck to that, I'll look up the COMB property.
I'll let you know, thanks a lot, 
Luca.

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/text-in-acrofield-tp2265400p2265783.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] text in acrofield

2010-06-23 Thread 1T3XT info
lukasjob wrote:
> Hi everyone, I used a pdf template with a few AcroFields in my project, I
> have 3 AcroFields spanning the entire page one after the other containing
> some text, I need to justify the text to a fixed length, say if I want each
> line of text in the acrofield to be of size 150 characters.
> How can I do that?

Look up the COMB property. Would that solve your problem?
(Maybe, maybe not. The comb property is used for instance to
fill in bank account numbers on a document to wire money:
these forms have preprinted squares: 1 square per number.
If that's what you need, the COMB property is the answer.)

> I tried to justify the text with a function and then pass the strings to the
> fields but though I have 3 strings of the same size they are of different
> size in the final pdf.

That's normal if you're using a proportional font.
If the COMB property doesn't meet your requirement,
you should use a monospace font (e.g. Courier).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] text in acrofield

2010-06-23 Thread lukasjob

Hi everyone, I used a pdf template with a few AcroFields in my project, I
have 3 AcroFields spanning the entire page one after the other containing
some text, I need to justify the text to a fixed length, say if I want each
line of text in the acrofield to be of size 150 characters.
How can I do that?
Is it possible? 
I tried to justify the text with a function and then pass the strings to the
fields but though I have 3 strings of the same size they are of different
size in the final pdf.
Thanks, Luca.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/text-in-acrofield-tp2265400p2265400.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] how to change the height of a cell with itextin a RTF

2010-06-23 Thread christophe.isson
Hello

I'm using iText-Rtf-2.1.7
I'm workin on a RTf doc and not a PDF doc.
The setFixedHeight() function is not vailable with a RTf doc
Thank you for your answer

Christophe

Danila Galimov a écrit :
>
> Hello Christophe,
>
> In newer version of iText where is a method 
> com.itextpdf.text.pdf.PdfPCell#setFixedHeight, but I’m not sure if it 
> exists in the version you’re using.
>
> Danil Galimov
>
> Team Leader
>
> for eBusiness T-mobile UK
>
> Tel: +7 812 457-05-86 ex7504
>
> Cell: +7 911 927-33-64
>
> Fax: +7 812 327-98-65
>
> *From:* christophe.isson [mailto:christophe.is...@meteo.fr]
> *Sent:* Wednesday, June 23, 2010 5:54 PM
> *To:* Post all your questions about iText here
> *Subject:* [iText-questions] how to change the height of a cell with 
> itext in a RTF
>
> HHi,
>
> I'm trying to generate a table in an *RTF* document. I need to set the 
> *height*
> of the table being generated. But I haven't found any API to set the 
> *height*
> of an individual *cell*.
> i've tried this : cell.setLeading(0.1f)
>
>
> Can you please confirm if it is possible to set the *height* of a *cell*?
> I'd want to reduce the top and bottom empty spaces of a *cell* if it's 
> possible.
>
> I'm using com.lowagie.text.Table
>
>
> Thank you for your help,
>
> -- 
>
> Christophe ISSON
> METEO-FRANCE
> DCLIM/POC
> 42 avenue Gaspard Coriolis 31057 Toulouse cedex
> tel : 05 61 07 83 55
> Bureau : A223
>
> 
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> 
>
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


-- 

Christophe ISSON
METEO-FRANCE
DCLIM/POC
42 avenue Gaspard Coriolis 31057 Toulouse cedex
tel : 05 61 07 83 55
Bureau : A223


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] how to change the height of a cell with itext in a RTF

2010-06-23 Thread Danila Galimov
Hello Christophe,

In newer version of iText where is a method 
com.itextpdf.text.pdf.PdfPCell#setFixedHeight, but I'm not sure if it exists in 
the version you're using.

Danil Galimov
Team Leader
for eBusiness T-mobile UK
Tel: +7 812 457-05-86 ex7504
Cell: +7 911 927-33-64
Fax: +7 812 327-98-65

From: christophe.isson [mailto:christophe.is...@meteo.fr]
Sent: Wednesday, June 23, 2010 5:54 PM
To: Post all your questions about iText here
Subject: [iText-questions] how to change the height of a cell with itext in a 
RTF

HHi,

I'm trying to generate a table in an RTF document. I need to set the height
of the table being generated. But I haven't found any API to set the height
of an individual cell.
i've tried this : cell.setLeading(0.1f)


Can you please confirm if it is possible to set the height of a cell?
I'd want to reduce the top and bottom empty spaces of a cell if it's possible.

I'm using com.lowagie.text.Table


Thank you for your help,
--

Christophe ISSON
METEO-FRANCE
DCLIM/POC
42 avenue Gaspard Coriolis 31057 Toulouse cedex
tel : 05 61 07 83 55
Bureau : A223
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] how to change the height of a cell with itext in a RTF

2010-06-23 Thread christophe.isson

HHi,

I'm trying to generate a table in an *RTF* document. I need to set the 
*height*
of the table being generated. But I haven't found any API to set the 
*height*

of an individual *cell*.
i've tried this : cell.setLeading(0.1f)


Can you please confirm if it is possible to set the *height* of a *cell*?
I'd want to reduce the top and bottom empty spaces of a *cell* if it's 
possible.


I'm using com.lowagie.text.Table


Thank you for your help,
--

Christophe ISSON
METEO-FRANCE
DCLIM/POC
42 avenue Gaspard Coriolis 31057 Toulouse cedex
tel : 05 61 07 83 55
Bureau : A223

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] remove watermark layer

2010-06-23 Thread Jaakov Jalink
There is something wrong with the way I created the iText layers - I'll resolve 
it.
Thanks anyway.

 
 

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.





--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] [SPAM] Re: PAdES

2010-06-23 Thread mkl

Juraj,

Juraj Majer wrote:
> Do you know, if I need to change (extend) IText source code to implement
> PAdES Part 3 and Part 4? Or just use existing IText API (PdfSignature,
> PdfDictionary etc.) in some way like the guy in the sample I already
> stated:

After Leonard stated in this thread I experimented a bit, and indeed, it was
possible to add LTV-DSS data to a signed document using iText methods for
PDF manipulation, and Acrobat Reader used them. Admittedly, the iText
methods to use are low-level, but the public iText API sufficed.

If you are content with using the iText methods for external signature
container and signature dictionary creation, I'm inclined to think even
PAdES BES and EPES signatures and document timestamps can be applied to a
PDF document using merely the public iText API for PDF manipulation.

Otherwise I'm with Leonard when he states

Leonard Rosenthol-3 wrote:
> Yes, you would need to modify the source code.

Regards,   Michael.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PAdES-tp2262622p2265429.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] remove watermark layer

2010-06-23 Thread Jaakov Jalink
PDF version 1.4 - file attached

-Original Message-
From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: Wednesday, June 23, 2010 12:35 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] remove watermark layer

What PDF are you using?

Paulo 

-Original Message-
From: jjalink [mailto:jaak...@syneron.com] 
Sent: Wednesday, June 23, 2010 9:25 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] remove watermark layer


I narrowed it down to 4 code lines, and it still throws a
NullPointerException on close line.
if i remove the Map line, i just get a copy of the inFile.

PdfReader reader = new PdfReader(inFile);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(outFile));
Map layers = stamper.getPdfLayers();
stamper.close();

Any idea why i get exception - or better yet, how to make it work???



Aviso Legal:

Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter 
informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o desta 
mensagem n?o significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de 
usar, revelar ou distribuir qualquer parte desta mensagem. 



Disclaimer:

This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.




 
 

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.








This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.






test.pdf
Description: test.pdf
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] remove watermark layer

2010-06-23 Thread Paulo Soares
What PDF are you using?

Paulo 

-Original Message-
From: jjalink [mailto:jaak...@syneron.com] 
Sent: Wednesday, June 23, 2010 9:25 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] remove watermark layer


I narrowed it down to 4 code lines, and it still throws a
NullPointerException on close line.
if i remove the Map line, i just get a copy of the inFile.

PdfReader reader = new PdfReader(inFile);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(outFile));
Map layers = stamper.getPdfLayers();
stamper.close();

Any idea why i get exception - or better yet, how to make it work???



Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] remove watermark layer

2010-06-23 Thread jjalink

I narrowed it down to 4 code lines, and it still throws a
NullPointerException on close line.
if i remove the Map line, i just get a copy of the inFile.

PdfReader reader = new PdfReader(inFile);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(outFile));
Map layers = stamper.getPdfLayers();
stamper.close();

Any idea why i get exception - or better yet, how to make it work???

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/remove-watermark-layer-tp2264258p2265265.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Hanging indentation in RTF

2010-06-23 Thread user7474


Mark Hall-6 wrote:
> 
> Support for the firstLineIndent property in the Paragraph object has been 
> added to the RtfWriter2. This means that using setIndentationLeft and 
> setFirstIndentation you can produce paragraphs that look like this:
> 
> aaa
>   aa
>   aa
> 

Hanging tabs / Hanging indent works with itext-rtf. But you have to use
negative values for indent.
You have to use it like this:

para.setIndentationLeft(100f);
para.setFirstLineIndent(-100f);



-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Hanging-tabs-in-RTF-tp2148593p2265239.html
Sent from the iText - General mailing list archive at Nabble.com.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/