Re: [iText-questions] finding the position of the end of text in a PDF.

2010-03-18 Thread mister bean

You want to re-flow a PDF document. That can't be done. Not in iText, not
with other tools. 

The closest you can come to what you're asking for is deleting blank pages.
But moving existing text and elements to new locations is not possible. 

---mr. bean



pcole wrote:
 
 Hi
 
 I'm trying to remove the blank section on the end of a pdf I'm reading in
 so that when I display it on the screen the blank section of the existing
 pdf will not be shown.
 
 for example if my document is printed on two pages and one page is half
 full of text how do i find out in code that the second page is only half
 full?
 
 Thanks
 
 Paul
 

-- 
View this message in context: 
http://old.nabble.com/finding-the-position-of-the-end-of-text-in-a-PDF.-tp27947477p27950850.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] space between 2 images

2010-03-15 Thread mister bean

Did you try adding a blank line between the images? Add immage, add blank
line, add image, etc. 

Plenty of examples in the book. From your other posts, you seem very
concerned about measuring position, etc. If it's to solve this problem,
you're doing it wrong. Add the content to ColumnText the way you want it to
appear. 

There are many examples in the two books.

---mr. bean


Neha Yadav wrote:
 
 Hi,
   I have stamped 4 images using column text but there is no space between
 2 images of one column. Would you please tell me that how can i get that
 space.
  Thanks
 

-- 
View this message in context: 
http://old.nabble.com/space-between-2-images-tp27874738p27913590.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] iTextSharp UNICODE problem???

2010-03-01 Thread mister bean

I had problems with IDENTITY-H encoding working correctly when I was using a
PDF reader other than Adobe Reader. So, if you're not using Adobe Reader
9.x, I suggest you get it and use it to view your PDFs. This might solve the
problem.

---mr. bean


chriskaza81 wrote:
 
 
   i have  a really problem  with iTextSharp DLL  , i try to write unicode
 (greek)  c#.net   my part of   code is below:
  The problem is when i write to pdf Greek   it appears blank  (nothing
 happens)  i tryed many code samples from forums  but no result.
 please help if possible
 
  
 
  pdf.BaseFont STF_Helvetica_Greek =
 iTextSharp.text.pdf.BaseFont.CreateFont(Helvetica, Cp1253,
 iTextSharp.text.pdf.BaseFont.NOT_EMBEDDED);
 
  iTextSharp.text.Font fontNormal = new
 iTextSharp.text.Font(STF_Helvetica_Greek, 12,
 iTextSharp.text.Font.NORMAL);
 
 
 
 pdfFormFields.SetFieldProperty(FirstName, txtFirstName.Text, fontNormal,
 null);
  pdfFormFields.SetField(FirstName, txtFirstName.Text);
 

-- 
View this message in context: 
http://old.nabble.com/iTextSharp-UNICODE-problemtp27744354p27752067.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Licensing questions

2010-02-16 Thread mister bean

Markus:

Thanks for your note. To respond:

1) The change in license was posted on this list. In fact, several messages
warned of its upcoming change. And the license change has been discussed
several times since it was made in December. If you go to the 1t3xt.com
website, where iText has been located for several years, the first thing you
see is: 
iText PDF AGPL Java-PDF library If you go to lowagie.com and click on
iText Home Page, you see the same thing. For most users, having the AGPL
aspect highlighted and bold as the first line of text on the project's home
page is pretty clear. Nothing hidden or shady as you call it. It's all
been out in the open. 

2) There is no indication of the price of the license on the website. All
you need to do is send a request to sa...@itextsoftware.com. That's the
commercial arm for iText. This too has been posted several times on the
mailing list. 

3)  iText is putting itself in direct competition with e.g. PDFlib (=
www.pdflib.com), which can be 
had transparently for about $1,100 (server license) and has lots of
additional features. iText competes with all PDF libraries, open source and
commercial. It offers advantages and benefits not found in the other
libraries. PDFlib is not free (except for evaluation, personal, and academic
use) and not open source. Feel free to choose PDFlib if it better suits your
purposes.

4) Lack of response from the developers: You and I exchanged emails on 14
October 2009 about your project. I contacted Bruno on your behalf and
personally mailed you his reply. I then gave you a list of possibly
interested freelancers. Your last email was to thank me for this help. I am
not sure why you think that the developers of an OSS library are obliged to
accept your offers to pay them for development of features you want. But you
certainly cannot say that you did not receive any response. You did. I have
the emails.

5) Of course, the developers accept patches. Patches are submitted all the
time as are requests and fixes. These are copiously documented in the change
lists of each release.

Feel free to post other concerns.

---A. Binstock / for itextsofware.com

 re 


Markus Meyer wrote:
 
 Am 16.02.2010 20:04, schrieb Brett Neumeier:
 Yes, absolutely!! My question, in my previous email and in this one,
 is: what is the text in the AGPL that causes it to operate in the way
 that you assert that it does?


 Moreover, there are some more points to consider.
 
 First, it seems that the license switch to AGPL (i.e. a viral license) 
 was made very silent. I have used iText a lot over the last years and 
 although I always tried to update to the latest version and often 
 visited the iText website I did not notice the license change until I 
 read this mailing list thread (note that this itself is accidentially, I 
 just happened to be subscribed to the mailing list at the moment because 
 I submitted a patch some weeks ago and never got around to unsubscribe 
 after no one bothered to even answer my patch submission). I just 
 downloaded iText-src-2.1.7.zip to verify it still is LGPL (since that's 
 what we're using at the moment) and, guess what, it does not even 
 contain a LICENSE.TXT or something at all! I also downloaded 
 iText-src-5.0.1.zip and it does not contain any licensing information 
 either. So all of this is very shady.
 
 
 Second, I had tried to contact the iText developers in the past about 
 adding some functionality to iText and requested an offer. My experience 
 was really disappointing. Although I emailed with some persons several 
 times I never really got a quote. Infact, although I specifically 
 requested it, I never got an actual email of Bruno Lowagie (who seems to 
 be the mastermind of iText after all). So I'm not sure whether iText 
 BVBA (or iText Software Corp. or whatever it's called now) will live up 
 to their own new expectations of being a commercial software company. 
 There is also no indication on the website about the price of the 
 commercial license. With this license change, iText is putting itself 
 in direct competition with e.g. PDFlib (= www.pdflib.com), which can be 
 had transparently for about $1,100 (server license) and has lots of 
 additional features.
 
 Third, I don't know about the development process of iText, but did the 
 iText developers accept any patches from any third party? If yes, have 
 all third parties agreed to the license change? If not, on what grounds 
 can the license change be performed?
 
 All in all, it seems to me that someone is in desperate need of money 
 here but did not think about the consequences.
 
 
 Markus
 
 
 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 iText-questions mailing list
 

Re: [iText-questions] Can we use iText to convert frame maker docs to PDF files

2010-01-29 Thread mister bean

You're right: it goes through Distiller. So FM-Postscript-Distiller-PDF.
However, if you have Distiller on your system, FM finds it and converts the
file to PDF automatically.

 Distiller is NOT licensed for use on a server.

It depends on the version. Adobe Distiller Server 8 is sold by Adobe and is
just that--a version of Distiller running on a server that automatically
converts .ps files to PDF. See: http://www.adobe.com/products/acrdis/. I
just checked with Adobe corporate sales and they still sell it.

---mr. bean



Leonard Rosenthol-3 wrote:
 
 Actually, FrameMaker can NOT generate PDF files directly.  It produces
 Postscript and then feeds that to Distiller.   Distiller is NOT licensed
 for use on a server, thus you cannot install FrameMaker + Distiller on the
 server for PDF creation.
 
 -Original Message-
 From: mister bean [mailto:abinst...@pacificdataworks.com] 
 Sent: Thursday, January 28, 2010 6:42 PM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Can we use iText to convert frame maker
 docs to PDF files
 
 
 One other option is Framemaker itself, which can generate PDF files
 directly.
 
 ---mr. bean 
 
 
 Leonard Rosenthol-3 wrote:
 
 No, you cannot - at least not by itself.   You could, of course, write
 the
 code to parse the .fm files (and/or .mif files, which are MUCH easier)
 and
 then use iText to layout/format the content into PDF.   Of course, iText
 doesn't support all of the features of FM - so you may need to either
 drop
 things are simulate them.
 
 The only tool available for server-side conversion of Framemaker-PDF is
 Adobe LiveCycle PDF Generator.  Works great!
 
 Leonard
 
 -Original Message-
 From: Venugopala [mailto:venugopal...@tcs.com] 
 Sent: Thursday, January 28, 2010 7:59 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Can we use iText to convert frame maker docs
 to
 PDF files
 
 
 Hello Everyone,
 
 How to convert frame maker docs to PDF files along with the book marks
 generation.
 
 If any one has worked on this, please help me out how can we go ahead
 with
 this .
 what are the tools are available to convert frame maker docs to pdf
 files.
 I came to know that we can iTExt  to convert docs to pdf files but it
 accepts input only xml or database.
 In our project , we are not using the database and its stand alone
 application ... to convert frame maker files to xml is diffculty and
 seems
 extra work...
 
 So, are there any other tools that can convert frame maker docs to the
 pdf...
 
 Looking for reply with a lot of hope.
 
 Thanks
 Venugopala.
 -- 
 View this message in context:
 http://old.nabble.com/Can-we-use-iText-to-convert-frame-maker-docs-to-PDF-files-tp27355498p27355498.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call
 away.
 http://p.sf.net/sfu/theplanet-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call
 away.
 http://p.sf.net/sfu/theplanet-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 
 
 -- 
 View this message in context:
 http://old.nabble.com/Can-we-use-iText-to-convert-frame-maker-docs-to-PDF-files-tp27355498p27365175.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts

Re: [iText-questions] Can we use iText to convert frame maker docs to PDF files

2010-01-28 Thread mister bean

One other option is Framemaker itself, which can generate PDF files directly.

---mr. bean 


Leonard Rosenthol-3 wrote:
 
 No, you cannot - at least not by itself.   You could, of course, write the
 code to parse the .fm files (and/or .mif files, which are MUCH easier) and
 then use iText to layout/format the content into PDF.   Of course, iText
 doesn't support all of the features of FM - so you may need to either drop
 things are simulate them.
 
 The only tool available for server-side conversion of Framemaker-PDF is
 Adobe LiveCycle PDF Generator.  Works great!
 
 Leonard
 
 -Original Message-
 From: Venugopala [mailto:venugopal...@tcs.com] 
 Sent: Thursday, January 28, 2010 7:59 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Can we use iText to convert frame maker docs to
 PDF files
 
 
 Hello Everyone,
 
 How to convert frame maker docs to PDF files along with the book marks
 generation.
 
 If any one has worked on this, please help me out how can we go ahead with
 this .
 what are the tools are available to convert frame maker docs to pdf files.
 I came to know that we can iTExt  to convert docs to pdf files but it
 accepts input only xml or database.
 In our project , we are not using the database and its stand alone
 application ... to convert frame maker files to xml is diffculty and seems
 extra work...
 
 So, are there any other tools that can convert frame maker docs to the
 pdf...
 
 Looking for reply with a lot of hope.
 
 Thanks
 Venugopala.
 -- 
 View this message in context:
 http://old.nabble.com/Can-we-use-iText-to-convert-frame-maker-docs-to-PDF-files-tp27355498p27355498.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the
 business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://old.nabble.com/Can-we-use-iText-to-convert-frame-maker-docs-to-PDF-files-tp27355498p27365175.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Knowing the Correct Font Encoding for FontFactory.getFont()

2010-01-23 Thread mister bean

Thanks, Paulo.

Is there any way to tell programatically whether a font is a symbolic font
and/or a Unicode font? 

Thanks,

---Andrew


Paulo Soares-3 wrote:
 
 It should work with BaseFont.IDENTITY-H in all cases unless it's a
 symbolic font and you're trying to use chars above \u00ff or it's not an
 Unicode font. Looking at the font would help.
 
 Paulo 
 
 -Original Message-
 From: mister bean [mailto:abinst...@pacificdataworks.com] 
 Sent: Friday, January 22, 2010 9:29 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Knowing the Correct Font Encoding 
 for FontFactory.getFont()
 
 
 I have several .otf fonts that have this property:  If I use
 FontFacotry.getFont() with encoding BaseFont.IDENTITY-H to 
 use them, I get
 no exception, but nothing prints in the PDF (it's blank). 
 
 However, if I change the encoding to BaseFont.WINANSI, the 
 text prints fine
 (and uses the font). 
 
 How can I tell which encoding to specify when calling 
 FontFactory.getFont()?
 
 Thanks in advance,
 
 ---Andrew Binstock
 
 
 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.
 
 
 
 
 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established
 companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://old.nabble.com/Knowing-the-Correct-Font-Encoding-for-FontFactory.getFont%28%29-tp27270603p27285745.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Knowing the Correct Font Encoding for FontFactory.getFont()

2010-01-22 Thread mister bean

I have several .otf fonts that have this property:  If I use
FontFacotry.getFont() with encoding BaseFont.IDENTITY-H to use them, I get
no exception, but nothing prints in the PDF (it's blank). 

However, if I change the encoding to BaseFont.WINANSI, the text prints fine
(and uses the font). 

How can I tell which encoding to specify when calling FontFactory.getFont()?

Thanks in advance,

---Andrew Binstock

-- 
View this message in context: 
http://old.nabble.com/Knowing-the-Correct-Font-Encoding-for-FontFactory.getFont%28%29-tp27270603p27270603.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] pdf pagesize

2009-12-22 Thread mister bean

You need to read the documentation. 1 inch = 72 points, so 25.4mm = 72
points. I trust you can handle the remaining arithmetic. Good luck.

---mr. bean


Lord Goosfancito wrote:
 
 Hello,
 
 in my pdf acrobat one pdf file say (in milimeters) 749.7 x 449.8 mm, in
 itextsharp say in points, 
 how i do to itextsharp say in milimeters and not in points?.-
 
 thank´s
 
 sorry for my english 
 
 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and
 easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev 
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://old.nabble.com/pdf-pagesize-tp26870493p26885077.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Table lines appearing bold sometimes

2009-12-17 Thread mister bean

To perhaps extend Bruno's point: When I look at the problem PDF you posted in
PDFxchange Viewer (a free PDF viewer that permits annotation of PDFs from
www.docu-track.com), the lines all look the same. There are no bold and
non-bold lines.

Regards,

---mr. bean

 re 


ennidhi wrote:
 
 Your problem is a non-issue
 caused by something called resolution and device space.
 Is there a way to address this problem using iText? or else is it ok to
 display like this?
 
 Thanks
 
 
 
 1T3XT info wrote:
 
 ennidhi wrote:
 I Have tried using this method. Its good but problem is that
 width(thickness
 of the line) cannot be set. Again we have to go for setwidth***() method
 to
 set the thickness.
 
 There's a general setWidth() method you can use in combination with 
 setBorder(). Anyway: that's irrelevant. Your problem is a non-issue
 caused by something called resolution and device space.
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and
 easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev 
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Table-lines-appearing-bold-sometimes-tp26812407p26840129.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] PDf Table of Content

2009-12-03 Thread mister bean

Have you tried the example shown on pp 443-4 of the book? If so, what problem
did you encounter? 

--mr. bean


Gopinath_A wrote:
 
 Hi 
   Can any help me to create a Table of Content with Page number on the
 right side of each chapter tat we have in our pdf document...
 
 Example : 
  Expected output:
  IndexP.no.
  1) Chapter 1
 1.1 Lesson10
 1.2 Lesson15
 1.3 Lesson20
 1.4 Lesson25
 1.5 Lesson30
 
 
 I have generated my pdf with lot of pages in it can u help me to create
 TOC using tat Pdf
 
 With Regards
 
 Gopinath
 

-- 
View this message in context: 
http://old.nabble.com/PDf-Table-of-Content-tp26635782p26635793.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] RTF - problem in cross references

2009-11-18 Thread mister bean

Alain:

1) What Howard means is that there is no iText roadmap *for RTF*. This is
because RTF functionality is about to be moved out of iText. See several
recent posts on this list regarding this move.

2) You could try generating an internal link in MS Word, saving as RTF, and
examining the generated RTF. That's a good place to start for a
do-it-yourself solution.

Good luck,

---mr. bean


Howard Shank wrote:
 
 If you are talking about in file bookmarks where you can click on them and
 jump to that section, then this feature just isn't implemented. You might
 overcome this by writing your own direct RTF content, but I do not have an
 example of how to accomplish this.
 
 There is no iText roadmap defined at this time.
 
 Regards,
 Howard Shank
 
 
 
 - Original Message 
 From: amarchan amarc...@matrox.com
 To: itext-questions@lists.sourceforge.net
 Sent: Tue, November 17, 2009 5:28:56 PM
 Subject: Re: [iText-questions] RTF - problem in cross references
 
 Hi Mark,
 
 On many posting I read that internal links are not supported in RtfWriter2
 but
 could not find any explanation why. Is this a limitation imposed by the
 RTF
 definition? If not is this feature planed on the road map? 
 
 Thanks,
 
 Alain
 
 
 
 
 
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 
 
   
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://old.nabble.com/RTF---problem-in-cross-references-tp16297700p26407660.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Problem in nesting of lists in RTF?

2009-11-16 Thread mister bean

iText is about to move the RTF functionality to an incubator and deprecate
this functionality. Unless someone can provide the answer on this list (and
even if they do), you might want to consider other options for RTF
generation.

Best wishes,

---mr. bean

 re 



Chris von See wrote:
 
 I think I've found a problem with nesting of lists in RTF.  Running  
 the program below with PDF output produces nested lists three levels  
 deep with all sub-lists nested properly.  However, if you run the same  
 code with RTF output the third level of lists does not show as being  
 indented, although the numbering seems correct.  Is there something  
 that needs to be done differently for RTF?
 
 Thanks,
 Chris
 
 Test program:
 
 import java.io.FileOutputStream;
 import java.io.IOException;
 
 import com.lowagie.text.Chunk;
 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.List;
 import com.lowagie.text.ListItem;
 import com.lowagie.text.pdf.PdfWriter;
 import com.lowagie.text.rtf.RtfWriter2;
 
 
 public class TestList {
 
  public static void main(String[] args) throws IOException,  
 DocumentException {
  Document document = new Document();
  RtfWriter2.getInstance(document, new  
 FileOutputStream(testlist.rtf));
 //PdfWriter.getInstance(document, new  
 FileOutputStream(testlist.pdf));
  document.open();
  List list1 = new List(List.ALPHABETICAL, 20);
  list1.add(new ListItem(new Chunk(Level 1 - Item 1)));
  list1.add(new ListItem(new Chunk(Level 1 - Item 2)));
  list1.add(new ListItem(new Chunk(Level 1 - Item 3)));
 
  List list2 = new List(List.ORDERED, 20);
  list2.add(new ListItem(new Chunk(Level 2 - Item 1)));
  list2.add(new ListItem(new Chunk(Level 2 - Item 2)));
 
  List list3 = new List(List.ORDERED, 20);
  list3.add(new ListItem(new Chunk(Level 3 - Item 1)));
  list3.add(new ListItem(new Chunk(Level 3 - Item 2)));
  list3.add(new ListItem(new Chunk(Level 3 - Item 3)));
  list3.add(new ListItem(new Chunk(Level 3 - Item 4)));
  list2.add(list3);
 
  //list2.add(new ListItem(new Chunk(Level 2 - Item 3)));
  list1.add(list2);
 
  list1.add(new ListItem(new Chunk(Level 1 - Item 4)));
 
  document.add(list1);
  document.close();
  }
 }
 
 PDF output:
 
 
 
 RTF output:
 
 
 
 
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://old.nabble.com/Problem-in-nesting-of-lists-in-RTF--tp26379399p26379918.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Problem in nesting of lists in RTF?

2009-11-16 Thread mister bean

Per Bruno's earlier post to this list, iText is moving to PDF-only for
output. The incubator is for related projects that developers might want to
use in conjunction with iText. Whether that means they're dead or alive will
depend, I am sure, on the authors of the various packages. 

If Howard Shenk is reading the list, he might be able to tell you/us
directly what involvement he anticipates regarding maintenance and
development of the RTF package.

Regards,

---mr. bean



Chris von See wrote:
 
 Well, that wasn't quite the answer I had hoped for :/
 
 Will iText RTF support emerge from the incubator at some point in the  
 future? or is this a death by incubation scenario?
 
 Chris
 
 
 On Nov 16, 2009, at 2:37 PM, mister bean wrote:
 

 iText is about to move the RTF functionality to an incubator and  
 deprecate
 this functionality. Unless someone can provide the answer on this  
 list (and
 even if they do), you might want to consider other options for RTF
 generation.

 Best wishes,

 ---mr. bean

 re 



 Chris von See wrote:

 I think I've found a problem with nesting of lists in RTF.  Running
 the program below with PDF output produces nested lists three levels
 deep with all sub-lists nested properly.  However, if you run the  
 same
 code with RTF output the third level of lists does not show as being
 indented, although the numbering seems correct.  Is there something
 that needs to be done differently for RTF?

 Thanks,
 Chris

 Test program:

 import java.io.FileOutputStream;
 import java.io.IOException;

 import com.lowagie.text.Chunk;
 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.List;
 import com.lowagie.text.ListItem;
 import com.lowagie.text.pdf.PdfWriter;
 import com.lowagie.text.rtf.RtfWriter2;


 public class TestList {

 public static void main(String[] args) throws IOException,
 DocumentException {
 Document document = new Document();
 RtfWriter2.getInstance(document, new
 FileOutputStream(testlist.rtf));
 //PdfWriter.getInstance(document, new
 FileOutputStream(testlist.pdf));
 document.open();
 List list1 = new List(List.ALPHABETICAL, 20);
 list1.add(new ListItem(new Chunk(Level 1 - Item 1)));
 list1.add(new ListItem(new Chunk(Level 1 - Item 2)));
 list1.add(new ListItem(new Chunk(Level 1 - Item 3)));

 List list2 = new List(List.ORDERED, 20);
 list2.add(new ListItem(new Chunk(Level 2 - Item 1)));
 list2.add(new ListItem(new Chunk(Level 2 - Item 2)));

 List list3 = new List(List.ORDERED, 20);
 list3.add(new ListItem(new Chunk(Level 3 - Item 1)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 2)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 3)));
 list3.add(new ListItem(new Chunk(Level 3 - Item 4)));
 list2.add(list3);

 //list2.add(new ListItem(new Chunk(Level 2 - Item 3)));
 list1.add(list2);

 list1.add(new ListItem(new Chunk(Level 1 - Item 4)));

 document.add(list1);
 document.close();
 }
 }

 PDF output:



 RTF output:





 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment -  
 and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/


 -- 
 View this message in context:
 http://old.nabble.com/Problem-in-nesting-of-lists-in-RTF--tp26379399p26379918.html
 Sent from the iText - General mailing list archive at Nabble.com.


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
 30-Day
 trial. Simplify your report design, integration and deployment - and  
 focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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] can i convert rtf to pdf with iText?

2009-10-24 Thread mister bean

No. iText does not do this. 

---mr. bean


Meir Yanovich-2 wrote:
 
 Hello all
 im new to itext , here is my case . i have rtf file and i need to convert
 it
 programmaticly to pdf
 the rtf contains numbers bullets and bold and underline text , are there
 any
 good examples or tutorials that shows
 how can i do this ?
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/can-i-convert-rtf-to-pdf-with-iText--tp26039257p26039629.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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 set the page number of a specific page?

2009-10-24 Thread mister bean

What's the problem with keeping track of page numbers in your own variable
and printing that? 

---mr. bean


Sorin Marti wrote:
 
 Hi all
 
 I have a generated document where I like to have a table of contents
 with page links.
 This works fine when i generate the toc as last page and then reorder
 the pages, shifting the last page (toc) to the second (page after
 title page).
 
 Right after creating the document and getting the writer instance i
 set the page Event
 
 writer.setPageEvent(new MyHeaderFooter(various unrelated params);
 
 In the MyHeaderFooter class I override the onEndPage method.
 
 public void onEndPage(final PdfWriter writer, final Document document) {
   // code to print header and footer
   if(printPageNumber) {
   // I print out the page number here
   }
 }
 
 In the printed document i see the page numbers as following:
 
 1
 [number of last page]
 3
 4
 [and so on to last page]
 
 I would like now to change the [number of last page] to 2, so I can
 print it. I helped myself with just not printing the page number on
 the page by setting a member variable in MyHeaderFooter before
 printing the toc at the end...
 But i really would like to print the number if possible.
 
 So: How can I set a page number to a specific page?
 
 Thanks for any hint
Sorin
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-the-page-number-of-a-specific-page--tp25996848p26039662.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Strange Java problem

2009-10-18 Thread mister bean

It's a classpath error that seems to emanate from your com.xxx.pdf... app in
its call to iText. Looking at your classpath, I see that you're linking to
itext.jar, which is not a standard name for an iText jar. 

Check your classpath. Netbeans can generate an Ant file to run your app.
Look at its classpath and compare it with yours. 

Technically speaking, this is a Java question, not an iText question, and
you probably won't get much more help on it from this mailing list.

Good luck,

---mr. bean

 re 


Tanco wrote:
 
 Hello,
 
 I have a project for which I choose to use itext for generating pdfs,
 on a web page, which is pdf you select some data, press the generate
 button,
 
 and the php calls a java application with some parameters which generates
 the pdf,
 so since the pdf makes a system call the two parts are not explicitly
 linked,
 I made the java project, and in my IDE netbeans it works fine,
 however when I run it in the console it crashes in a strange way...
 
 here is the output..
 
 
 
 root# java -classpath
 .:jars/commons-httpclient-3.1.jar:jars/geoIP.jar:jars/iText.jar:jars/jCharts-0.6.0.jar:jars/jFreeChart.jar:jars/nanoxml-lite-2.2.3.jar:jars/servlet.jar:jars/taskapi.jar
 com.secpoint.pdf.Main 3990.log 3991.log
 [ModelConverter] Could not handle line: SecPoint(R) Penetrator Audit
 Engine:
 7.1.3.1
 [ModelConverter] Could not handle line: Checks:
 [StreamConverter] Opening PDF file
 
 Exception in thread main java.lang.NoSuchMethodError:
 com.lowagie.text.List.init(ZF)V
 at
 com.xxx.pdf.reportpages.Vulnerabilities.addList(Vulnerabilities.java:174)
 at
 com.xxx.pdf.reportpages.Vulnerabilities.addVulnerabilities(Vulnerabilities.java:165)
 at
 com.xxx.pdf.reportpages.Vulnerabilities.addVulnerabilities(Vulnerabilities.java:149)
 at
 com.xxx.pdf.reportpages.Vulnerabilities.init(Vulnerabilities.java:49)
 at com.xxx.pdf.ReportDocument.writePages(ReportDocument.java:149)
 at com.xxx.pdf.ReportDocument.write(ReportDocument.java:105)
 at com.xxx.pdf.Main.main(Main.java:52)
 root#
 
 
 any thoughts
 Tancho
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Strange-Java-problem-tp25945918p25953116.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Nested Paragraph Indentation

2009-10-13 Thread mister bean

OK so you have arbitrarily long chunks of text that are preceded by a heading
and you need to have the heading and the text kept together on the same
page. And where several chunks would fit on a page you'd like them to flow
together nicely to give the appearance of a single document. This can be
done.

ColumnText is your friend. Think of a column as text box (of any size)--this
will facilitate conceptualizing the solution.

You always know the coordinates of the first box (ColumnText), since it
appears on the first page. Make it the length of your page (less margins)
and fill it with your first heading and data and find out how much space it
takes. (Get the y coordinate of the last line.) Place another Column Text
below this (as you now have the coordinates) and fill it with the heading
and text of the second section and see if it fits on the page (as explained
in the book.) If it doesn't, move it to the next page. If it does fit, write
it out, get the new y-coordinate, and continue like this section by section
until you've output all your material.

It might help to know that ColumnText instances can overlap, so placing your
second Column Text over the unfilled portion of your original full-page
ColumnText is not a problem. 

Good luck!

---mr. bean



digerata-3 wrote:
 
 On Oct 12, 2009, at 3:00 PM, mister bean wrote:
 

 If you're trying to locate paragraphs exactly and keep the content  
 together,
 tables or whatever you might mean by nested paragraphs are not the  
 right way
 to do it.

 Use ColumnText, which allows you to place text anywhere and has  
 specific
 provisions for keeping lines together. This is discussed in Chapter  
 7 of the
 book.

 If you mean something else by nested paragraphs, please explain what  
 you
 mean.

 ---mr. bean
 
 It is for resume output.  So given the following:
 
 Arbitrary text content as a paragraph
 
 Arbitrary text content as a paragraph
 
 Section 1 Title
 --
Section Entry 1 Title
Section Entry 1 Description with multiple, unknown number of  
 lines of text
 
Section Entry 2 Title
Section Entry 2 Description with multiple, unknown number of  
 lines of text
 
Section Entry 3 Title
Section Entry 3 Description with multiple, unknown number of  
 lines of text
 
 Section 2 Title
 --
Section Entry 1 Title
Section Entry 1 Description with multiple, unknown number of  
 lines of text
 
Section Entry 2 Title
Section Entry 2 Description with multiple, unknown number of  
 lines of text
 
Section Entry 3 Title
Section Entry 3 Description with multiple, unknown number of  
 lines of text
 
 Follow the rules:
 
 - Arbitrary paragraph content can break anywhere
 - No part of any section entry can break across pages
 - If the first entry of a section would not print on the same page as  
 the section title block, then break before the section title block.
 
 The tricky part is the last rule.  I am currently creating each  
 section title as its own paragraph.  Then the first section entry is  
 being added as a child paragraph.  The remaining section entries are  
 added as independent paragraphs on their own.  This all works well  
 until the indentation comes in, the first section entry is not indented.
 
 The problem I see with ColumnText is that it requires coordinates.   
 I'm dealing with arbitrary text and don't have any coordinates.   
 Depending on the arbitrary text before the section, the column could  
 start anywhere on the page.  Any ideas?
 
 Thanks a ton for chiming in, Mr. Bean!
 
 -Mike
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Nested-Paragraph-Indentation-tp25858404p25868353.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12

Re: [iText-questions] Nested Paragraph Indentation

2009-10-12 Thread mister bean

If you're trying to locate paragraphs exactly and keep the content together,
tables or whatever you might mean by nested paragraphs are not the right way
to do it.

Use ColumnText, which allows you to place text anywhere and has specific
provisions for keeping lines together. This is discussed in Chapter 7 of the
book. 

If you mean something else by nested paragraphs, please explain what you
mean.

---mr. bean


digerata-3 wrote:
 
 Hello All,
 
 I have a question about indentation of nested paragraphs.  I have a  
 document that has very careful placement of sections of text.  I use  
 nested paragraphs to do this with the parent paragraph having  
 setKeepTogether(true).
 
 The problem is that I need to indent the child paragraphs and itext  
 doesn't respect setIndentationLeft() on child paragraphs.
 
 It was never acknowledged in the search results I found if this was a  
 bug or correct functionality.  Is this something that can be fixed or  
 changed?  Is there a workaround?
 
 Thanks,
 
 -Mike
 
 Mike Wille | Flowz
 mike.wi...@flowz.com | http://support.flowz.com
 http://flowz.com
 p: 248.614.2500
 c: 248.961.7537
 3290 West Big Beaver, Suite 310 Troy, MI 48084
 
 
 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay 
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Nested-Paragraph-Indentation-tp25858404p25861183.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Cell Alignment

2009-09-18 Thread mister bean

Kumar:

Even with the suggested solution, your table is not going to work very well.
For example, setWidths() does not work the way you're using it. Secondly,
why are you using a command that sets the alignment for all cells to right,
and then setting individual cells to right? 

I am fairly sure this is what Paulo meant when he said you need to repost
this question. He's right. You have not understood how tables are created.
Start by studying chapter 6 in the book.

---mr. bean


Thilip Kumar S wrote:
 
 Hi
  
   Im trying to generate the PDF with 3 column. My requirement is , I
 need to have 3 columns in report, Say Cust Name, Account No, Paid
 Amount. 
  
 In this case, the first 2 cells should be aligned left, the 3rd one
 should be aligned right , as its a numeric value. 
  
 Im trying like the below.,
  
PdfPTable pTable = new PdfPTable(3);
pTable.setWidthPercentage(100);
pTable.setWidths(new float[] {0,80,20});
pTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT); 
pTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
Phrase p1 = new Phrase(arr[0],colFont);
Phrase p2 = new Phrase(arr[4],colFont);

PdfPCell pcell = new PdfPCell();
pcell.setBorderWidth(0);
pcell.setHorizontalAlignment(Element.ALIGN_RIGHT);
pcell.setBorder(Rectangle.NO_BORDER);
pcell.disableBorderSide(PdfPCell.BOTTOM);
pTable.addCell(pcell);

  
pTable.addCell(p1);
pTable.addCell(p2);
pTable.addCell();

  
  
 getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT) will align
 the whole table in to right. But im my case , the Phrase p1 alone should
 be aligned RIGHT.
  
 Can anyone help me.
  
 Thanks in Advance
  
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Cell-Alignment-tp25504786p25505623.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Where am I in the text I am writing out?

2009-09-03 Thread mister bean

Established that there is no way to do this. However, BL suggests using the
.go() method with the addition of every element, so that its effect on the
column of the addition of each element can be determined. This solves most
of the need to know where the column breaks.

---mr. bean


mister bean wrote:
 
 Suppose I am using ColumnText to output text, and the go() method
 indicates that there is more text to print (so, I've filled the current
 column), is there any way of knowing where I am currently in the text to
 be output? 
 
 In other words, is there any way I can tell what the last text output in
 the filled column was or what the first text item in the new column will
 be?
 
 Thanks in advance.
 
 ---mr. bean
 

-- 
View this message in context: 
http://www.nabble.com/Where-am-I-in-the-text-I-am-writing-out--tp25234404p25286275.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Question about iText

2009-09-03 Thread mister bean

iText to generate data-based PDFs, such as reports, you provide the data. So,
you extract it from Access and pass it to iText. iText does not extract the
data for you.  


Valerie Butts wrote:
 
 Hello,
 
  
 
 I would like to know if iText would work with a Microsoft Access
 application.  I would like to take data entered into various tables of a
 database and fill in existing pdf documents.  iText was recommended to me
 by
 a web developer I know but I not sure if it would work for my project.
 
  
 
 Thank you in advance for any information you can help me with!!!
 
  
 
 Valerie Butts
 
 Senior Developer
 
 (804) 928-6320
 
 
 
  
 
 
  
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Question-about-iText-tp25285415p25286236.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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 - 64bit windows server 2008 OS

2009-08-31 Thread mister bean

This has nothing to do with iText. JSE code that runs on 32-bit JVMs runs
without modification on 64-bit JVMs.

---mr. bean



Thanikaiarasu wrote:
 
 Thanks for the reply. You mean to say iText wil work any where 32 bit or
 64 bit. I can instal 64 version of JRE in 
 windows server 2008 64 bit OS,then iText wil work perfectly.
 
   -original message-
 Subject: Re: [iText-questions] itext - 64bit windows server 2008 OS
 From: Paulo Soares psoa...@glintt.com
 Date: 31/08/2009 4:24 pm
 
 If Java works there, iText will also work.
 
 Paulo 
 
 -Original Message-
 From: Thanikaiarasu [mailto:than...@ovi.com] 
 Sent: Monday, August 31, 2009 7:50 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] itext - 64bit windows server 2008 OS
 
 Dear All,
 I would like to know whether itext- 2.0.8 will work properly 
 in a 64bit windows server 2008 operating system. Kindly reply 
 and provide any official link for knowing the same.
 
 Thanks,
 thanik
 
 
 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.
 
 
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 
 -
 Ovi Mail: Making email access easy
 http://mail.ovi.com
 
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/itext---64bit-windows-server-2008-OS-tp25219008p25223712.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Where am I in the text I am writing out?

2009-08-31 Thread mister bean

Suppose I am using ColumnText to output text, and the go() method indicates
that there is more text to print (so, I've filled the current column), is
there any way of knowing where I am currently in the text to be output? 

In other words, is there any way I can tell what the last text output in the
filled column was or what the first text item in the new column will be?

Thanks in advance.

---mr. bean
-- 
View this message in context: 
http://www.nabble.com/Where-am-I-in-the-text-I-am-writing-out--tp25234404p25234404.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Help needed

2009-08-18 Thread mister bean

Seconding what Alexis wrote to you. There are numerous messages on this list
and discussions in the docs regarding why what you want to do is not
possible. --mr.bean



Hi,

I would like to know how to get XY coordinates for any string in a PDF and
it does not associated with any tag.

Thanks in advance.

Thanks
Mahadev



-- 
View this message in context: 
http://www.nabble.com/Help-needed-tp25009464p25020808.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] HelpMe, distance between lines on rtf doc

2009-08-18 Thread mister bean

This has been discussed here many times. A simple search will get you all the
info you need. Read any of these entries here.
http://www.nabble.com/forum/Search.jtp?query=rtf+line+spacinglocal=yforum=2701daterange=0startdate=enddate=

Regards,

---mr. bean


gabriele gentile wrote:
 
 In RTF, how do I specify the space between lines? 
 
 Thanks
 LeLe
 

-- 
View this message in context: 
http://www.nabble.com/HelpMe%2C-distance-between-lines-on-rtf-doc-tp24954076p25021114.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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 pdfViewer?

2009-08-02 Thread mister bean

Boutros:

This question has nothing to do with the thread you stuck it on. Could you
repost as a new thread with a title/subject that has something to do with
the content?

Thanks,

---mr. bean


Boutros wrote:
 
 Hello Paulo:
 
 I was trying the code in in_action.chapter03.HelloWorldEncrypted
 
 writer.setEncryption(Hello.getBytes(), World.getBytes(),
 PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING,
 PdfWriter.STANDARD_ENCRYPTION_128);
 
 and I thought it will take away the button for printing
 
 it gave a password protected file, (which is not what I want to have
 exactly).
 
 what I like to have: the user to be able to view the output file without a
 password,
 but to take away the ability to print the file (like have the print button
 deactivated)
 
 whichever way this is feasible,
 
 Thanks
 
 Boutros
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/iText-pdfViewer--tp24771225p24775376.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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 2.0.2 Compatibility

2009-07-30 Thread mister bean

iText 2.x works fine with Java SE 6 (There is no J2SE 6) and Java EE 5 (There
is no J2EE 5). 

Some other user might be able to answer for the two tools you inquire about.
However, I am sure that from the info above, you can determine whether it
works with those tools.

---mr. bean


santosh marepally wrote:
 
 Hi-
 
 We are currently using iText 2.0.2. We would like to know if  this iText 
 version still works with below mentioned versions:
 or do we need to upgrade to any higher versions of iText. Please advice.
 
 WAS 7.0
 RAD 7.5
 J2EE 5
 J2SE 6
 
 
 Thanks!
 Santosh
 
 
 
  
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and focus
 on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/iText-2.0.2-Compatibility-tp24723160p24733699.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Re : Using iText 2.1.x with flyingsaucer R8

2009-07-22 Thread mister bean

That's the application's responsibility, not the library's. So, it's Flying
Saucer's job if, in fact, they want to run with this later version of iText.

---mr. bean


gonzalad wrote:
 
 Exactly, so just recompiling flying saucer would just do it (I'm doing it
 for my own needs).
 
 My question was more about asking an 'official' release.
 
 Should I ask iText team to restore the old methods ou should I ask flying
 saucer team for a release compiled with iText 2.1.2+ ?
 
 
 BTW thanks very much for your answer
 
 
 
 De : 1T3XT info i...@1t3xt.info
 À : Post all your questions about iText here
 itext-questions@lists.sourceforge.net
 Envoyé le : Mercredi, 22 Juillet 2009, 16h57mn 32s
 Objet : Re: [iText-questions] Using iText 2.1.x with flyingsaucer R8
 
 Adrian Gonzalez wrote:
 Could you restore the old method signature, or should I ask on 
 flyingsaucer forum to modify flyingsaucer source code base?
 
 None of the above: it's still source compatible though so anybody
 needing/wanting to use iText 2.1.2+ will just need to recompile FS
 for themselves.
 
 In other words: it's sufficient to recompile Flying Saucer; no code 
 changes are needed.
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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 mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Using-iText-2.1.x-with-flyingsaucer-R8-tp24607795p24608973.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] fixed width units for font

2009-07-13 Thread mister bean

Paulo:

Are you sure this is right? Here's an excerpt from Bruno's book, (p. 229):

In glyph space, 1000 units corresponds with 1 unit in text space. For
instance, for a 12-point font, 1000 units corresponds with 12 pts.

Thanks in advance for any clarification.

---mr. bean


Paulo Soares-3 wrote:
 
 1000 units corresponds to 1 unit in text space. 1 unit in text space is
 1/72 inch.
 
 Paulo 
 
 -Original Message-
 From: p_repetti [mailto:pierangelo.repe...@gmail.com] 
 Sent: Monday, July 13, 2009 2:49 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] fixed width units for font
 
 
 Hello
 
 I am looking at the Fixed Font Width example presented in 
 the web site
 tutorial. I just can't figure out what the value assigned to 
 the width array
 stands for (1000). I guess it can't be in PDF units, since it 
 would then
 result into 1000/72=13.88 inches and that looks absurd when 
 looking at the
 resulting PDF.
 In what units is it expressed ?
 
 Thanks
 Pierangelo
 
 
 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.
 
 
 
 
 --
 Enter the BlackBerry Developer Challenge  
 This is your chance to win up to $100,000 in prizes! For a limited time, 
 vendors submitting new applications to BlackBerry App World(TM) will have
 the opportunity to enter the BlackBerry Developer Challenge. See full
 prize  
 details at: http://p.sf.net/sfu/Challenge
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/fixed-width-units-for-font-tp24462059p24467315.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] HeaderFooter question

2009-07-10 Thread mister bean

If you search through this mailing list for HeaderFooter, you'll find
many posts similar to this one, posted two weeks ago:

http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg45755.html

That should point you in the right direction.

---mr. bean



Mark Davidson-5 wrote:
 
 Ok, so I read through the documentation looking for the answer, I
 couldn't find it there. Hopefully this won't get a [newbie] tag!
 
 Note: I'm using iText-2.1.7.jar
 
 Anyways, my problem is that the HeaderFooter class doesn't display
 footer information like I think it should.
 
 Basically, I'm trying to create a footer that has an email address and
 a phone number on the left side, and the page number on the right
 side. My initial attempt was as follows:
 public static HeaderFooter CreateFooter() throws Exception
 {
   Smaller = new Font();
   Smaller.setSize(8);
 
   Phrase fBefore = new Phrase(new Phrase(m...@address.com +
  
   +
  
   +
   
 Page #));
   fBefore.setFont(Smaller);
   
   Phrase fAfter = new Phrase(\r\nxX- (X-)\r\n);
   fAfter.setFont(Smaller);
   
   return new HeaderFooter(fBefore, fAfter);
 }
 
 This results in HF_Bad.png (attached). It applies the smaller font to
 the page number, but neither the fBefore or fAfter objects.
 
 My solution was to extend the HeaderFooter class, and overwrite the
 paragraph method as follows:
 
 public Paragraph paragraph()
 {
   Paragraph p = new Paragraph();
   p.add(new Chunk(getBefore().getContent(), getBefore().getFont()));
 
   p.add(new Chunk(   (m_iPage++/2 + 1)  + , getBefore().getFont()));
   p.add(new Chunk(getAfter().getContent(), getAfter().getFont()));
   
   return p;
 }
 
 The m_iPage is a pagenumber workaround I used (since the Page number
 variable isn't visible). Don't worry, it works! Anyways, when I use
 this implementation of HeaderFooter (I called it MyHeaderFooter), I
 get HF_Good.png (attached).
 
 Am I making a mistake? It seems that there's something wrong in the
 library where the assigned fonts don't get applied.
 
 Thank you for taking the time to read my email.
 -Mark Davidson
 
  
  
 --
 Enter the BlackBerry Developer Challenge  
 This is your chance to win up to $100,000 in prizes! For a limited time, 
 vendors submitting new applications to BlackBerry App World(TM) will have
 the opportunity to enter the BlackBerry Developer Challenge. See full
 prize  
 details at: http://p.sf.net/sfu/Challenge
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/HeaderFooter-question-tp24432362p24432698.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Table header/footer problem

2009-07-02 Thread mister bean

Strictly speaking, this requirement cannot be met using page events: 

All parts need to fit tightly together so no spacing between the parts (so
the page footer for the last page can be in the middle of the page depending
on the size of  the report)

Page events, which trigger the printing of headers and footers, occur only
at the end of the page, not in the middle. This is, of course, why they're
called headers/footers, as I suspect you know.

If you can let go of that requirement, then:

In your shoes, I would make a header/footer table with two rows and move the
lines of text in and out (and move them up when there's only one line)
depending on where you are in the document.

Finally, you should note that if you look at the code for implementing
footers and headers, you're running pretty close to the metal, well paper
;-) You can emit the correct text yourself rather than depending on iText to
do the work for you. That option will require some study of how iText is
implemented.

---mr. bean

 



poncke wrote:
 
 Hello,
 
 I have a problem generating a document with page headers/footer. The
 document is one big table.
 I dont need the default style page headers/footers (I looked at page
 events already) that are always placed at the top/bottom of a page but
 table based that are added at the top/bottom of the report table (only on
 page if table spans multiple pages).
 
 Example document structure as visible in pdf viewer:
 
   Document Header (Only on first page)
   Document Page Header (Every page except the first)
   Report Page Header (Every page)
   Report Data
   Report Page Footer (Every page)
   Document Page Footer (Every page except the last)
   Document Footer (Only on last page)
 
 All parts need to fit tightly together so no spacing between the parts (so
 the page footer for the last page can be in the middle of the page
 depending on the size of  the report)
 I tried 3 ways to accomplish this but each one failed. 
 What I basically need is the result of test2 but seamless.
 
 Sample source:  http://www.nabble.com/file/p24286514/Main.java Main.java 
 
 1) 
 Use separate tables for the document header and document footer and add
 the document page headers/footers to the report table
 Problems with test1:
 - The report header/footer is also excluded the first/last page
 - The page/report footer on the first page are to low (even go off page if
 more footer rows are added)
 - The document footer table on last page is to low (seems like the space
 for the skipped footers is still used while they are not rendered)
  http://www.nabble.com/file/p24286514/test1.pdf test1.pdf 
 
 2) 
 Use separate tables for the document header and document footer.
 Use new table for document page header/footer and report, report is
 embedded in this table and has its own page headers/footers.
 Problems with test2:
 - The document header is on the first page while the rest of the report
 starts on the second page
 - the document footer table on the last page is to low (same as in test 1)
  http://www.nabble.com/file/p24286514/test2.pdf test2.pdf 
 
 3)
 Use separate tables for the document header and document footer
 Use new table for document page header/footer and report, report is
 embedded in this table and has its own page headers/footers.
 Ad the above 3 tables to a new layout table and add that to the document.
 Problems with test3:
 - Same as test2
  http://www.nabble.com/file/p24286514/test3.pdf test3.pdf 
 
 

-- 
View this message in context: 
http://www.nabble.com/Table-header-footer-problem-tp24286514p24295549.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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, Flying Saucer, and Lotus Domino agent

2009-07-01 Thread mister bean

Sorry, but it's virtually impossible to help from this mailing list. FS wraps
iText in its own classes. You'll need to pursue this with them.

---mr.bean



jminata wrote:
 
 I am trying to convert HTML to PDF using Flying Saucer. I need to be able
 to use style sheet to do positioning, set font size, color, etc. From what
 I have searched so far, the FS is the best way to do that. I can't find a
 discussion forum that I can post a question to on their site, so that's
 why I am posting a question here. Hopefully, someone can help me here.
 nbsp; I have taken the sample code (the 99 bottles of beer) from this
 article:
 http://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-and-itext.html
 nbsp; I got it to work in Eclipse. However, my ultimate goal is to port
 the code into a Lotus Domino java agent. When I do that, I get the error
 below. The PDF is created, but it completely ignores the CSS. It treats
 the style as text and it is shown as plain text on the PDF. I tried using
 an external style sheet, but the result is the same. I appreciate any
 advice you can give me. Thanks. nbsp; Here's the error: 06/30/2009
 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:08 PM
 org.xhtmlrenderer.util.XRLog log INFO: Using CSS implementation from:
 org.xhtmlrenderer.context.StyleReference 06/30/2009 03:37:21 PMnbsp; HTTP
 JVM: Jun 30, 2009 3:37:08 PM org.xhtmlrenderer.util.XRLog log WARNING:
 Could not parse default stylesheet java.lang.NullPointerException nbsp;at
 org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler.getDefaultStylesheetStream(XhtmlCssOnlyNamespaceHandler.java:407)
 nbsp;at
 org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler.getDefaultStylesheet(XhtmlCssOnlyNamespaceHandler.java:372)
 nbsp;at
 org.xhtmlrenderer.context.StyleReference.getStylesheets(StyleReference.java:242)
 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM
 org.xhtmlrenderer.util.XRLog log INFO: TIME: parse stylesheetsnbsp; 156ms
 06/30/2009 03:37:21 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM
 org.xhtmlrenderer.util.XRLog log INFO: media = print 06/30/2009 03:37:21
 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog
 log INFO: Requesting stylesheet: http://www.w3.org/1999/xhtml 06/30/2009
 03:37:22 PMnbsp; HTTP JVM: Jun 30, 2009 3:37:09 PM
 org.xhtmlrenderer.util.XRLog log WARNING: ( http://www.w3.org/1999/xhtml )
 Found lt; (other) where one of a hex color, ., [, or : was expected at
 line 1. Skipping ruleset. 06/30/2009 03:37:22 PMnbsp; HTTP JVM: Jun 30,
 2009 3:37:09 PM org.xhtmlrenderer.util.XRLog log INFO: Matcher created
 with 1 selectors Here's the java code gt;gt;gt;gt;gt;gt;gt;gt;
 Java Agent: START gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;gt;
 import lotus.domino.*; import java.io.PrintWriter; import
 java.io.FileOutputStream; import java.io.File; import
 java.io.OutputStream; import java.io.StringBufferInputStream; import
 javax.xml.parsers.DocumentBuilder; import
 javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document;
 import org.xhtmlrenderer.pdf.ITextRenderer; public class JavaAgent extends
 AgentBase { nbsp;public void NotesMain() { nbsp;try { nbsp;
 nbsp;Session session = getSession(); nbsp;AgentContext agentContext =
 session.getAgentContext(); nbsp;lotus.domino.Document docCon =
 agentContext.getDocumentContext(); nbsp;Database db =
 agentContext.getCurrentDatabase(); nbsp;nbsp;nbsp; nbsp;// (Your code
 goes here) nbsp;StringBuffer buf = new StringBuffer();
 nbsp;buf.append(lt;?xml version=\1.0\ encoding=\UTF-8\?gt;);
 nbsp;buf.append(lt;!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0
 Strict//EN\ \ http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\
 gt;); nbsp;buf.append(lt;html xmlns=\ http://www.w3.org/1999/xhtml\
 gt;); nbsp;// put in some style
 nbsp;buf.append(lt;headgt;lt;style language=\text/css\gt;);
 nbsp;buf.append(h2 { background: #ff; color: white; border: 10px
 solid black; padding: 3em; font-size: 200%; } );
 nbsp;buf.append(lt;/stylegt;lt;/headgt;); nbsp; nbsp;// generate
 the body nbsp;buf.append(lt;bodygt;); nbsp;for(int i=99; igt;0;
 i--) { nbsp;nbsp;buf.append(lt;h3gt;+i+ bottles of beer on the
 wall,  + i +  bottles of beer!lt;/h3gt;);
 nbsp;nbsp;buf.append(lt;pgt;Take one down and pass it around,  +
 (i-1) +  bottles of beer on the walllt;/pgt;\n); nbsp;}
 nbsp;buf.append(lt;h2gt;No more bottles of beer on the wall, no more
 bottles of beer. ); nbsp;buf.append(Go to the store and buy some more,
 99 bottles of beer on the wall.lt;/h2gt;);
 nbsp;buf.append(lt;/bodygt;); nbsp;buf.append(lt;/htmlgt;);
 nbsp;// parse the markup into an xml Document nbsp;DocumentBuilder
 builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
 nbsp;Document doc = builder.parse(new
 StringBufferInputStream(buf.toString())); nbsp;ITextRenderer renderer =
 new ITextRenderer(); nbsp;renderer.setDocument(doc, null); nbsp;/* make
 a filename that's based on docid */ nbsp;String fName =
 docCon.getUniversalID() + .pdf; 

Re: [iText-questions] HeaderFooter - page number printing on next line

2009-06-24 Thread mister bean

Your solution will work until you attempt another modification. HeaderFooter
has been retired and is now deprecated. Use page events instead. The book
and the online docs have examples.

---mr. bean

 re 


tamtam18 wrote:
 
 I figured out the problem  Using a Phrase to create the HeaderFooter
 (instead of a Paragraph object) solved the problem.  
 
 Change this line:
 
 HeaderFooter header = new HeaderFooter(new Paragraph(headString,
 iTextHeadingFont), true);
 
 To this:
 
 HeaderFooter header = new HeaderFooter(new Phrase(headString,
 iTextHeadingFont), true);
 
 
 
 tamtam18 wrote:
 
 I am creating a header with iText using the HeaderFooter object. The Page
 Number is always appearing on the second line of the header, even though
 there is plenty of room on the first line, and I am not explicitly
 putting a line break there. It seems that this problem only started when
 upgrading from iText 1.2 to iText 2.1.5, but I didn't notice anything
 obvious in the iText source code. Has anyone else had this issue, or
 knows how to solve it? 
 
 Sample Code:
 headString =  viewReportTitle + Page: ;
 //Setting the second param to true should append a page number at the
 end of the string
 HeaderFooter header = new HeaderFooter(new Paragraph(headString,
 iTextHeadingFont), true);
 header.setAlignment(Element.ALIGN_CENTER);
 iTextDoc.setHeader(header);
 
 The output appears like this:
 
 Report Title Page:
 1
 
 
 

-- 
View this message in context: 
http://www.nabble.com/HeaderFooter---page-number-printing-on-next-line-tp24185404p24194489.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Re :Re: Re : Re : Saving a PDF form (Was: Re: Re :Re: Unable to use Corporate Certificate)

2009-06-23 Thread mister bean

Sachin:

PLEASE do some research before immediately posting another question on the
same topic.

If you search the archives for reader enabled, you will find the following
discussion:
http://www.nabble.com/reader-enabled-PDF-for-saving-form-data-td19431612.html

It tells you exactly what Bruno has told you repeatedly. You CANNOT do this
in iText, you MUST have Adobe Acrobat--not the Reader, but the Acrobat
suite. Here is a link to where you can buy the needed software.
http://www.adobe.com/products/acrobat/

Now, PLEASE STOP POSTING THIS QUESTION.  It's been asked and repeatedly
answered.

---Mr. Bean

 re 



sachin -2 wrote:
 
 ok. But Is it possible to programmatically making the pdf reader enable?On
 Tue, 23 Jun 2009 15:18:38 
 +0200 
 
 Post all your questions about iText here  wrote  sachin wrote:  gt; Hi i
 have adobe reader installed. but still i am not able to save the   gt;
 pdf contents.Of course not! You probably didn't understand my earlier
 response. You   need Adobe Acrobat (not just Adobe Reader) to be able to
 save a PDF   form. Or your PDF needs to be Reader Enabled.  br,  Bruno   
 --
  
 Are you an open source citizen? Join us for the Open Source Bridge
 conference!  Portland, OR, June 17-19. Two days of sessions, one day of
 unconference: $250.  Need another reason to go? 24-hour hacker lounge.
 Register today! 
 http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
  
 ___  iText-questions mailing
 list  iText-questions@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the
 iText book: http://www.1t3xt.com/docs/book.php  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 mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 

-- 
View this message in context: 
http://www.nabble.com/Re-%3ARe%3A-Re-%3A-Re-%3A-Saving-a-PDF-form-%28Was%3A-Re%3A-Re-%3ARe%3A-Unable-to-use-Corporate-Certificate%29-tp24178626p24178960.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] Re garding JSP to PDF Conversion

2009-06-09 Thread mister bean

Mike:

If I read it correctly, Bruno's point is that what you're describing is
*not* converting a JSP page to PDF. A JSP is a template with commands to the
servlet engine, bits of HTML, etc. Why would anyone turn a JSP file into a
PDF?

As I read it, the OP's question (if not taken literally) asks whether you
could use iText to write a servlet (or servlet engine) that would generate
PDFs using a JSP syntax.

The answer is sure. But why would you not use a reporting library, of which
there are dozens? That way you get a report as your PDF document rather than
the equivalent of a screen capture of an HTML page. And you have to write
very little of your own code.   

Hope that helps.

---mr. bean



Mike Marchywka-2 wrote:
 
 
 
 
 Date: Mon, 8 Jun 2009 15:46:07 +0200
 From: 
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Regarding JSP to PDF Conversion

 shrikant deshmukh wrote:
 Hi Everyone,
 [...]

 The page which we want to convert is retrieve data from database like
 images and texts. So I want to convert the whole dynamic JSP page into
 PDF format.

 *sigh* You don't want to convert a JSP page to PDF format.
 If you do, your architecture is bad, very bad. Please reconsider!
 
 This is a recurring issue with PDF users but if you are going to defend
 PDF as a general information publishing format, then why not 
 convert arbitrary rendered material into PDF? Just find some way to
 capture
 the rendered JSP pixels and store in PDF as a series of TIFF's? 
 Maybe JSP has some proprietary rendering or he just wants one consistent
 piece of graphics generating code? 
 Obviously this is a bit cumbersome and simply serves to 
 obscure the source information, but people do it all the time
 with PDF. So, I'm just suggesting that there could be as
 good a reason to do this as use PDF for any other purpose for which
 it is commonly used. 
 
 

 Does it happens in iText. Is there any facility available in
 iText. If it is available please reply me.


 
 
 _
 Insert movie times and more without leaving Hotmail®. 
 http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
 --
 OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
 looking to deploy the next generation of Solaris that includes the latest 
 innovations from Sun and the OpenSource community. Download a copy and 
 enjoy capabilities such as Networking, Storage and Virtualization. 
 Go to: http://p.sf.net/sfu/opensolaris-get
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://www.nabble.com/Regarding-JSP-to-PDF-Conversion-tp23924181p23955453.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] A complex question and plea for advice

2009-06-04 Thread mister bean

iText Software Corp. has a directory of developers who have worked
extensively with iText and on PDFs. You might want to contact one or more of
them about this project. See: http://itextsoftware.com/customdev.shtml

Best of luck,

---mr. bean

 re 



Michael Bell-10 wrote:
 
 I've skimmed through Itext In Action, and iText docs, but the task I'm
 about to outline goes far beyond my expertise. 
 
 Any comments or suggestions are duly welcome.
 
 So: We have an email archive product. It may store millions of emails per
 user, and have 25,000 users. But a more typical search result is 5000 or
 so.
 
 Anyway, an email of course contains: headers, text body, html body, and
 attachments.
 
 The need is to produce a publishing/exporting piece and for the last few
 months I was working on one where a .NET rich client pulled stuff into its
 own database/index store via aN API I wrote that provides the various
 contents via an HTTP XML API. My reasoning was I wanted the ability to
 export, in a portable rich client viewer all kinds of email, be able view,
 search, and print it, and save attachments.
 
 In the last week, some folks have thrown up a big fuss, and argued we
 should Just do PDF - they want a single PDF with a table of contents with
 links to the individual mails, which display their headers, a list of
 attachments, and the text/html displayed inline. They also want to embed
 all the attachments in the PDF and be able to save them by clicking on a
 save link next to the list.
 
 I had vaguely considered something like this but discarded it due to
 concerns of scalability, server load, memory consumption (both producing
 the pdf and viewing pdf) and font/character issues (we often don't have
 any idea what language the text and html are in). I figured this was
 easier to punt to the rich client, which would look like a typical email
 client, with folder/message list, attachment pane, etc.
 
 I also, to be honest, underestimated some of the capabilities of PDF.
 
 All this being said, I'm heavily under the gun (as in discussion tomorrow)
 as to discuss the feasibility of the approach (which does have the
 attractive prospects of having everything in one neat package readable by
 Adobe Reader, relatively easily searched, accesed, and printed).
 
 I need experienced developers/users who have generated LARGE PDFs with
 many pages and embedded attachments to comment on the
 feasibility/scalability aspects.
 
 Among the thoughts I have
 
 - font/unicode issues in general - Yes I know iText can handle them IF you
 have the right font, and IF you know the right font/encoding. That isn't
 going to be easy here
 - memory - I wonder about this especially when embedding the attachments
 - speed
 - sanity of this approach
 - issues of converting HTML/Text into iText
 - 10 GB limit of PDF (I believe this is correct)
 
 
 I saw for example PDF Packages - which I dont know if iTExt supports well.
 Would this be a good idea.
 
 My feeling is their idea is a great one for a FEW documents. But literally
 exporting as many as they are talking about sounds messy. With packages or
 links I guess we could segment ...
 
 The problem is quite clearly their approach is going to take months of
 serious testing, performance adjustment and tweaking, and I'd much rather
 finish the approach I have now.
 
 
 
 
 --
 OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
 looking to deploy the next generation of Solaris that includes the latest 
 innovations from Sun and the OpenSource community. Download a copy and 
 enjoy capabilities such as Networking, Storage and Virtualization. 
 Go to: http://p.sf.net/sfu/opensolaris-get
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://www.nabble.com/A-complex-question-and-plea-for-advice-tp23879482p23881216.html
Sent from the iText - General mailing list archive at Nabble.com.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: 

Re: [iText-questions] Advice sought on using Split, Concat and Encrypt

2009-05-06 Thread mister bean

These questions are not iText-related questions and should be posted to a
Java user group. Here are quick answers. Please post follow-up questions to
a non-iText mailing list.

Best version of JRE = latest version of JRE
CLASSPATH = Yes, you will. It's not a Windows-specific issue.

---mr.bean

 re 



oxfordmonty wrote:
 
 Ok, thanks for pointing me in the general direction of the three Java apps
 that look as though they will do what I want. However the documentation is
 all about using them in a Java context and not from the command line. I'm
 going to muddle about and try different things.
 
 Firstly, on a brand new Debian install, what are the best versions of Java
 (JRE) to run and do I need to do anything similar to setting the
 'CLASSPATH'
 environment variable on Windows?
 
 Cheers
 
 George
 
| -Original Message-
| From: 1T3XT info [mailto:i...@1t3xt.info]
| Sent: 5 May 2009 2:07 pm
| To: Post all your questions about iText here
| Subject: Re: [iText-questions] Advice sought on using Split,Concat and
| Encrypt
|
|
| George Pitcher wrote:
|  Leonard,
| 
|  I agree, and that would be my plan. However, I do need to find a
|  command-line way of achieving what I want.
|
| See http://1t3xt.be/?Z000609
| --
| This answer is provided by 1T3XT BVBA
| http://www.1t3xt.com/ - http://www.1t3xt.info
|
| -
| -
| The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
| production scanning environment may not be a perfect world - but
| thanks to
| Kodak, there's a perfect scanner to get the job done! With the
| NEW KODAK i700
| Series Scanner you'll get full speed at 300 dpi even with all image
| processing features enabled. http://p.sf.net/sfu/kodak-com
| ___
| iText-questions mailing list
| iText-questions@lists.sourceforge.net
| https://lists.sourceforge.net/lists/listinfo/itext-questions
|
| Buy the iText book: http://www.1t3xt.com/docs/book.php
| 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/
 
 
 --
 The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
 production scanning environment may not be a perfect world - but thanks to
 Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
 i700
 Series Scanner you'll get full speed at 300 dpi even with all image 
 processing features enabled. http://p.sf.net/sfu/kodak-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 

-- 
View this message in context: 
http://www.nabble.com/Advice-sought-on-using-Split%2C-Concat-and-Encrypt-tp23385377p23400545.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] MsWord to Pdf

2009-05-06 Thread mister bean

No, it's not.

---mr.bean


deep4u wrote:
 
 Hello,
  I have a requirement is conversion of word document to pdf in 
 java. It is posible using itext please share me the information.
 
 Thanks,
 
 
 1T3XT info wrote:
 
 deep4u wrote:
 Hello,
 How to write own (X)HTML handler. For this you have any sample
 code
 or any related links please share me.
 
 I repeat: Go to the keywords page: http://1t3xt.be/?X0004c8
 Do Ctrl+F to search for the words writing your own Handler.
 Click on those words and you'll find: http://1t3xt.be/?X0004ec
 There you will find 8 examples.
 
 How many times have I already referred to the keywords page
 in the last week? Certainly enough for you to find it!
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
 production scanning environment may not be a perfect world - but thanks
 to
 Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
 i700
 Series Scanner you'll get full speed at 300 dpi even with all image 
 processing features enabled. http://p.sf.net/sfu/kodak-com
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 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/
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Html-to-Pdf-tp23295842p23406412.html
Sent from the iText - General mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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] PDF generation problem

2009-02-24 Thread mister bean

You'll probably get more response to this query if you provide more info. To
wit, PDF reader, iText version, exact error message, and a copy of a failing
PDF. 

I can't help with this, but anyone who can will need at least this
information.

---mr. bean

 


Steve Weston wrote:
 
 
 I've been looking through the archives, but haven't found anything usefull
 on this problem.  We have a software package that creates PDF documents. 
 For some of them, but not all, we are getting the message that The file
 is damaged and coule not be repaired when we try to open the PDF file. 
 As I say this happens on some of the PDF documents, but not all of them. 
 They all go through the same process.  Does anyone have any suggestions as
 to what I might look for that could be causing this subset of documents to
 throw up this error while others do not?
 
  
 
 thanks
 
  
 
 _
 Access your email online and on the go with Windows Live Hotmail.
 http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
 CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the
 Enterprise
 -Strategies to boost innovation and cut costs with open source
 participation
 -Receive a $600 discount off the registration fee with the source code:
 SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/PDF-generation-problem-tp22168158p22178522.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Problem with Chunk underline

2009-02-03 Thread mister bean

The basic problem is that currently the font style attributes are OR'd on.
(Bold, italic, underline, etc.) As you know, ORing is a one-way proposition.
That is, you can only turn flags on, not off.

The way we solve the problem in  http://platypus.pz.org Platypus  is to
create a new font using the existing typeface and size and with style set to
Font.NORMAL. This results in the vanilla font with all style attributes
switched off. Then turn on the italics and bold and what not as necessary.
(Of course, you could turn on the appropriate attributes in the original
font creation call.) It's a small kludge, but it works.

Cheers!

---mr. bean


pickm wrote:
 
 Thanks!
 
 Here is the bug tracker:
 http://sourceforge.net/tracker/index.php?func=detailatid=115255aid=2561140group_id=15255
 
 
 Is there anything I can do to work around this for now?
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Chunk-underline-tp21793217p21819264.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Very urgent...

2009-02-02 Thread mister bean

See: http://www.nabble.com/URGENT-QUESTION-to20956110.html#a20956686


Pavani-3 wrote:
 
 Hi,
  
  
 I want to read RTF file which is supporting by iTEXT.
 my requirement is i have read my rtf file and select paticular text which
 is
 in the format like :Subject and i have   to replace some data in that
 Subject.
 that means i want a replace ment like  key and value..
  
  
 My file  Contains data like this way
  
  
 From:...
 Subject Name  Subject
 To Address Address
  
  
  
 Tell me is it possible like this way  by using iTEXT..which is
 supporting RTF file. i want JAVA API for this .
 I already downloaded iTEXT-rtf-2.1.4.jar and  iTEXT-2.1.4.jar files.
 I need this information as early as possible
 so please help in this to complete my task...
  
  
  
  
 Thanks  Regards,
 PAVANI.
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/Very-urgent...-tp21789881p21795821.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


[iText-questions] Getter naming consistency in Paragraph.java

2009-02-01 Thread mister bean

Almost all the getters in Paragraph.java begin with the word get... (as
expected) except for spacingAfter() and spacingBefore(). Can these getters'
names be normalized, so that they start with get? 

Note that both functions' setters start with set..., which makes the getter
names even more peculiar.

Thanks!

---mr. bean
-- 
View this message in context: 
http://www.nabble.com/Getter-naming-consistency-in-Paragraph.java-tp21772552p21772552.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] ColumnText Grouping/KeepTogether

2009-02-01 Thread mister bean

This problem and its solution are discussed in detail in Chapter 7 of the
iText book. ( http://is.gd/7Wib )

---mr. bean


ApolloX wrote:
 
 As a follow-up, I initially tried using Paragraph.setKeepTogether(true)
 which worked for single-paragraphs with the same alignment, but did not
 work if I had a set of elements with different paragraphs and/or
 alignments.  The solution that worked the best was to add a single outer
 table, set PdfPTable.setSplitRows(true) for that table, and then add a
 nested table as a single cell to the outter table, with each row of the
 inner table corresponding to the elements I want to group.br /
 br /
 It works, but its not the most elegant aspect of the API to work with.  It
 would be nice if there was a way to group high-level elements of a column
 within the API.
 

-- 
View this message in context: 
http://www.nabble.com/ColumnText-Grouping-KeepTogether-tp21773892p21783098.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Can't display ő and ű characters in PDF

2009-01-24 Thread mister bean

The font must permit embedding for this to work. Most fonts do, but many do
not. Have you checked this particular font file?

---mr. bean



Balázs Grill wrote:
 
 I've loaded the fonts using
 BaseFont.createFont(file.ttf,BaseFont.IDENTITY_H,true);
 The last parameter says that this font should be embedded in the
 document, isn't it?
 
 Do i need explicitly embed the fonts above this?
 
 2009/1/24 Leonard Rosenthol leona...@pdfsages.com:
 Not only do you have to pick a font where those characters (glyphs) exist
 in
 teh font - BUT you also need to embed the font in the PDF so that
 everyone
 can see them...

 Leonard

 2009/1/24 Balázs Grill balag...@gmail.com

 Hi!

 I tried to create PDFs in hungarian language therefore it contains
 characters such as ő (\u0151) or ű(\u071). These characters are not
 displayed in the resulting PDF.

 I created a snippet, which tries to add such characters to the
 document. Am i doing it wrong?

 public static void main(String[] args) {
System.out.println(Start);
Document document = new Document(PageSize.A4, 50, 50, 50,
 50);
try {
// step 2
PdfWriter.getInstance(document, new
 FileOutputStream(encoding.pdf));
// step 3
document.open();
// step 4
String text = Árvíztűrő tükörfúrógép
 .\u0150\u0151\u0170\u0171.;
document.add(new Paragraph(text,
 FontFactory.getFont(FontFactory.TIMES, 10, Font.NORMAL)));
}
catch (Exception de) {
de.printStackTrace();
}
// step 5
document.close();
System.out.println(Done.);
 }

 I tried to use third-party ttf (and otf) font files, thinking that
 maybe the built-in font files does not contain these characters. The
 font files are loaded and used perfectly, except the mentioned
 characters. Could someone help me solving the problem?

 Thanks

 Balage;


 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.1t3xt.com/docs/book.php


 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 Buy the iText book: http://www.1t3xt.com/docs/book.php

 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 
 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-display-%22%C5%91%22-and-%22%C5%B1%22-characters-in-PDF-tp21644421p2164.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Re: [iText-questions] Issue with Courier font white spaces width

2009-01-24 Thread mister bean

I believe this can happen if your alignment is set to justified. If it is,
then set it to left and see whether the problem goes away. (Note: for
alignment to be justified, you'd have to set it explicitly.)

---mr. bean

 re 


1T3XT info wrote:
 
 TaRe wrote:
 I am creating a PDF document that requires all characters to be the same
 width.
 
 protected static Font defaultFont =
 FontFactory.getFont(FontFactory.COURIER, 6, Font.NORMAL);
  
 However, I find that the whitespaces have different width than the other
 letters and numbers.
 
 This is very hard to believe. Please provide proof. Also note that the 
 font isn't embedded, maybe you are using some faulty viewer.
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 
 

-- 
View this message in context: 
http://www.nabble.com/Issue-with-Courier-font-white-spaces-width-tp21595235p21646757.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] iText Open Type Font

2009-01-14 Thread mister bean

There are known problems with this font. See
http://forum.soft32.com/mac/System-Fonts-Display-Font-Book-ftopict4205.html
which discusses it in length.

Unless someone else points you to something in your iText code, I would look
very carefully at the font. Try using some .otf font that's not a peculiar
subset of Apple's own version and see if that works with the same code.

---mr. bean

 re 


Hua Nguyen Hung wrote:
 
  Dear everyone !  I have problem with Font when create pdf file . I use
 Open Type Font  (AquaKanaRegular )
 
  
 
 with encoding IDENTITY-H ,the pdf file do not have any content .
 
  
 
 Anyone know the problem , please help me !
 
  
 
 Platform I use to test :
 
 OS : Mac  10.4.8
 
 Java JDK :1.5
 
 iText version : 2.1.4 
 
 Adobe Reader : 8.1.3
 
  
 
 This is my code
 
  
 
 public class TestMain {
 
 public static void main(String[] args){
 
 Document document = new Document();
 
 
 
 String text = aおはじょございますa;
 
 try{
 
 
 

 PdfWriter.getInstance(document, new FileOutputStream(HelloWorld.pdf));
 
 
 
 document.open();
 
 
 
 Font bf =
 FontFactory.getFont(/System/Library/Fonts
 /AquaKanaRegular.otf,BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 14f);
 
 
 
 document.add(new
 Paragraph(text, bf));
 
 }
 
 catch(DocumentException de){
 

 System.out.println(de.getMessage());
 
 }
 
 catch(IOException ioe){
 

 System.out.println(ioe.getMessage());
 
 }
 
 
 
 document.close();
 
 }
 
 }
 
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/iText-Open-Type-Font-tp21451159p21452108.html
Sent from the iText - General mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean

Creating BaseFonts from .ttc files give spurious DocumentException errors.
This appears to be caused by this error at the end of line 567 of
com.lowagie.text.pdf.BaseFont.java:

[...] || nameBase.toLowerCase().indexOf(.ttc,)

The literal for the ending of the file name should be .ttc not .ttc, 

That is, there should be no comma.

Unless I'm crazy (always a possibility!) can this be fixed?

Thanks,

---mr. bean


-- 
View this message in context: 
http://www.nabble.com/Found-bug-in-BaseFont%27s-handling-of-.ttc-fonts-tp21188543p21188543.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] what is difference between string.slice() and string.substring()

2008-12-27 Thread mister bean

You've posted this query in the wrong forum. This forum handles questions
related to the iText library. 

As to your specific questions, Google is your friend. 

---mr. bean



rajeshkarka wrote:
 
 Hi All,
 
 what is difference between string.slice() and string.substring().
 For both functions we can pass the start index and end index as
 parameters. And I searched in Acrobat javascript reference. I found
 substirng but not fond anything about slice().
 
 And also what is parseInt() function. Please explain.
 
 regards,
 Rajesh karka.
 

-- 
View this message in context: 
http://www.nabble.com/what-is-difference-between-string.slice%28%29-and-string.substring%28%29-tp21172385p21189010.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean

Creating a BaseFont for file cambria.ttc (which ships with Vista) generates a
DocumentException. The specific code is:

BaseFont bf = BaseFont.createFont( fontFilename, winansi,
BaseFont.NOT_EMBEDDED);

where fontFilename is the full path and filename for cambria.ttc Note that
this code works without a problem for all .ttf and .otf files.

Based on the source code in BaseFont.java, the only relevant test that I can
see that this fails (and thereby leads to the DocumentException) is the test
for .ttc,.

TIA,

---mr. bean


Xavier Le Vourch wrote:
 
 mister bean wrote:
 Creating BaseFonts from .ttc files give spurious DocumentException
 errors.
 This appears to be caused by this error at the end of line 567 of
 com.lowagie.text.pdf.BaseFont.java:
 
 [...] || nameBase.toLowerCase().indexOf(.ttc,)
 
 The literal for the ending of the file name should be .ttc not .ttc, 
 
 That is, there should be no comma.
 
 Unless I'm crazy (always a possibility!) can this be fixed?
 
 Based on the javadoc for the method, font names can be of the form
 msgothic.ttc,1 so it seems that the indexOf() should do the job fine
 at least for the part detecting the type of font used.
 
 Could you provide more info on how you're using the method and what's
 causing the exception? The full stack trace and a small self contained
 example would also be helpful.
 
 
 Thanks,
 
 Xavier
 
 -- 
 Xavier Le Vourch
 Brittany Software, Inc.
 xav...@brittanysoftware.com
 
 PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc
 Key fingerprint: 73B3 6370 B8C5 4325 F2D8  4115 0372 5805 896C 5947
 
 --
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 
 

-- 
View this message in context: 
http://www.nabble.com/Found-bug-in-BaseFont%27s-handling-of-.ttc-fonts-tp21188543p21190271.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean

I totally missed that. Thanks very much. ---mr. bean


Benjamin Podszun wrote:
 
 Hi.
 
 On Sat, 27 Dec 2008 21:41:41 -0800 (PST), mister bean
 abinst...@pacificdataworks.com wrote:
 Creating a BaseFont for file cambria.ttc (which ships with Vista)
 generates a
 DocumentException. The specific code is:
 
 BaseFont bf = BaseFont.createFont( fontFilename, winansi,
 BaseFont.NOT_EMBEDDED);
 
 where fontFilename is the full path and filename for cambria.ttc Note
 that
 this code works without a problem for all .ttf and .otf files.
 
 ttf/otf files are single fonts, ttc is a font COLLECTION.
 In other words: If you're really specifying the filename of the ttc that's
 not enough.
 
 Let me refer to
 http://itextdocs.lowagie.com/tutorial/fonts/getting/index.php here, you
 want to specify the ordinal/index of the font that you want/need.
 
 Regards,
 Ben
 
 
 --
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 
 

-- 
View this message in context: 
http://www.nabble.com/Found-bug-in-BaseFont%27s-handling-of-.ttc-fonts-tp21188543p21190400.html
Sent from the iText - General mailing list archive at Nabble.com.


--
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] not able to add table in footer.. Please help me

2008-12-11 Thread mister bean

This exact situation is discussed in the book, with all the necessary
supporting code carefully explained. 

---mr.bean

---

Ram karthick wrote:
 
  
 Hi All,
  
  I am trying to get a table in the footer but not able to get it,
 when i add the footer table in phrase and setting the phrase in footer is
 not working..
  
 actually i want to display three strings in footer wher the middle one is
 dynamic.
  
 Please help me to solve this.
  
 With Regards,
 Ram Karthik.
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/not-able-to-add-table-in-footer..-Please-help-me-tp20964535p20969874.html
Sent from the iText - General mailing list archive at Nabble.com.


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] Bob Lee of Guice on iText (from Twitter)

2008-12-11 Thread mister bean

Retweeting a series of tweets from Bob Lee, the principal author of Google's
Guice framework. In chronological order:

1) Can't find an open source Java PDF page splitter (to split one big file
into a file per page). Guess I'll have to write my own.

2) iText might actually work. I'll give it a shot. I didn't realize it
could manipulate existing PDFs.

3) iText seems to be perfect. It even keeps a low memory footprint.

Cool!

---mr. bean

p.s. For those who want to follow Bob, he's crazybob on Twitter.



-- 
View this message in context: 
http://www.nabble.com/Bob-Lee-of-Guice-on-iText-%28from-Twitter%29-tp20969912p20969912.html
Sent from the iText - General mailing list archive at Nabble.com.


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] iText question

2008-12-05 Thread mister bean

The broad answer to your question is iText can pull apart a PDF into its
elements, but that probably won't solve your probem. PDF files do not
necessarily contain text in a sequential order. The text can be written as
one glyph (letter) at one point and then the remaining characters as a
series of separate strings that are emitted later on. So, there is no
guarantee that the word confidential will ever appear as a whole word in
the extracted elements. As a result, there is no guarantee that what you're
looking to do can be done. Some other tools out there can do limited editing
if the PDF happens to have the words written out together, but this depends
on the PDF generator and some luck.

---mr. bean


guitar-4 wrote:
 
 Please help if you can answer this question.  I need iText for a specific
 purpose.  I need to pick apart PDF documents and analyze the content of a
 PDF for possibly unintentionally included sensitive information.  I need
 to find an API that has a complete set of packages/classes which will
 parse and pull apart PDF.  Is iText mainly suited for creating PDF
 documents or can it also be used as a complete API for, examples...
 pulling/parsing PDF documents, extracting any and all objects which may be
 embedded in it, finding similar color text to its background, finding
 hidden items, etc, etc.  This is very important at the moment for me, so
 responses would be greatly appreciated.
 
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
 Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to help
 pave the way to the Next Web now. Learn more and register at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 
 

-- 
View this message in context: 
http://www.nabble.com/iText-question-tp20857833p20860994.html
Sent from the iText - General mailing list archive at Nabble.com.


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Re garding IText Support for XSL-FO

2008-12-01 Thread mister bean

iText is not a FOP engine. However, it is the library that is used in several
FOP engines, such as the one in RenderX.

---mr. bean


ntimesc wrote:
 
 Hi ,
 
 I want to know that does IText Support XSL-FO to PDF/TEXT/PRINT conversion
 like FOP does ?
 
 Thanking You,
 
 Nihar Bhatt (INDIA)
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/Regarding-IText-Support-for-XSL-FO-tp20770765p20779029.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


[iText-questions] Re gistering files at point of usage instead of via RegisterDirectories

2008-11-30 Thread mister bean

On systems with many font files, the RegisterDirectories() method can take a
while to run. I'd like to be able to provide a property file that contains
the font family names and the file locations. Then, when the doc refers to a
font, look it up in the property file, get the path to it and register the
font file right then and there.

To create this property file, I recursively go through a list of font
directories. The problem is that iText does not let me access the family
name/font name and location for the files it registers. I can get the font
names via the iterator (p. 274 in the book) or the font family (different
iterator, same page), but I cannot get the font name, family, and file
location from iText, as the needed fields in the source code are private.

Any suggestions on how to create this property file? 

Thanks ahead of time for any help.

---mr. bean
-- 
View this message in context: 
http://www.nabble.com/Registering-files-at-point-of-usage-instead-of-via-RegisterDirectories-tp20764762p20764762.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] FOP 0.95 and iText 2.1.3 unable to do exact overprint

2008-11-13 Thread mister bean

The problem you're describing is a Java error, nothing to do with iText. 

The error message contains the info you need. If you pass 8.1 to a function,
Java treats it as a double. Change it to 8.1f to make it a float. The
problem should go away.

(If you review data types in Java, you'll be able to figure out why the
integer worked.)

---mr. bean


Stepan RYBAR wrote:
 
 Hello,
 
 yes, You are right, that in JavaDoc is float and not int, but when I use
 following code:
 
 over.showTextAligned(Element.ALIGN_LEFT, omr, 8.1, 666, 90);
 
 I receive following error during compilation:
 
 C:\temp\Apache FOP User DataC:\Program Files\Java\jdk1.6.0_10\bin\javac
 -cp 
 iText-2.1.4.jar AddPageNumbersToExistingPageNumberPDF.java
 AddPageNumbersToExistingPageNumberPDF.java:121: cannot find symbol
 symbol  : method showTextAligned(int,java.lang.String,double,int,int)
 location: class com.lowagie.text.pdf.PdfContentByte
 over.showTextAligned(Element.ALIGN_LEFT, omr, 8.1, 666, 90);
 ^
 1 error
 
 while when I use integer value:
 
 over.showTextAligned(Element.ALIGN_LEFT, omr, 8, 666, 90);
 
 compilation and running is OK. I am using Sun Java SDK 1.6.0_10 64bit
 version on MS Windows Vista Enterprise 64bit EN with Czech regional
 settings. You can see my whole simple Java code in attachment. There is
 still chance, that I can make some fatal mistake in my Java code, but I
 hope not so.
 
 Stepan
 
  Původní zpráva 
 Od: mister bean abinstock@
 Předmět: Re: [iText-questions] FOP 0.95 and iText 2.1.3 unable to do
 exact
 overprint
 Datum: 13.11.2008 08:07:16
 

 Not sure if this is the answer, but I don't understand why you say that
 the
 showTextAligned() uses integers. In fact, it uses floating-point values.
 See
 the Javadoc
 http://1t3xt.info/api/com/lowagie/text/pdf/PdfContentByte.html#showTextAligned(int,%20java.lang.String,%20float,%20float,%20float,%20boolean)

 Likewise, setFontAndSize() takes a floating-point value. Again, look at
 the
 JavaDoc.

 I suspect that you can tweak the values to fit perfectly.

 ---mr. bean

 
 import java.io.FileOutputStream;
 
 import com.lowagie.text.Element;
 import com.lowagie.text.pdf.BaseFont;
 import com.lowagie.text.pdf.PdfContentByte;
 import com.lowagie.text.pdf.PdfReader;
 import com.lowagie.text.pdf.PdfStamper;
 
 public class AddPageNumbersToExistingPageNumberPDF {
   public static void main(String[] args) {
 try {
   PdfReader reader = new PdfReader(args[0]);
   int n = reader.getNumberOfPages();
   //System.out.println(n);
 
   PdfStamper stamp = new PdfStamper(reader, new
 FileOutputStream(args[1]));
   int i = 0;
   String omr = new String();
   PdfContentByte over;
   BaseFont bf = BaseFont.createFont(C:\\Program Files\\Apache FOP
 0.95\\fonts\\cour.ttf, BaseFont.WINANSI, BaseFont.EMBEDDED);
   while (i  n) {
 i++;
 over = stamp.getOverContent(i);
 over.beginText();
 over.setFontAndSize(bf, 10);
 switch (((i - 1) % 31) + 1) {
   case 1: 
 omr = 1; 
 break; 
   case 2: 
 omr = 01000; 
 break; 
   case 3: 
 omr = 111000; 
 break; 
   case 4: 
 omr = 00100; 
 break; 
   case 5: 
 omr = 110100; 
 break; 
   case 6: 
 omr = 101100; 
 break; 
   case 7: 
 omr = 11100; 
 break; 
   case 8: 
 omr = 00010; 
 break; 
   case 9: 
 omr = 110010; 
 break; 
   case 10: 
 omr = 101010; 
 break; 
   case 11: 
 omr = 11010; 
 break; 
   case 12: 
 omr = 100110; 
 break; 
   case 13: 
 omr = 10110; 
 break; 
   case 14: 
 omr = 01110; 
 break; 
   case 15: 
 omr = 10; 
 break; 
   case 16: 
 omr = 1; 
 break; 
   case 17: 
 omr = 110001; 
 break; 
   case 18: 
 omr = 101001; 
 break; 
   case 19: 
 omr = 11001; 
 break; 
   case 20: 
 omr = 101001; 
 break; 
   case 21: 
 omr = 10101; 
 break; 
   case 22: 
 omr = 01101; 
 break; 
   case 23: 
 omr = 01; 
 break; 
   case 24: 
 omr = 100011; 
 break; 
   case 25: 
 omr = 10011; 
 break; 
   case 26: 
 omr = 01011; 
 break; 
   case 27: 
 omr = 111011; 
 break; 
   case 28: 
 omr = 00111

Re: [iText-questions] FOP 0.95 and iText 2.1.3 unable to do exact overprint

2008-11-12 Thread mister bean

Not sure if this is the answer, but I don't understand why you say that the
showTextAligned() uses integers. In fact, it uses floating-point values. See
the Javadoc
http://1t3xt.info/api/com/lowagie/text/pdf/PdfContentByte.html#showTextAligned(int,%20java.lang.String,%20float,%20float,%20float,%20boolean)

Likewise, setFontAndSize() takes a floating-point value. Again, look at the
JavaDoc.

I suspect that you can tweak the values to fit perfectly.

---mr. bean

 re 


Stepan RYBAR wrote:
 
 Hello, 
 
 I have a problem using FOP 0.95 and iText 2.1.3 for exact overprint. I
 have FO file (see attached FO) with 72 dpi in configuration file, which
 creates the first PDF: 
 
 fo:block-container absolute-position=fixed top=100pt left=100pt
 height=20pt width=100pt reference-orientation=90
  fo:block font-size=10pt font-family=Courier New+1010-/fo:block
 /fo:block-container
 
 Then I have Java file (see attached Java) with iText code, which uses the
 first PDF, add some (now overprinted) text and creates the second PDF: 
 
 over.showTextAligned(Element.ALIGN_LEFT, +1011-, 108, 642, 90);
 
 Both FOP and iText uses the same font. I am not able to do exact overprint
 of +101.- chars (see attached PNG) using just only setting iText, even
 when I iterate x and y axis value point-by-point. As far as I know, I have
 to use points as INTEGER in case of iText. Is it reasonable to change
 position values from INTEGER to let say DECIMAL? Because in FOP I am able
 to use 99.9pt and it is different position than 100pt (so I have a
 workaround now). I need it for composing barcode OMR. FOP is able do print
 the first part of the barcode, while iText is the able to print the rest
 of barcode (btw.I am solving problem of logical and physical page counting
 and control digit at the end of barcode). Also both PDF files are
 attached. Hope, that this my problem and request does not sound too crazy
 ;-) 
 
 Or the best answer for me is, that I made something wrong using FOP or
 iText and I do need to set FOP X-value for 99.9pt. 
 
 Thank You in advance. Stepan
 ?xml version=1.0 encoding=utf-8?
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
 fo:simple-page-master master-name=chapter page-height=297mm
 page-width=210mm margin=0cm
   fo:region-body margin=2cm /
   fo:region-end extent=2cm /
 /fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=chapter
 fo:static-content flow-name=xsl-region-end
   fo:block-container
 fo:block-container absolute-position=fixed top=100pt
 left=100pt height=20pt width=100pt reference-orientation=90
   fo:block font-size=10pt font-family=Courier
 New+1010-/fo:block
 /fo:block-container
   /fo:block-container
 /fo:static-content
 fo:flow flow-name=xsl-region-body
   fo:blockZACATEK VYPISU/fo:block
 /fo:flow
   /fo:page-sequence
 /fo:root
 
  
 import java.io.FileOutputStream;
 
 import com.lowagie.text.Element;
 import com.lowagie.text.pdf.BaseFont;
 import com.lowagie.text.pdf.PdfContentByte;
 import com.lowagie.text.pdf.PdfReader;
 import com.lowagie.text.pdf.PdfStamper;
 
 public class AddPageNumbersToExistingPageNumberPDF {
   public static void main(String[] args) {
 try {
   PdfReader reader = new PdfReader(args[0]);
   int n = reader.getNumberOfPages();
   //System.out.println(n);
 
   PdfStamper stamp = new PdfStamper(reader, new
 FileOutputStream(args[1]));
   int i = 0;
   PdfContentByte over;
   BaseFont bf = BaseFont.createFont(C:\\Program Files\\Apache FOP
 0.95\\fonts\\cour.ttf, BaseFont.WINANSI, BaseFont.EMBEDDED);
   while (i  n) {
 i++;
 over = stamp.getOverContent(i);
 over.beginText();
 over.setFontAndSize(bf, 10);
 //over.setTextMatrix(10, 10);
 over.showTextAligned(Element.ALIGN_LEFT, +1011-, 108, 642, 90);
 over.endText();
   }
   stamp.close();
 
 } catch (Exception de) {
   de.printStackTrace();
 }
   }
 }
  
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 

-- 
View this message in context: 
http://www.nabble.com/FOP-0.95-and-iText-2.1.3-unable-to-do-exact-overprint-tp20458311p20475741.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move 

Re: [iText-questions] Question

2008-07-16 Thread mister bean

Here is how someone else answered the same question:

http://www.eggheadcafe.com/community/aspnet/6/10006614/itext--free--open-sourc.aspx

Essentially, download the right version of iText (see link above) and read
the docs. If after doing both those steps, you have still have questions,
then post those questions to the list. 

---mr. bean

 re 


huda albar wrote:
 
 Hi ,
  
 I need to know how can i install iText Tool to convert web pages in aspx
 to pdf? I am waiting your update.
  
  
 
 
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Do you like iText?
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 Or leave a tip: https://tipit.to/itexttipjar
 

-- 
View this message in context: 
http://www.nabble.com/Question-tp18469068p18482026.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Re: [iText-questions] Page Number not getting diaplayed in Adobe Reader

2008-06-02 Thread mister bean

I don't think you'll find a lot of list members who will look through the
1500+ lines of code you posted to solve your problem. 

Have you looked at the discussion of displaying page count in the book? That
would be a good place to start.

If you have, and that has not solved your problem, you should consider doing
what I think most folks would do: copy the known working code from the book
into your program and adjust your code to use it. Then test and modify as
needed.

If that does not solve the problem, then post your code for this operation
as you tried it (I recommend a maximum of  30-40 lines) to the list and ask
for help.

---mr. bean 



Dhvanil wrote:
 
 I am new to itext and i am facing issue in displaying page number as  1
 of 1. 1 of is getting printed but total number of page is not getting
 printed.
 
 If i open the pdf with PDF Vista its showing but in Adobe Reader its not
 displaying. If i copy the blank area from pdf and paste it in notepad its
 showing me total number of pages. So i think there is some issue with
 displaying of it.
 
 I wanted help on this urgently. I am also attaching my code here with this
 post.
 Any help is greatly appreciated.
 
 1523 of lines of Java code deleted...
 

-- 
View this message in context: 
http://www.nabble.com/Page-Number-not-getting-diaplayed-in-Adobe-Reader-tp17595125p17595649.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Groovy based DSL for IText ?

2008-05-08 Thread mister bean

Groovy is a great language. 

While in Java, not Groovy, the Platypus project (http://platypus.pz.org) is
working on providing a higher-level layer for iText. The project is in the
middle of a rewrite now (I am part of the team) to move to a plugin
architecture so PDF, HTML, and Word docs will all be possible outputs--from
the same high-level document description. 

Platypus will include a scripting language, and that language will
be...Groovy! (We had planned on JavaScript originally, but have migrated to
Groovy as our preference.)

All the best,

mr. bean

p.s. To be notified when Platypus has the Groovy implementation and is ready
for testing, send a note to:
[EMAIL PROTECTED] 



Helmut Denk wrote:
 
 hi itext-users,
 
 currently i am reading venkat subramaniam's book 
 http://pragprog.com/titles/vslg/programming-groovy Programming Groovy 
 and also work for a project that makes use of itext.
 
 my guess is, that a groovy-based dsl could be a very smart way to
 let people produce itext-output.
 
 anyone who has gone deeper into that subject ?
 
 have a nice time
 
 

-- 
View this message in context: 
http://www.nabble.com/Groovy-based-DSL-for-IText---tp17126687p17138386.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Set position of text

2008-03-28 Thread mister bean

The book
http://www.amazon.com/iText-Action-Creating-Manipulating-PDF/dp/1932394796/ref=sr_1_1?ie=UTF8s=booksqid=1206745091sr=8-1
is the principal documentation. An eBook version is available at:
http://www.manning.com/lowagie/

For on-line explanations, please Google iText Documentation 

---mr. bean

 re 


F_P_aus_K wrote:
 
 
You really need to have a look at the documentation.
 We can't do all the work for you. 
 
 sorry, thats my question, where i can get a documantation?
 
 thx
 Frank
 
 
 
 1T3XT info wrote:
 
 F_P_aus_K wrote:
 now i need a identifier for a 'new page' flag. The Tables breaks right
 in
 the middle, thats not ok.
 
 You really need to have a look at the documentation.
 We can't do all the work for you. Search for setSplitLate
 and find out the different options for splitting a PdfPTable.
 -- 
 This answer is provided by 1T3XT BVBA
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Set-position-of-text-tp16325025p16360177.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Set-position-of-text-tp16325025p16364005.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText dependency on print driver?

2008-03-28 Thread mister bean

no dependency in most cases. Itext writes the PDF file to a file or a stream.
Printing the file is a downstream event unless you direct the PDF stream to
the printer (see pages 581-2 in the book). You'll need to see whether that
is being done in your situation. But barring that, though, you should be OK.

---mr. bean

 re 


Tom Henricksen wrote:
 
 We currently use iText 1.3.1 via JasperReports.  Someone posed a
 question to me whether iText has any dependency on the print driver of
 the Application server?  I don't think so but I am not certain.  Does
 anyone know if there is a dependency from iText on the application
 servers driver?
 
  
 
 Thanks,
 
  
 
 Tom Henricksen
 Consultant
 Advanced Technologies Group, Inc.
 
 * Email: [EMAIL PROTECTED]
 
  
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/iText-dependency-on-print-driver--tp16362657p16364046.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Font Embedding

2008-03-17 Thread mister bean

There are many examples of embedding fonts in the tutorials on the site and
in the book. 

If the you've copied the code and tried it with your own font and you get a
font exception, then it's probably because the font you're using is not
embeddable. If that's not the case, you should post the code and the font
exception output, and possibly someone can help you. But please first make
sure your font is embeddable.

---mr. bean
 

charles chandran wrote:
 
 Hi Experts,
 
   Can anyone tell me how to embed the font, i mean if the
 arial
 font is there in pdf, while using acrobat viewer alerting me with
 FontException, so need to register these font factories and then save to
 another pdf. Is it possible with iText or anyother free java api.
 
  Thanking you
 Charles v c
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Font-Embedding-tp16091867p16098479.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Can i use iText for free?

2008-03-02 Thread mister bean

yes. But make sure to respect the terms of the license. 

---mr. bean


Gao, Ming (George) wrote:
 
 Hi, 
  
 I want to use this library to generate PDFs for business purpose.
 Can I generate PDFs for free with iText?
  
 Thanks,
  
 
 AVAYA
 
 George Gao| Consulting and System Integration| Global Services Delivery|
 AVAYA |Address : 23 Dalian Software Park, Room 801 East Road, Block 13,
 Dalian, P.R.China| Dalian| 116023 |Voice : + 86(411)8377-7536|Email :
 [EMAIL PROTECTED]
 
  
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Can-i-use-iText-for-free--tp15799009p15799192.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Header Footer with iText on JSP

2008-03-01 Thread mister bean

See the book, starting at p. 432. There's an example of exactly what you're
looking to do. 

--mr.bean


davidc2 wrote:
 
 Hey,
 
 I'm trying to use a PdfPTable table as a header, but I'm not able to...
 
 I'm using
 PdfPTable table = new PdfPTable(3);
 on which I'm adding a bunch of cells, and it works, as long as I'm adding
 it to the Document (document.add(table);)
 
 But the only way I'm been able to have a header and a footer on my page is
 using:
 HeaderFooter header = new HeaderFooter(new Phrase(Header Header Header),
 false);
 
 HeaderFooter footer = new HeaderFooter(new Phrase(This is page ), true);
 
 document.setHeader(header);
 document.setFooter(footer);
 
 Before document.open...
 
 How can I construct HeaderFooter with a table? Or what other alternative
 do I have?
 
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/Header-Footer-with-iText-on-JSP-tp15768325p15779711.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Having trouble with Events

2008-02-19 Thread mister bean

Did you use 

 iTWriter.setPageEvent( new OnPageEnd() );

somewhere before the pageEvent is first triggered?

If not, iText has no idea that you've created this event. 

---mr.bean


jlopes151 wrote:
 
 Ok I created a class extended it with PdfPageEventHelper put a Println in
 the onEndPage method
 and nothing printed.
 
 public class MyClass extends PdfPageEventHelper{
 .. code to produce a pdf works with out error .
    after a number of rows I execute newPage() 
 public void onEndPage(PdfWriter writer, Document doc){
 System.out.println(Some text);
 }
 
 }
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Having-trouble-with-Events-tp15580349p15580494.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] WordSpacing and CharacterSpacing

2008-01-28 Thread mister bean

See p. 347-350 in the book. The methods you're looking for are
setCharacterSpacing() and setWordSpacing().

Best wishes,

---mr. bean


Stephan Michels wrote:
 
 Hi,
 
 is it possible to set the word spacing and character spacing, for
 example a paragraph?
 I have to increase the values to prevent orphans in a column layout.
 
 I inspected the source code and found that
 PdfDocument.writeLineToContent() changed the values for justified
 lines, but no way to change the value directly.
 
 BTW, that the meaning of the value lastBaseFactor in this method?
 
 Thank you,
 Stephan Michels.
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/WordSpacing-and-CharacterSpacing-tp15130366p15130943.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Newbie question on justifying text

2008-01-12 Thread mister bean

You should be able to do this by creating a two-cell table, putting the
left-aligned material in the left cell and the right-aligned material (phone
number) in the right cell and using cell-alignment commands for each (book
p. 168). If the text of the two columns might overlap, then do this for only
the line on which the phone number appears.

Hope that helps,

---mr. bean


Rob Tanner wrote:
 
 Hi,
 
 I build a PDF telephone directory of faculty, staff and students that 
 goes up on our internal web server every night.  Currently, I produce a 
 text file of Latex mark-up and use PDFLatex to produce the PDF.  I'm 
 trying to switch it over to iText and of come across the first of 
 probably several problems in maintaining the original format.
 
 I'm using the multicolumn text class to produce two columns on every 
 page and building each directory entry as a set of three paragraphs.  My 
 problem is the first paragraph of the directory entry.  The person's 
 name, mail-stop and email are left justified, added individually as 
 chunks to the first paragraph.  But the phone number needs to be right 
 justified (i.e., bang up against the right edge of the column).  How do 
 I right justify that chunk and only that chunk? 
 
 Thanks,
 Rob
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-question-on-justifying-text-tp14762859p14774462.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] can i unregistrate

2008-01-08 Thread mister bean

https://lists.sourceforge.net/lists/listinfo/itext-questions

See bottom of the page. 

---mr. bean

 re 


Sangil Jung wrote:
 
 I want a maillinglist secession as this email([EMAIL PROTECTED]),
 
 how can i do that~?
 
 best regards~
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/can-i-unregistrate-tp14680897p14685100.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText Problem

2008-01-07 Thread mister bean

It's hard to know what to recommend without knowing what your content is. If
your content is text, then increase the margins on the page until there is
no overlap. If it's an image, scale the image, using the scaleToFit methods
as described in the book.

---Mister Bean
 

hoss * wrote:
 
 Dear Sir;
 
   i have a problem when  using iText to produced pdf , when i insert
 header
 and footer on each pdf page the header will be override the content of the
 page, so i need to know how i can shrunk the pdf content to insert the
 header before the content.
 
 Thanks
 Hossam Rgaab
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/iText-Problem-tp14675009p14677817.html
Sent from the iText - General mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Problem getting onStartPage() triggered

2007-12-15 Thread mister bean

In the following code, the onStartPage() method is never called, even though
the test document has many pages. Any thoughts about what to fix, where to
look?

Thanks in advance,

---mister bean

 re 

package platypus.pdf;

import com.lowagie.text.pdf.*;
import com.lowagie.text.Document;
import platypus.*;

/**
 * Performs non-content actions related to the start of a new page. Per
iText,
 * new-page content should be added using the onEndPage() method.
 *
 * Reference: 
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php
 *
 * @author alb
 */
public class OnPageStart extends PdfPageEventHelper
{
/**
 * Perform all new-page related functions that don't involve placing
content on the page.
 *
 * @param writer PdfWriter (supplied by iText)
 * @param doc PdfWriter (supplied by iText)
 */
@Override
public void onStartPage( PdfWriter writer, Document doc )
{
incrementPageCounter();
incrementPageNumber();
}
...
}
-- 
View this message in context: 
http://www.nabble.com/Problem-getting-onStartPage%28%29-triggered-tp14356024p14356024.html
Sent from the iText - General mailing list archive at Nabble.com.


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Problem getting onStartPage() triggered

2007-12-15 Thread mister bean

Sorry, my error. Found the problem. Please ignore. blush 

---mister bean


mister bean wrote:
 
 In the following code, the onStartPage() method is never called, even
 though the test document has many pages. Any thoughts about what to fix,
 where to look?
 
 Thanks in advance,
 
 ---mister bean
 
 re 
 
 package platypus.pdf;
 
 import com.lowagie.text.pdf.*;
 import com.lowagie.text.Document;
 import platypus.*;
 
 /**
  * Performs non-content actions related to the start of a new page. Per
 iText,
  * new-page content should be added using the onEndPage() method.
  *
  * Reference: 
 http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php
  *
  * @author alb
  */
 public class OnPageStart extends PdfPageEventHelper
 {
 /**
  * Perform all new-page related functions that don't involve placing
 content on the page.
  *
  * @param writer PdfWriter (supplied by iText)
  * @param doc PdfWriter (supplied by iText)
  */
 @Override
 public void onStartPage( PdfWriter writer, Document doc )
 {
 incrementPageCounter();
 incrementPageNumber();
 }
 ...
 }
 

-- 
View this message in context: 
http://www.nabble.com/Problem-getting-onStartPage%28%29-triggered-tp14356024p14356854.html
Sent from the iText - General mailing list archive at Nabble.com.


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] jvm crush

2007-10-17 Thread mister bean

If you Google SIGBUS (0x7) at pc you'll find that other folks are also
running into similar problems with this rev of the JVM running on Linux. 

---mr. bean

 re 


Maurizio Marra wrote:
 
 Hi,
 
 I'm using iText (version 2.0.1) with Tomcat 6 to add a timestamp to the
 first page of uploaded pdf file.
 Today the jvm crushed.
 
 Here is a part of the error report:
 
 #
 # An unexpected error has been detected by HotSpot Virtual Machine:
 #
 #  SIGBUS (0x7) at pc=0xb373fba9, pid=13444, tid=1693485984
 #
 # Java VM: Java HotSpot(TM) Server VM (1.5.0_12-b04 mixed mode)
 # Problematic frame:
 # J  com.lowagie.text.pdf.RandomAccessFileOrArray.read()I
 #
 
 Here is my code:
 
 PdfReader reader= new PdfReader(new
 RandomAccessFileOrArray(srcFile),null);
 PdfStamper stamp= new PdfStamper(reader,new FileOutputStream(targetFile));
 
 BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI,
 BaseFont.NOT_EMBEDDED);
 
 PdfContentByte over = stamp.getOverContent(1);
 over.beginText();
 over.setFontAndSize(bf, 30);
 over.setColorFill(new Color(0,0,255));
 over.showTextAligned(Element.ALIGN_LEFT, theTime, 100, 200, 90);
 over.endText();
 
 After the crush, I've tested again with the same file and everything was
 correct.
 
 Thank you in advance
 
 Maurizio
 
 
 
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/jvm-crush-tf4641597.html#a13259686
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] wrapping problem

2007-10-13 Thread mister bean

Use cell.setNoWrap(true) as illustrated on page 173 of the book.  

---mr. bean



coolbaba wrote:
 
 I want to display the text or a number in a PdfPTable cell with out
 wrapping down. my requirement is,if I have 40 characters text , it has to
 be displayed in one line with out wrapping down. Is it possible with iText
 library?
 

-- 
View this message in context: 
http://www.nabble.com/wrapping-problem-tf4619071.html#a13192600
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Urgetn help needed with simple question!

2007-10-10 Thread mister bean

If you need more help on this topic, please post full questions and avoid
that CAPS LOCK key. Both courtesies help us help you--or at least make us
more disposed to doing so ;-).

Good luck with your project,

---Mr. Bean



Xavier Le Vourch wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 bleuciel musicien wrote:
 
 
 Very simple question:

 Input byte[] of tiff image
 Outputbyte[] of PDF


 Please tell EXACTLY which methods on which classes I have to call to
 do this.
 
 
 Very simple answer: read the fine documentation :)
 
 Complete answer with EXACT methods: ask for consulting rates...
 
 Intermediate answer: here are some pointers to get you started, starting
 with the tutorial example and then the classes you'll need to look at to
 adapt the code.
 
 Tiff example in the tutorial:
 
 http://itextdocs.lowagie.com/tutorial/objects/images/tiff/index.php#top
 
 TiffImage API:
 
 http://itext.ugent.be/library/api/com/lowagie/text/pdf/codec/TiffImage.html
 
 RandomAccessFileOrArray constructor for byte[] argument:
 
 http://itext.ugent.be/library/api/com/lowagie/text/pdf/RandomAccessFileOrArray.html#RandomAccessFileOrArray(byte[])
 
 ByteArrayOutputStream:
 
 http://java.sun.com/j2se/1.5.0/docs/api/java/io/ByteArrayOutputStream.html
 
 
 With those links, you should be able to modify the tutorial example code
 to use a ByteArrayOutputStream for output, create a
 RandomAccessFileOrArray object from the byte input and use the TiffImage
 methods to create the pdf.
 
 Short of writing the code/assignment myself, that's all I can provide
 for now...
 
 
 Xavier
 
 
 
 Please an accurate answer.
 
 THANKS A LOT FOR YOUR HELP.
 
 Niko.
 
 
 
 - --
 Xavier Le Vourch
 Brittany Software, Inc.
 [EMAIL PROTECTED]
 
 PGP Key: http://brittanysoftware.com/gpg_key.asc
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Urgetn-help-needed-with-simple-question%21-tf4603526.html#a13149802
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] setLeading-Problem

2007-09-28 Thread mister bean

Right. People still use the term to mean the delta between the fontsize and
the distance between baselines. Wikipedia
(http://en.wikipedia.org/wiki/Leading), for example, talks about text two
lines of text with 0 leading, when they mean: 12pt type with 12pt leading. 

From what I can tell, though, the usage in PDF and iText as the distance
between baselines is now pretty much standard in typesetting. 

mr. bean



Bruno Lowagie (iText) wrote:
 
 mister bean wrote:
 Leading is the distance between two baselines.
 
 As we once discussed, the word 'leading' has a different meaning
 in the context of PDF compared to its original etymological meaning.
 br,
 Bruno
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/setLeading-Problem-tf4528572.html#a12945613
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] setLeading-Problem

2007-09-27 Thread mister bean

I don't use the iText sharp version, but you have a conceptual issue here.

 Leading is the distance between two baselines. So if you make the leading
of this new paragraph only 0.7 pts below the image, any text larger than 0.7
pts will overwrite the image. 

Increase the leading so that the baseline of the text is lower. By trial and
error you will find how much to lower it to so that you have the gap you
want. 

For future reference, this distance will change anytime you change the
typeface/font or the size of the text. 

---mr. bean


meenakshi thilagam wrote:
 
 Hello Everybody,
 
 I have an image and a description below it. I want to
 minimize the distance between the image and the next
 line (description)
 I am using setLeading(0.7). The output Iam getting is
 that the description is written on the image itself.
 
 This is how I am doing it.
 
 
 iTextSharp::text::Image *gif =
 iTextSharp::text::Image::GetInstance(c:\\imgage1.jpg);
   gif-Alignment =
 iTextSharp::text::Image::MIDDLE_ALIGN;
   gif-ScaleToFit(470,800);
   document-Add(gif);
 
   Paragraph*p4=new
 Paragraph(this-txtdescription1-Text,font0);
   p4-set_Leading(0.7);
   p4-Alignment=
 iTextSharp::text::Image::MIDDLE_ALIGN;
   document-Add(p4);  
 
 Else where I am drawing a table and a description with
 setLeading(0.7) between the two,
 it works, but not here. 
 What is wrong ?
 Thank you.
 Minatara.
 
 

 
 Looking for a deal? Find great prices on flights and hotels with Yahoo!
 FareChase.
 http://farechase.yahoo.com/
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/setLeading-Problem-tf4528572.html#a12925931
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] 64-bit iText Version?

2007-09-27 Thread mister bean

There are several standard reasons for using 64-bit Java. Two principal ones:

1) your app needs more than 4GB of heap
2) your Java apps needs to run in 64-bit space. Here is IBM's description of
this particular situation: There are Java programs that have to run within
the process of a 64-bit application or subsystem. An example of this occurs
where a Stored Procedure is implemented using the Java platform within a
database such as IBM’s DB2.

Both of these circumstances seem pretty rare at the moment (vide the lack of
response to your query and no further info from the original post-er), but I
suspect they will become more common in due time.

---mr. bean


Bruno Lowagie (iText) wrote:
 
 Hoskin, Gregory Martice wrote:
 I was sending this e-mail to find out if there is a 64-bit version of 
 iText or iTextSharp that works with 64-bit systems?
 
 I honestly have no idea what this is about.
 Why would a Java developer have to care about
 the platform a JVM runs on?
 br,
 Bruno
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-64-bit-iText-Version--tf4520148.html#a12926499
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Downloading examples for itext in action book

2007-09-26 Thread mister bean

I just checked my copy of the eBook version and like the hard-copy book, it
lists four movies in Fig 8.11. To answer the specific question, the fourth
movie is Brides  by Pantelis Voulgaris. 

---mr. bean



Smirnow, Todd, DOH wrote:
 
 Please forward to the appropriate person. Thank you
 
 ---
 
  
 
 Secret question :  Question 
 
 What if the fourth movie mentioned in figure 8.11? (English title) 
 
  
 
 There is no figure 8.11. 
 
 ISBN 1932394796
 
  
 
 Please advise?
 
  
 
  
 
 Todd Smirnow
 
 (505) 222-8626
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
  
 
  
 
 
 
 Confidentiality Notice: This e-mail, including all attachments is for the
 sole use of the intended recipient(s) and may contain confidential and
 privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited unless specifically provided under the New
 Mexico Inspection of Public Records Act. If you are not the intended
 recipient, please contact the sender and destroy all copies of this
 message. -- This email has been scanned by the Sybari - Antigen Email
 System. 
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Downloading-examples-for-itext-in-action-book-tf4524380.html#a12909125
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] converting word doc to PDF

2007-09-20 Thread mister bean

There are many utilities on the Web that do this very well by emulating a
printer. If you search, you will find them.

---mr. bean


tushar Patel wrote:
 
 Hi there!
 i was looking into the .net version iTextSharp. i found it very
 interesting
 and useful.
 i was wondering whether this library is capable enough to convert Word
 document into pdf?
 if so, i would applicate if u can provide me some sample code.
 
 Thanks
 
 -- 
 Tushar Patel
 Software Engineer (Microsoft .Net Technologies)
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/converting-word-doc-to-PDF-tf4488380.html#a12801173
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Custom resolution

2007-09-17 Thread mister bean

What resolution do you use? TIA, ---mr. bean


Bill Ensley wrote:
 
 In my own rendering app, I also use a fixed resolution.
 
 It does actually make sense.
 
 -Bill Ensley
 www.bearprinting.com
 
 
 It turns out that for Acrobat 8, for performance reasons, we 
 switched  
 from use screen resolution to a fixed resolution.   The reason for  
 110 is future proofing...
 
 Leonard
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Custom-resolution-tf4331269.html#a12748127
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Problem with the leading of a Paragraph

2007-09-11 Thread mister bean

That will always happen when font-size = leading-size. Font size does not
refer to the maximum height of the characters. 

For this reason, leading is generally 1.2x - 1.5x font size. Change the
leading accordingly, and the problem should go away.

---mr. bean

 re 


Eric Summkeller wrote:
 
 I create one paragraph with a font size of 40 and one paragraph with a
 font 
 size of 10. The leading of each paragraph is its font size. My problem is, 
 that the first paragraph overwrites the text of the second paragraph.
 Any ideas what I could do to resolve this problem?
 
 Example:
 Phrase phrase1 = new Phrase(_Test,FontFactory.getFont(FontFactory.TIMES,
 40, 
 Font.NORMAL,new Color(255, 0, 0)));
 
 Paragraph p1 = new Paragraph(, phrase1.getFont());
 p1.setLeading(phrase1.getFont().getSize());
 
 Phrase phrase2 = new Phrase(_Test,FontFactory.getFont(FontFactory.TIMES,
 10, 
 Font.NORMAL,new Color(255, 0, 0)));
 
 Paragraph p2 = new Paragraph(, phrase2.getFont());
 p2.setLeading(phrase2.getFont().getSize());
 
 p1.add(phrase1);
 p2.add(phrase2);
 
 document.add(p1);
 document.add(p2);
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-the-leading-of-a-Paragraph-tf4420120.html#a12608615
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Keeping Text Together

2007-08-21 Thread mister bean

Section 7.2.2 et seq. of Bruno's book gives a similar simple alternative.

---mr. bean



Paulo Soares wrote:
 
 It probably doesn't work. The recommended way is to put the text inside a 
 PdfPTable with a single column and no padding and with split rows false.
 
 Paulo
 
 - Original Message - 
 From: Michael McCall [EMAIL PROTECTED]
 To: itext-questions@lists.sourceforge.net
 Sent: Tuesday, August 21, 2007 8:36 PM
 Subject: [iText-questions] Keeping Text Together
 
 
 To Whom It May Concern:
 
 
 
 I am currently developing a web application that uses Spring Framework
 and iText to take in values (through a series of forms) and generate a
 PDF letter from them.
 
 
 
 The length of the body of my letter is dynamic, but I want the closing
 of my letter to always stay together on one page.  I have a Java class
 with the following code in it:
 
 
 
 String x = firstName +   + lastName + \n + title;
 
 
 
 Paragraph closing = new Paragraph(Sincerely,\n\n\n\n + x + \nEndeca
 Technologies, Inc.);
 
 closing.setKeepTogether(true);
 
 document.add(closing);
 
 
 
 Simply put:  it's not working.  As the document changes based on user
 input, the paragraph often splits to two pages, putting Sincerely, at
 the end of one page and stranding the rest of the text on the following
 page.  I even printed the value of closing.getKeepTogether() in the
 PDF to double-check, and it does in fact say true.
 
 
 
 I am not having any other problems with my app currently, so I don't
 think there are any configuration problems that might be behind this.  I
 looked through the documentation and the mailing list archives, and I
 could not find any examples or related problems.  I've seen your How
 deep is blue? FAQ, so I hate to ask such a vague question, but...why
 doesn't it work?  Really, I am looking for any suggestions you might
 have or for you to tell me that it's actually just a bug you're fixing
 for the next version.
 
 
 
 Thanks.
 
 
 
 ___
 
 Michael McCall
 IT Intern
 T 617.674.6330
 M 860.967.6178
 [EMAIL PROTECTED]
 
 Endeca
 101 Main Street, 14th Floor
 
 Cambridge, MA, 02142
 www.endeca.com http://www.endeca.com/
 
 find / analyze / understand
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Keeping-Text-Together-tf4307722.html#a12266349
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Licensing issue with iText 2.0.4

2007-08-14 Thread mister bean

This is a theme that goes back quite a few years. Sun essentially wanted to
say that Java should not be used for software on which lives might depend.
Other versions that are more detailed relating to other dangerous activities
and Java have also been used. Apple has used similar warnings in its
licenses. For  more on this topic, see
http://yakovfain.javadevelopersjournal.com/java_failure_can_lead_to_death.htm

Hard to know what course of action could be taken, as you suggest. If Sun
won't support the software in situations where lives are on the line, who
would step up to the plate and assume that liability?

Best wishes,

mr. bean




Darryl Miles wrote:
 
 Paulo Soares wrote:
 This looks like nit-picking but I'll let Bruno answer this one.
 
 Paulo
 
 
 I presume the non-nuclear restriction was a copy of the original Sun 
 licensing which has the non-nuclear facility caveat ?  What was the 
 intended purpose at Sun of this ?  What was the intended purpose by 
 iText authors by mimicking this ?
 
 * Just a user beware the software should not be used in any real-time 
 life threatening computerized system (due to the garbage collection 
 effect with non-linear processing time) ?
 
 * Because the authors have a specific issue with the software being used 
 within the atomic nuclear industry, if so was this to cover power 
 stations ?  material processing?  weapons ?  or some form of 
 anti-nuclear protest ?
 
 
 If the original conception of the thought that is embodied by the 
 wording can be understand then the intent of the statement can be fully 
 understood and a course of action be taken.
 
 Darryl
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Licensing-issue-with-iText-2.0.4-tf4262108.html#a12140703
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] pdf to html

2007-08-07 Thread mister bean

this was just asked and answered on this list:
http://www.nabble.com/How-to-convert-pdf-pages-to-image-pages-tf4228087.html

best wishes, --mr. bean



ssinai wrote:
 
 I'm trying to figure out how to display pdf images in an html file.  I
 guess the way to do this is to convert from pdf to gif or png or jpg, and
 then use HtmlWriter to put them into an html document.  Does anyone have
 any good advice as to the best way to convert from pdf to the other image
 formats?
 
 Thanks,
 Steve Sinai
 

-- 
View this message in context: 
http://www.nabble.com/pdf-to-html-tf4232618.html#a12043406
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Dynamic content in document header Wrong thread

2007-07-25 Thread mister bean

Chandrajeet:

I am not sure there is any link between your post and the original query
below by Clair Cabal. Chandrajeet please create a new thread and copy over
the related material (your original post and Leonard's reply) if you want to
continue this discussion. 

By creating your own thread rather than tacking on to unrelated messages,
you help the archives function as a working resource.

Thanks!

---Mister Bean

 re 


chandrajeet wrote:
 
 Hi All,
 
 I want a PDF output of a large JTable without any pagination.
 I am sending a sample output attached.
 Whatever may be the row or column count, I want that in a single page.
 With the cell colors retained.
 
 I used the following code: -
 
 Document document = new Document();
 table.setVisible(true);
 try {
 // step 2: creation of the writer
 PdfWriter writer = PdfWriter.getInstance(document, new
 FileOutputStream(FILE_NAME));
 
 // step 3: we open the document
 document.open();
 
 // step 4: we grab the ContentByte and do some stuff with it
 
 // we create a template and a Graphics2D object that
 corresponds with it
 int w = table.getWidth();
 int h = table.getHeight();
 PdfContentByte cb = writer.getDirectContent();
 PdfTemplate tp = cb.createTemplate(w, h);
 Graphics2D g2 = tp.createGraphics(w, h);
 tp.setWidth(w);
 tp.setHeight(h);
 table.paint(g2);
 g2.dispose();
 cb.addTemplate(tp, 50, 400);
 }
 catch(DocumentException de) {
 System.err.println(de.getMessage());
 }
 catch(IOException ioe) {
 System.err.println(ioe.getMessage());
 }
 // step 5: we close the document
 document.close();
 
 But this prints absolutely nothing.
  Thanks
 Chandrajeet Padhy.
 
 
 
 
 - Original Message 
 From: Clair W. Cabal [EMAIL PROTECTED]
 To: itext-questions@lists.sourceforge.net
 Sent: Wednesday, June 20, 2007 11:30:51 AM
 Subject: [iText-questions] Dynamic content in document header
 
 
 
 
  
  
 
 !--
 
  /* Style Definitions */
  p.MsoNormal, li.MsoNormal, div.MsoNormal
   {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:Times 
 New
 Roman;}
 a:link, span.MsoHyperlink
   {color:blue;text-decoration:underline;}
 a:visited, span.MsoHyperlinkFollowed
   {color:purple;text-decoration:underline;}
 span.EmailStyle17
   {font-family:Arial;color:windowtext;}
  _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
 div.Section1
   {}
 --
 
 
 
 
 
 
 My task is this:  create a pdf report document of many
 pages where each page has a header with both fixed content and dynamic
 content
 (the value changes periodically throughout the report).  
  
 
   
  
 
 I have been unable to accomplish this.  I have a class
 that builds the report and a class that builds the header which extends
 PdfPageEventHelper.  The PdfPageEventHelper class has access to the
 attributes that periodically change in the report class.  I initialize the
 variables that need to display in the onStartPage method, and display the
 header information in the onEndPage method.  Whatever the LAST variable
 values are for the report is what gets printed in the header of every
 page.  So, it looks like the PdfPageEventHelper methods do not execute
 until the entire document is complete – by which time I have lost the
 ability to capture the values I need.  Is there a way to do this?  
  
 
   
  
 
 Clair W. Cabal
  
 
 Nelson  Associates
  
 
   
  
 
 
 
 
 
 
 
 
 
 

 
 Get the Yahoo! toolbar and be alerted to new email wherever you're
 surfing.
 http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
  
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Dynamic-content-in-document-header-tf4142938.html#a11790976
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy

Re: [iText-questions] Error in Chapter object!

2007-07-20 Thread mister bean

If you look at this code of yours with fresh eyes, I think you'll discover a
problem:

...

Phrase phrase2 = new Phrase();
phrase1.add(chunk2);

par.add(phrase1);
par.add(phrase2);

...

Phrase2 is empty. Try adding chunk2 to phrase2 and see if the problem goes
away.

Best wishes,

---Mister Bean

 re 

Eric Summkeller wrote:
 
 First I create two Phrase objects with different Fonts. The first created 
 Phrase has a bold Font and the second not. After that I add those both
 Phrase 
 objects into a Paragraph. I create the Paragraph object with the first
 Font 
 because I would like to create a Chapter out of this Paragraph and the
 number 
 should have the same style like the first added Phrase object. The problem
 is 
 that the second added Phrase object is now bold too although the Font of
 this 
 Phrase isn't bold. Is this an error or do I something wrong in my 
 implementation?
 
 My code:
 
 Font[] fonts = new Font[2];
 fonts[0] = new Font(Font.TIMES_ROMAN, Font.DEFAULTSIZE, Font.BOLD);
 fonts[1] = new Font(Font.TIMES_ROMAN, Font.DEFAULTSIZE, Font.NORMAL);
 
 Paragraph par = new Paragraph(, fonts[0]);
 
 Chunk chunk1 = new Chunk(Test_Bold, fonts[0]);
 Phrase phrase1 = new Phrase();
 phrase1.add(chunk1);
 
 Chunk chunk2 = new Chunk(Test_Normal, fonts[1]);
 Phrase phrase2 = new Phrase();
 phrase1.add(chunk2);
 
 par.add(phrase1);
 par.add(phrase2);
 
 Chapter chapter = new Chapter(par, 1);
 
 document.add(chapter); 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-in-Chapter-object%21-tf4115250.html#a11702749
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Adding borders to MultiColumnText

2007-07-06 Thread mister bean

If you're looking for a specific method/API, there isn't one that I know of
in MCT (I've just been looking at the code). 

You will have to draw the lines manually (that is, using lower level
methods). Bruno has an example that points you in the right direction on p.
208 of the book. 

---Mister Bean




iTEXT USER wrote:
 
 Hi,
 I have used MultiColumnText to add PdfPTables continoulsly as below.
 I need to have line borders for the columns. Is there any way to draw line
 borders between the columns of MultiColumnText. 
 For e.g. We have setBorder(int border) method for PdfPCell. I need to have
 similar functionality.
 Expecting your suggestions ASAP.
 
 -
 package com.itext.pdf.client;
 
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 
 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.Paragraph;
 import com.lowagie.text.pdf.MultiColumnText;
 import com.lowagie.text.pdf.PdfPCell;
 import com.lowagie.text.pdf.PdfPTable;
 import com.lowagie.text.pdf.PdfWriter;
 
 public class Test {
 
   /**
* @param args
*/
   public static void main(String[] args) {
   //Creating new document 
   Document doc = new Document();
   try {
   PdfWriter.getInstance(doc, new FileOutputStream(
   files/multicolumntext.pdf));
   //Open it 
   doc.open();
   
   //New Multicolumn text 
   MultiColumnText mct = new MultiColumnText();
   mct.addRegularColumns(doc.left(), doc.right(), 0.1f, 4);
   //Adding PdfPTables 
   for (int i = 0; i  200; i++) {
   PdfPTable childTable = new PdfPTable(1);
   Paragraph paragraph = new Paragraph(TEST 
 PARAGRAPH +i);
   PdfPCell pCell = new PdfPCell(paragraph);
   pCell.setBorder(0);
   childTable.addCell(pCell);
   
   
   mct.addElement(childTable);
   }
   //Adding MultiColumnText to document
   doc.add(mct);
   //Finally closing document
   doc.close();
   } catch (FileNotFoundException e) { 
   e.printStackTrace();
   } catch (DocumentException e) { 
   e.printStackTrace();
   }
 
   }
 
 }
 
 Regards,
 iTEXT USER
 

-- 
View this message in context: 
http://www.nabble.com/Adding-borders-to-MultiColumnText-tf4033727.html#a11459412
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] absolute position in RTF

2007-05-30 Thread mister bean

Generally not. Because RTF is paginated when it's rendered, it's impossible
to know beforehand what the exact location of any given element will be. 

---Mister Bean


Ruskin Dantra wrote:
 
 Hi All,
 I have already searched examples and mailing list archive and I found next
 to nothing on this topic.
 
 Is it possible to add elements (text including) to a rtf file at an
 absolute
 position? I know that rtf is very different from pdf but just wondering if
 there is way to do this using itext...I wouldn't mind it being
 complicated,
 as long as it is possible.
 
 Any help on the matter will be appreciated.
 
 Cheers
 Ruskin
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/absolute-position-in-RTF-tf3842843.html#a10882216
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] absolute position in RTF

2007-05-30 Thread mister bean

This is probably off-topic on this list, but aren't the limited
paragraph-positioning codes in RTF still subject to the vagaries of
pagination, thereby making absolute location quasi-impossible, barring
unusual kinds of docs? (i.e., you can locate a paragraph on the page, but
you can't know beforehand which page). I defer to you as the RTF maven, of
course, but am curious. TIA,

---Mister Bean


Mark Hall-6 wrote:
 
 Hi,
 
 I'll reply to the original e-mail.
 
 Yes, in theory it is possible, but iText does not support this. The only
 way 
 would be to read the RTF specification and add the required RTF codes 
 directly via the RtfDirectContent class.
 
 Greetings,
 Mark
 On Wednesday 30 May 2007, Ruskin Dantra wrote:
 Hi All,
 I have already searched examples and mailing list archive and I found
 next
 to nothing on this topic.

 Is it possible to add elements (text including) to a rtf file at an
 absolute position? I know that rtf is very different from pdf but just
 wondering if there is way to do this using itext...I wouldn't mind it
 being
 complicated, as long as it is possible.

 Any help on the matter will be appreciated.

 Cheers
 Ruskin
 
 
 
 -- 
 Q:What does it say on the bottom of Coke cans in North Dakota?
 A:Open other end.
 
 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 DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/absolute-position-in-RTF-tf3842843.html#a10884646
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText to PostScript?

2007-05-15 Thread mister bean

iText does not do this. 

---Mr. Bean


Steven Landry-2 wrote:
 
 Is there any way for iText to output to a postscript file instead of a 
 PDF?  Or should I convert the resulting PDF to PS using Ghostscript?
 
 Thank you.
 
 Steve
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/iText-to-PostScript--tf3761960.html#a10634870
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Author metadata

2007-05-03 Thread mister bean

Rats, I misread your original post. My answer applies to new docs. Don't know
about existing docs. Sorry. blush

--Mister Bean


mister bean wrote:
 
 Yes, it is. You can change all metadata except Producer, which by
 convention uses an internal iText string. The methods are described in pp.
 39-41 of the iText book. 
 
 Hope that helps,
 
 Mister Bean
 
 
 
 Stefano-32 wrote:
 
 Dear all,
  reading the documentation online and the API it wasn't clear to  
 me if it is possible to change the metadata of an existing document  
 through iText.
  May I have any hint on this?
 
 Thanks a lot,
 
  Stefano
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Author-metadata-tf3690076.html#a10316637
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Small bug in PageSize.java

2007-04-24 Thread mister bean

The Rectangle defined for ID-3 in PageSize.java is listed as 254x249. In
fact, it should be *354* x249. As you correctly note in the comments, ID-3
is the same size as B7 paper rotated. You have the dimensions correct on B7,
but they appear to have been mistyped when rotated for ID-3.

---Mister Bean
-- 
View this message in context: 
http://www.nabble.com/Small-bug-in-PageSize.java-tf3638561.html#a10160543
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Best Font to support all European languages ?

2007-04-19 Thread mister bean

Arialuni.ttf is a solution if you want a sans serif font. If you're
generating long documents or ones with large blocks of texts, you want serif
fonts such as those I mentioned below. If not, then arialuni.ttf should
work. If you are based in the US, you will discover that arialuni.ttf is
hard to find, as it is not installed by default on US systems. In such a
case, the following link provides additional info:
http://support.microsoft.com/kb/287247#appliesto (but requires Microsoft
Office.) 

I can't vouch for this font (I don't use it) so I don't know if it fulfills
your requirements of a small embedded size. Perhaps Pablo or another forum
member can speak to this. Good luck.

---Mister Bean

 re 


Paulo Soares wrote:
 
 arialuni.ttf has the most complete glyph collection. Embedding will make
 the PDF work in any OS.
 
 Paulo 
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Harakiri
 Sent: Thursday, April 19, 2007 12:18 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] Best Font to support all 
 European languages ?
 
 Thanks for the reply, the font looks promising.
 
 As always with embedded fonts - they have to be as
 small as possible to not make a small pdf to large.
 
 Do you know if embedding this font (or any other) will
 work on other OS(Languages) too ?
 
 Is Times Roman better then Arial ? Or is the gentium
 the better choice ?
 
 Thanks
 
 --- mister bean [EMAIL PROTECTED]
 wrote:
 
  
  If you're working on Windows the charmap tool
  (C:\WINDOWS\system32\charmap.exe) permits you to see
  the entire set of
  implemented glyphs in a particular font file. The
  version of TimesRoman that
  is bundled with Windows, it appears, covers all
  European fonts, plus
  Cyrillic (Russian) and some, (possibly all) Arabic.
  Another font with all
  the European characters and many glyphs with
  multiple diacritics is Gentium,
  which is available for free
 
 (http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem
 _id=Gentium)
  and you can see there in the supporting PDFs the
  remarkable number of glyphs
  in the font.
  
  Certainly, other list members can point you to other
  useful resources.
  
  ---Mister Bean
  
  p.s. Bruno gives a list of font sites in the
  appendix to his book, by the
  way.
  
   re 
  
  
  Harakiri wrote:
   
   Hello,
   
   i read the peace example with multiple languages
  and
   their font. Im still unsure on the font choice
  tho, so
   far it seems that arial.ttf is able to display all
   european languages.
   
   Can anyone suggest the right font ? Specifically
  the
   major languages like france,german and russian
  should
   be supported in one font set. These do work on my
   windows machine but i cant check on a russian
  winxp
   for example.
   
   Thanks
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-Font-to-support-all-European-languages---tf3600543.html#a10083579
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Best Font to support all European languages ?

2007-04-18 Thread mister bean

If you're working on Windows the charmap tool
(C:\WINDOWS\system32\charmap.exe) permits you to see the entire set of
implemented glyphs in a particular font file. The version of TimesRoman that
is bundled with Windows, it appears, covers all European fonts, plus
Cyrillic (Russian) and some, (possibly all) Arabic. Another font with all
the European characters and many glyphs with multiple diacritics is Gentium,
which is available for free
(http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=Gentium)
and you can see there in the supporting PDFs the remarkable number of glyphs
in the font.

Certainly, other list members can point you to other useful resources.

---Mister Bean

p.s. Bruno gives a list of font sites in the appendix to his book, by the
way.

 re 


Harakiri wrote:
 
 Hello,
 
 i read the peace example with multiple languages and
 their font. Im still unsure on the font choice tho, so
 far it seems that arial.ttf is able to display all
 european languages.
 
 Can anyone suggest the right font ? Specifically the
 major languages like france,german and russian should
 be supported in one font set. These do work on my
 windows machine but i cant check on a russian winxp
 for example.
 
 Thanks
 
 __
 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 DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-Font-to-support-all-European-languages---tf3600543.html#a10063033
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] How to open an PDF file from Java Application

2007-04-11 Thread mister bean

Not quite sure what you mean. But if you're trying to display/render the PDF
file within Swing, iText does not do this.

---Mr. Bean


Tapan Maru wrote:
 
 Hi
 
 I am developing a GUI application in java swing. In that i am making pdf
 file from JTable data using iText API. It is working smoothly with out no
 errors. now on clicking one button, I want to open PDF file from my swing
 application.
 
 Is there any class in iText API through which I can achieve this?
 
 Tapan Maru
 Sun Certified Java Programmer
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-open-an-PDF-file-from-Java-Application-tf3557565.html#a9934053
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] HtmlWorker: Parse Special characters

2007-03-19 Thread mister bean

Could you rephrase your question so that it has some relation to iText?
Thanks, ---Mister Bean


kkdusi wrote:
 
 How to parse HTML special characters like micro; divide; etc.. as
 defined in w3c.org
 

-- 
View this message in context: 
http://www.nabble.com/HtmlWorker%3A-Parse-Special-characters-tf3428925.html#a9559333
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] HTML to RTF/ PDF to RTF

2007-03-07 Thread mister bean

iText does not do either of the things you need. You can generate PDFs and
RTFs using iText, but it does not do either conversion you describe. 

---Mr. Bean


Todd McGrath-3 wrote:
 
 Hi,
 
 I was under the impression that I could use iText to convert HTML to RTF. 
 Is
 that true?  Do you have any recomendations?  I also need a way to convert
 PDF
 to RTF.
 
 Thanks!
 Todd
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/HTML-to-RTF--PDF-to-RTF-tf3364708.html#a9361768
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Converting *to* itext from existing html

2007-03-05 Thread mister bean

iText does not do this. 

You'll probably find it easier to modify your generated HTML so that it
works the same on the browsers you use.

best, 

---mister bean

 re 


kris carlier wrote:
 
 Good morning/afternoon/evening,
 
 not being the programmer myself, but merely the one who just subscribed to
 the mailinglist in order to post the question, plse bear with me.
 
 Situation: an existing web-application using server-side Java, generating
 HTML output that gets printed afterwards.
 Not identical on all types of browsers, so the conversion to PDF is (one
 of ?) the correct solution(s).
 AFAIU, the idea would be to describe the lay-out of the page(s) in i-text
 format, and later on, using a different writer, generating html or pdf.
 Don't hesitate to correct me when wrong.
 
 Question: is there something that can at least roughly convert existing
 html code to the i-text format ? Being an illiterate, it looks rather
 obvious to me, that we're not the first being confronted with this. Since
 itext describes a document, just as HTML up to a certain level, there
 should be some similarities, that might be convert-able ? Sure, for
 employment POV, the best solution is to start from scratch, but is there a
 one-to-best solution, being able to use this approach as a jumpstart ?
 
 thx in advance,
 
 kr=
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 

-- 
View this message in context: 
http://www.nabble.com/Converting-*to*-itext-from-existing-html-tf3347248.html#a9307723
Sent from the iText - General mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


  1   2   >