Re: [iText-questions] [off-topic] iText in California

2010-06-17 Thread Bruno Lowagie
Daniel Essin wrote:
 northern or southern?

The plan is to fly to San Francisco.
Spend some days there.
Do some business in Palo Alto.
Then drive from SF to LA in two days
(spending the night somewhere in between).
Spend one or two days in LA,
then fly back to Europe from LA.

That's the plan for the time being ;-)
best regards,
Bruno

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

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


Re: [iText-questions] Spam: Spam: External Dependencies

2010-06-17 Thread 1T3XT info
Mark Storer wrote:
 However, it relies on some other .jar files... from bouncy castle,
 which I thought were included in the distribution.  

As soon as Encryption or Digital Signatures are involved,
or if you want to compile iText yourself, you need the
Bouncy Castle jars (pure Java).

 iTextAsian.jar  iTextAsianCmaps.jar.  Is the hyphenation stuff still
 its own jar?

iTextAsian.jar could be necessary if you want to use CJK fonts,
but iText compiles without iTextAsian.jar and I for one never
had the need to include iTextAsian.jar in the CLASSPATH of one
of my projects.

I don't know if anyone is using iTextAsianCmaps.jar.
The circumstances where you'd need that jar are very exceptional.

The hyphenation jar contains XML files that are necessary as
soon as you use the hyphenation functionality.
iText compiles without them, and executes even if the jar isn't
there, but you'll see that not one word is hyphenated if it's
missing, even if you ask iText to use the hyphenation functionality.

I hope this completes the answer ;-)
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


Re: [iText-questions] Compare font size with Word

2010-06-17 Thread 1T3XT info
Mark Storer wrote:
 1) In PDF, we always use 72 DPI (dots per inch).
 2) In windows, you can have a variety of DPIs, though 96 seems pretty 
 standard.

Another thing to pay attention to:
many viewers perform a shrink to fit page size operation.
This varies from printer to printer and can cause a font to
look smaller.

You can avoid this by setting the print scaling to none.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


Re: [iText-questions] External Dependencies

2010-06-17 Thread Alexis Pigeon
Hi Markus,

On 16 June 2010 20:28, Markus Mahlberg mahlb...@dominic.de wrote:

 Hello list!

 I would like to know if any of the iText versions needs native libraries or
 if it's 100% pure.
 As far as my limited Java knowledge allowed me to read and understand the
 sources,  I would assume there aren't any external dependencies, but I need
 to make sure.

 Sorry for bothering the list, but I am a bit pressed for time.


The only 3rd party library you might need is BouncyCastle, in case of
needing to sign your PDFs.

More information can be found at
 http://www.itextpdf.com/ 

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

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

[iText-questions] IText and Android

2010-06-17 Thread Arindam Ray
Hi All,
I have to develop an android application which would write a PDF file
dynamically.
My question is it possible to use iText in Android based applications?

Please let me know if it is possible.Any other suggestions will also be
welcome.

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

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

[iText-questions] iText Java disable print pdf

2010-06-17 Thread govind


Hi Gurus,

We are using the following code to disable Print option in PDF. Works really
well.

PdfReader reader = new PdfReader(my-old-file.pdf);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(my-new-file.pdf));
stamper.setEncryption(my-owner-password.getBytes(),
my-user-password.getBytes(),
PdfWriter.AllowCopy, PdfWriter.STRENGTH40BITS);
stamper.close();

Everything was hunky dory till yesterday. We decided to update PDF Reader
version to 9.3 from version 8.2 The print option is not disabled anymore!
Looks like this code only works if we have Adobe Acrobat Reader 8 installed.
For other versions, it does not disable the copy or print buttons.

Please help.
Thanks

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-Java-disable-print-pdf-tp2258355p2258355.html
Sent from the iText - General mailing list archive at Nabble.com.

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

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


[iText-questions] Reg: display of text through column text

2010-06-17 Thread Karthika Rachna R
Hi All,

I have a requirement to wrap text with in a rectangle. I'm using the simple 
column text for doing the same.
  ColumnText columnText = new ColumnText(pdfTemplate);
  columnText.setSimpleColumn(x, y, x+boxWidth, y+boxHeight,  
columnText.getLeading(), Element.ALIGN_LEFT);
  columnText.setText(new Phrase(text, f));
  columnText.go();

The below shown diagram is the result of the above code.

[cid:image001.png@01CB0E27.8E82EED0]

Actually my requirement is that I need to get rid of the gap between 2 lines.

Please guide me through this.


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

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

[iText-questions] Save and load states of an embed swf

2010-06-17 Thread die_ekschperten
Hello,

I am trying to save the states of a swf (embed in pdf) when closing and opening 
Acrobat reader (version 9.3). This should be possible with acrobat functions 
ExternalInterface.call(multimedia_saveSettingsString, string) and 
ExternalInterface.call(multimedia_loadSettingsString). That works for me, if 
I embed this swf file 
(http://blogs.adobe.com/pdfdevjunkie/2008/08/saving_the_state_of_swf_conten.html)
 with Adobe Acrobat Pro 9, but it is not working when embedding the swf with 
iText.

All it has to do, is to save and load the state of the slider when closing and 
opening the reader... Probably my java file for producing the pdf file with the 
embed swf is not correct. Here are my codes:

The mxml file: http://stevenbirr.bplaced.net/filemanager/SaveSettings.mxml
The resulting swf: http://stevenbirr.bplaced.net/filemanager/SaveSettings.swf
The java file to generate the pdf with iText: 
http://stevenbirr.bplaced.net/filemanager/SaveSettings.java
The resulting pdf: http://stevenbirr.bplaced.net/filemanager/pdf3d.pdf

Steven

-- 
WM 2010: Top News, Spielpläne, Public Viewing-Termine, E-Cards und alles, 
was der Fan sonst noch braucht, gibt´s im Sport-Channel auf arcor.de.
http://www.arcor.de/rd/footer.wm2010

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

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


[iText-questions] Images causing background colours to change

2010-06-17 Thread Lynch, Ross
Hi

I've added png images to certain pages of my PDF and it seem sto have
changed the background colour of the tables on that page.

 

I am using BaseColor(22, 80, 255) as the background colour of my table
headers. It seems to Darken when I add the images to the page.

 

I was wondering has anyone else experience issues around this and have
they found a soloution?

 

Thanks

 

Ross Lynch

Retail IT Engineer, e-Business Team

*Irish Life, Lower Abbey St, Dublin 1 

*01 856 3080

@ ross.ly...@irishlife.ie  

   

P please don't print this e-mail unless you really need to

 


--
This is a confidential communication and is intended only for the addressee 
indicated in the message (or duly authorised to be responsible for the delivery 
of the message to such person). You are specifically prohibited from copying 
this message or delivering the same, or any part thereof, to any other person, 
whomsoever or howsoever, unless you receive written authorisation from us to 
do. 

If you are anyone other than the intended addressee, or person duly authorised 
and responsible for the delivery of this message to the intended addressee, you 
should destroy this message and notify us immediately. 

Please note that we accept no responsibility whatsoever in the event that this 
message or any other email message or any part thereof becomes known or is 
communicated to anyone other than the intended recipient or other person 
authorised in writing by us to receive it, howsoever arising and disclaim all 
liability for any losses or damage which may be sustained by any person as a 
result thereof.

Irish Life Assurance plc is regulated by the Financial Regulator.

Irish Life is a member of the Irish Life and Permanent plc group. Irish Life 
Assurance plc is a company registered in Ireland. Registered office is situated 
at Irish Life Centre, Lower Abbey Street, Dublin 1. Registered Number 152576.


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

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

Re: [iText-questions] Images causing background colours to change

2010-06-17 Thread Leonard Rosenthol
Set the page's transparency blending space to RGB.

Search the archives for NUMEROUS references to this.

OR read the book!

Leonard

From: Lynch, Ross [mailto:ross.ly...@irishlife.ie]
Sent: Thursday, June 17, 2010 11:10 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Images causing background colours to change

Hi
I've added png images to certain pages of my PDF and it seem sto have changed 
the background colour of the tables on that page.

I am using BaseColor(22, 80, 255) as the background colour of my table headers. 
It seems to Darken when I add the images to the page.

I was wondering has anyone else experience issues around this and have they 
found a soloution?

Thanks

Ross Lynch
Retail IT Engineer, e-Business Team
*Irish Life, Lower Abbey St, Dublin 1
*01 856 3080
@ ross.ly...@irishlife.iemailto:ross.ly...@irishlife.ie
 [cid:image001.jpg@01CB0E19.0DA9E380] [cid:image002.jpg@01CB0E19.0DA9E380]
P please don't print this e-mail unless you really need to


--

This is a confidential communication and is intended only for the addressee 
indicated in the message (or duly authorised to be responsible for the delivery 
of the message to such person). You are specifically prohibited from copying 
this message or delivering the same, or any part thereof, to any other person, 
whomsoever or howsoever, unless you receive written authorisation from us to do.



If you are anyone other than the intended addressee, or person duly authorised 
and responsible for the delivery of this message to the intended addressee, you 
should destroy this message and notify us immediately.



Please note that we accept no responsibility whatsoever in the event that this 
message or any other email message or any part thereof becomes known or is 
communicated to anyone other than the intended recipient or other person 
authorised in writing by us to receive it, howsoever arising and disclaim all 
liability for any losses or damage which may be sustained by any person as a 
result thereof.



Irish Life Assurance plc is regulated by the Financial Regulator.



Irish Life is a member of the Irish Life and Permanent plc group. Irish Life 
Assurance plc is a company registered in Ireland. Registered office is situated 
at Irish Life Centre, Lower Abbey Street, Dublin 1. Registered Number 152576.





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

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

[iText-questions] Pdf Creation With Japanese Characters

2010-06-17 Thread jitendra.kumar6
Hi All,
 
I am new to itext library. I have one requirement to create a pdf with
Japanese character.
 
I am trying to use itext library. But I am getting following limitation.
 
1) When I am using Itext 5.0.1, I'm not getting Japanese character.
2) When I am using Itext 2.0.4, I am not able to get PdfPCell rowspan
function.
 
Could you please clarify, which version would be used to fulfill both
requirement.
 
Thanks  Regards
Jitendra Kumar
 
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Pdf Creation With Japanese Characters

2010-06-17 Thread Paulo Soares
Show us your code.

Paulo


From: jitendra.kum...@wipro.com [mailto:jitendra.kum...@wipro.com]
Sent: Thursday, June 17, 2010 11:05 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Pdf Creation With Japanese Characters

Hi All,

I am new to itext library. I have one requirement to create a pdf with Japanese 
character.

I am trying to use itext library. But I am getting following limitation.

1) When I am using Itext 5.0.1, I'm not getting Japanese character.
2) When I am using Itext 2.0.4, I am not able to get PdfPCell rowspan 
function.

Could you please clarify, which version would be used to fulfill both 
requirement.

Thanks  Regards
Jitendra Kumar



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

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

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

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

Re: [iText-questions] [off-topic] iText in California

2010-06-17 Thread sagolf
You are doing both then.  SF to LA is about 7-8 hours on the freeway 
(highway/roadway)  Avg speed about 55mph.
There really aren't that many places to spend the night in between worth noting 
except maybe Santa Barbara which is about 90 minutes from LA.

As a first time visitor, I would suggest you sign up for some scenic tour of 
San Francisco if you have the time or perhaps visit fisherman's wharf.  From 
there you can get to little Italy (northbeach) or chinatown which are both 
within a mile from the wharf.  You might want to book tickets on a cruise on 
the bay or visit Alcatraz island.

As for LA, there are all the theme parks to see (Universal Studios, Disneyland, 
etc..),  Both take about a day to see so plan accordingly.  You could go to 
Hollywood to see the star walk (stars in the pavement that represent names in 
entertainment if you aren't familiar.  There are also things like Mann's 
Chinese theatre and other places you might recognize.  La brea tar pits are not 
too far from there either.

Anyway, have a great trip.  You will probably want to come back.  Dress for 
warm weather.  80-100s.   Oh, leave a bit more time for the LA airport when you 
leave.  It is large, crowded and it will take a bit longer to get to your plane.



- Original Message 
From: Bruno Lowagie br...@lowagie.com
To: Post all your questions about iText here 
itext-questions@lists.sourceforge.net
Sent: Wed, June 16, 2010 11:13:22 PM
Subject: Re: [iText-questions] [off-topic] iText in California

Daniel Essin wrote:
 northern or southern?

The plan is to fly to San Francisco.
Spend some days there.
Do some business in Palo Alto.
Then drive from SF to LA in two days
(spending the night somewhere in between).
Spend one or two days in LA,
then fly back to Europe from LA.

That's the plan for the time being ;-)
best regards,
Bruno

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

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


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

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


[iText-questions] Reduce memory usage when exporting nested large tables

2010-06-17 Thread George Li
Hi,

Regarding to my question a few days ago (iText's performance difference on 
WebLogic and Tomcat). I did more research and here is how:

Observation:

1.   WebLogic is hosted on Solaris 10 x86, not Windows as I thought. Sorry 
for my mistake

2.   The PDF service is slower when hosted on Solaris than on Windows, 
using the same server (i.e. WebLogic or Tomcat). The performance difference is 
more obvious (50%-70% more running time) when exporting large tables (in our 
case, table with 15-20 columns and 3000 rows takes 4-8 minutes (depending on 
platform). No image in PDF except a few logos)



So I profiled the WebLogic using jvisualvm. The WebLogic environment  is

iText version: 2.1.7
WebLogic version: 11g
JDK version: 1.6 update 20
JVM Options:
-server -Xms768m -Xmx768m -XX:CompileThreshold=8000 -XX:PermSize=48m  
-XX:MaxPermSize=128m -Xverify:none -da
CPU: 1.86 GHz
Memory: 2 GB

Jvisualvm shows that when exporting that large PDF table, the used heap size 
keeping  fluctuating violently between 250 and 550 MB. CPU usage also 
fluctuates along with the used heap size, but ¾  of them are GC activities.

So my guess is that although itext might be slower on Solaris, the root cause 
is that the table is not exported in a memory-friendly way: our code first puts 
all stuff in that table into a single Element and then calls 
Document.add(Element) once.

To fix memory usage issue, I used the idea in the example code:  add only part 
of table to Document, clear table body rows, and repeat until the whole table 
is added (below is from the example code):

//inside a loop
if (row % 50 == 0) {
document.add(table);
table.deleteBodyRows();
table.setSkipFirstHeader(true);
}

Such change reduced the running time to 1/5 - 1/8 of original case's on Tomcat 
6.0 hosted on Windows. The performance  improvement is impressive, but such 
optimization brings some questions:


1.   How do you apply such optimization to nested tables? Because our 
nested tables are constructed recursively, if I pass the Document into the 
structure, the document.add will be called in an recursive order instead of the 
sequential order I am looking for. This difference in order will ruin the 
layout.

2.   If first part is infeasible, my optimization would be that I will 
still put everything into one element and call Document.add(Element) only once, 
but I will also attach a page end event that by the end of each page, the event 
catches table(s) inserted, and deletes rows already inserted. I think this way 
would reduce memory usage, but is it doable?

Another question, I notice iText version 5 changed the package name, but  
Spring framework API is using old lowagie  package name. Is there any plan of 
solving this incompatibility issue?

Sorry for the long message. I hope I have explained my scenario clearly.

Thanks,

George

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

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

Re: [iText-questions] IText and Android

2010-06-17 Thread 1T3XT info
Arindam Ray wrote:
 Hi All,
 I have to develop an android application which would write a PDF file 
 dynamically.
 My question is it possible to use iText in Android based applications?

I've forwarded this question many times to mr. Marc Vanlerberghe:
http://www.linkedin.com/in/marcvl
I've asked him if Google would like to sponsor an iText port to
the Dalvik VM (that's the VM running the Java code on Android).

However, I didn't get any response, nor did anyone else want to
invest in an Android version of iText. Unfortunately such a port
doesn't write itself, so I suggest that you find a sponsor and
somebody who can provide all the material that is needed to create
such a port. (I don't have an Android phone, nor an iPhone, I don't
even have a Blackberry, I only have a simple cell phone that can't
even connect to the internet.)
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


Re: [iText-questions] Reg: display of text through column text

2010-06-17 Thread 1T3XT info
Karthika Rachna R wrote:
 I have a requirement to wrap text with in a rectangle. I’m using the 
 simple column text for doing the same.
 
   ColumnText columnText = new ColumnText(pdfTemplate);
   columnText.setSimpleColumn(x, y, x+boxWidth, y+boxHeight,  
 columnText.getLeading(), Element.ALIGN_LEFT);
   columnText.setText(new Phrase(text, f));
   columnText.go();
 The below shown diagram is the result of the above code.

 Actually my requirement is that I need to get rid of the gap between 2 
 lines.

The gap between 2 lines has a name: the leading.
You define the leading as columnText.getLeading(),
which is kind of strange.

You should make sure that the leading corresponds
more or less with the font size. For instance 1.2
or 1.5 times the font size.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


Re: [iText-questions] Problem with PdfPCellEvent and Pagebreak in large tables

2010-06-17 Thread 1T3XT info
marsto wrote:
 Hello,
 
 i have a large table that may span about several PDF pages.
 
 In one column, i have added a rectangle (representing a checkbox) to the
 PdfPCells of the table via PdfPCellEvent.
 
 All works fine if the table does not exceed a single page.
 
 But when the table spreads about more than one PDF page, the rectangles are
 only drawn on the last page of the table.
 
 Any help will be appreciated. Thanks in advance!

Do you have a simple standalone example that reproduces the problem?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


[iText-questions] Missing images in pdf when on webserver not locally

2010-06-17 Thread tore . lovmo

Hello,

I have a web application where I am about to make a report of the users
current choices.
Using local junit testing when starting the development of this itext
implementation I had little trouble.

So i added an image as a watermark to the pages after the document was
closed, using a reader to get the document.
And the stamper to put the result onto the filestream.

But when I use the same code in my webapplication the images is missing,
no error as far as I can see.
Debugging the code I can see that the code finds the images and

PdfContentByte under = stamp.getUnderContent(i + 1);
under.addImage(img);

does not fail.
Using jetty server locally btw.

Any thougths?



Vennlig hilsen
Tore Løvmo

Please consider the environment before printing this email

*
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity whom they
are addressed. If you have received this email in error please notify
the system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
 
*image/gif--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Re: [iText-questions] Missing images in pdf when on webserver not locally

2010-06-17 Thread 1T3XT info
tore.lo...@trygvesta.no wrote:
 Hello,
 
 I have a web application where I am about to make a report of the users 
 current choices.
 Using local junit testing when starting the development of this itext 
 implementation I had little trouble.
 
 So i added an image as a watermark to the pages after the document was 
 closed, using a reader to get the document.
 And the stamper to put the result onto the filestream.
 
 But when I use the same code in my webapplication the images is missing, 
 no error as far as I can see.
 Debugging the code I can see that the code finds the images and

My first thought was to ask to check if the application server has 
sufficient permissions to get the image, but you've already checked that 
(and normally iText will throw an exception if it can't find the image, 
unless you catch that exception silently).

 PdfContentByte under = stamp.getUnderContent(i + 1);
 under.addImage(img);
 
 does not fail.
 Using jetty server locally btw.
 
 Any thougths?

Can you check if the image bytes are in the PDF?
I mean: maybe the image is copied in the PDF, but not visible for some 
reason (for instance: it's added outside the visible area of the page).

Open the PDF in a text editor and look for /Resources
Somewhere between  and , you'll find /XObjects and another pair of 
 and 
There you should find stuff like /Img0 followed by 3 0 R
This is a reference to an image stream.

If all of this sounds too complex (I like digging inside PDFs, but I 
realize not everybody enjoys it the way I do ;-) ), post the PDF and 
we'll check it for you (tomorrow).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

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

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


Re: [iText-questions] IText and Android

2010-06-17 Thread Peter van Raamsdonk
Hi,

I thought there was a way to set java apps into bytecode and run it on  
Android. I don't know if you need to make an apk of it. Check the  
developer section and SDK.
So you can make it anyway you like and you normally do.

I'm working with the emulator and have Android on the Motorola  
Milestone ( Driod in the US )

I don't know if this is what you meant...

Peter

Op 17 jun 2010, om 18:13 heeft 1T3XT info het volgende geschreven:

 Arindam Ray wrote:
 Hi All,
 I have to develop an android application which would write a PDF file
 dynamically.
 My question is it possible to use iText in Android based  
 applications?

 I've forwarded this question many times to mr. Marc Vanlerberghe:
 http://www.linkedin.com/in/marcvl
 I've asked him if Google would like to sponsor an iText port to
 the Dalvik VM (that's the VM running the Java code on Android).

 However, I didn't get any response, nor did anyone else want to
 invest in an Android version of iText. Unfortunately such a port
 doesn't write itself, so I suggest that you find a sponsor and
 somebody who can provide all the material that is needed to create
 such a port. (I don't have an Android phone, nor an iPhone, I don't
 even have a Blackberry, I only have a simple cell phone that can't
 even connect to the internet.)
 -- 
 This answer is provided by 1T3XT BVBA
 http://www.1t3xt.com/ - http://www.1t3xt.info

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

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



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

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


Re: [iText-questions] Problem with PdfPCellEvent and Pagebreak in largetables

2010-06-17 Thread Mark Storer
Sounds like a bug (base only on that description).  What version of
iText are you using?

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

 -Original Message-
 From: marsto [mailto:stonit...@adesso.de]
 Sent: Thursday, June 17, 2010 1:55 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Problem with PdfPCellEvent and Pagebreak in
 largetables
 
 
 Hello,
 
 i have a large table that may span about several PDF pages.
 
 In one column, i have added a rectangle (representing a checkbox) to
the
 PdfPCells of the table via PdfPCellEvent.
 
 All works fine if the table does not exceed a single page.
 
 But when the table spreads about more than one PDF page, the
rectangles
 are
 only drawn on the last page of the table.
 
 Any help will be appreciated. Thanks in advance!
 
 Kind regards
 --
 View this message in context: http://itext-

general.2136553.n4.nabble.com/Problem-with-PdfPCellEvent-and-Pagebreak-i
n-
 large-tables-tp2258432p2258432.html
 Sent from the iText - General mailing list archive at Nabble.com.
 


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

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

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


Re: [iText-questions] [off-topic] iText in California

2010-06-17 Thread Daniel Essin
Hi,
I live in Southern California and just made a trip to the Bay Area for 
my son's graduation from Berkeley (including a stop in Monterey on the 
return trip).

Things that I would recommend in the SF area:
- The Golden Gate Bridge
- China Town
- The Cable Car Powerhouse and Museum
- Fisherman's Wharf and Ghirardelli Square
- Golden Gate Park

Below is a list from http://members.virtualtourist.com/m/3f730/b870f/ 
that I pretty much agree with.

As far as the drive south, I would make my stop in Monterey and see 
Cannery Row and the Aquarium in Pacific Grove. This was the setting for 
John Steinbeck's Cannery Row and has both historical and scenic appeal.

In the Los Angeles area the major attractions probably break down into 
amusement parks, museums and 'other'. Most of the amusement parks have a 
lot in common. Universal City is close in and something that can work 
for a 4+ hour visit. Disneyland and the group in Orange County take 
longer to reach, cost more to enter and really require an entire day to 
make the venture worthwhile.

As far as museums, there are many but three good bets are the Norton 
Simon in Pasadena, The Getty in Westwood (requires advance parking 
reservation) and the Los Angeles County Museam of Art [LACMA] (which is 
co-located with the Tar Pits.

The other category would include things like the Tar Pits, The Queen 
Mary and the Harbor areas in Long Beach and San Pedro, the Griffith Park 
Observatory and Planetarium (just above the Hollywood sign), the 
Farmer's Market (near LACMA), the Santa Monica Pier, Will Rodgers State 
Park (on Sunset, more or less on the way to Santa Monica or Malibu).

If you've only got one or two days, I might skip the amusement parks as 
they are not that much different from amusement parks anywhere.

Dan


List from above SF web site - all the following written by the poster.
-
It is hard to pick highlights, but if I was pressed for time I would 
pick these ***

Union Square***
Chinatown***
North Beach
Embarcadero (Justin Herman Plaza/Ferry Building***)
Pier 39*** and Fisherman's Wharf***
Aquatic Park*** (nearby Ghirardelli Square**)
Martime Museum
Marina Greens***
Exploratorium
Palace of Fine Arts***
Golden Gate Promenade/Crissy Fields
Fort Point
Golden Gate Bridge***
Baker Beach
California Palace of Legion of Honor, Museum in Seacliff District
Cliff House***  Seal Rocks
Ocean Beach
Dutch Windmill

Here are 2 options -
-Great Highway to the SF Zoo or
-Cut into Golden Gate Park*** (via John F. Kennedy Drive)

In Golden Gate Park there's
Buffalo Paddock (i.e. live buffalo in a pasture)
Spreckles Lake
Stow Lake (duck feeding!)
Strybing Arboretum  Botanical Gardens
Japanese Tea Garden
California Academy of Sciences***

On 6/16/2010 11:13 PM, Bruno Lowagie wrote:
 Daniel Essin wrote:

 northern or southern?
  
 The plan is to fly to San Francisco.
 Spend some days there.
 Do some business in Palo Alto.
 Then drive from SF to LA in two days
 (spending the night somewhere in between).
 Spend one or two days in LA,
 then fly back to Europe from LA.

 That's the plan for the time being ;-)
 best regards,
 Bruno

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

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


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

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


Re: [iText-questions] HTMLWorker - table cell width for c#

2010-06-17 Thread karl56

Hello Samuli Tuomola
You are not the only one how missed it. but I needed it in C#. 
So I changed Your code to c# and it works. Thanks a lot

here the C# code:

in Htmlworker.cs
line 530
//--
  System.Collections.ArrayList CellWidths = new
System.Collections.ArrayList(); 
IncTable table = null;
while (true) 
{
IElement obj = stack.Pop();
if (obj is IncCell) 
{
  //  cells.Add(((IncCell)obj).Cell);
  //-- begin
  IncCell cell = (IncCell) obj; 
  if(cell.GetWidth()  0)
CellWidths.Add(cell.GetWidth());
  cells.Add( cell.Cell);
  //-- end
}
if (obj is IncTable) {
table = (IncTable)obj;
break;
}
}
table.AddCols(cells);
//-- begin 
if(CellWidths.Count  0) 
{
  // cells come off the stack in reverse, naturally
  CellWidths.Reverse();
  int nWidthItems = CellWidths.Count;

  int[] widths = new int[nWidthItems];
  //for(int i= nWidthItems-1; i-1; i--)
  for(int i= 0; i nWidthItems; i++)
  {
widths[i] = ((int)CellWidths[i]);
  
  }
table.SetColWidths(widths);
} 
//-- end
table.EndRow();
stack.Push(table);
skipText = true;
return;
}

incCell.cs

 public class IncCell : ITextElementArray {

private ListChunk chunks = new ListChunk();
private PdfPCell cell;

private int width=0;   //-- add this

line 95
if (value != null)
cell.Padding = float.Parse(value,
System.Globalization.NumberFormatInfo.InvariantInfo);
cell.UseDescender = true;
value = props[bgcolor];
cell.BackgroundColor = Markup.DecodeColor(value);

  //--begin
value = props[width];
if(value != null  value.EndsWith(%)) 
{
 width = Convert.ToInt32(value.Replace(%, ));
} 
  //--end
  
line 150
 public bool IsNestable() {
return true;
}
  //--begin
  public int GetWidth() {
return width;
  }
  public void SetWidth(int width) {
this.width = width;
  } 
  //--end
public override string ToString() {
return base.ToString();
}  

in IncTable.cs
public class IncTable : IElement {
private Dictionarystring,string props = new
Dictionarystring,string();
private ListListPdfPCell rows = new ListListPdfPCell();
private ListPdfPCell cols;

private int[] colWidths; // added

line 85
 public ListListPdfPCell Rows {
get {
return rows;
}
}
//--begin
public int[] GetColWidths() 
{ return colWidths; }

public void SetColWidths(int[] colWidths) 
{
  this.colWidths = colWidths;
}
//--end

line 120
 foreach (ListPdfPCell col in rows) {
foreach (PdfPCell pc in col) {
table.AddCell(pc);
}
}
  //-- begin
  try 
  {
if(colWidths != null)
  table.SetWidths(colWidths);
} catch (DocumentException e) 
{
// fail silently
  } 
  //--end
return table;
}


hope I havn't lost some code ;-)

Karl
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Re-HTMLWorker-table-cell-width-tp2169832p2258929.html
Sent from the iText - General mailing list archive at Nabble.com.

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

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


[iText-questions] pdf protection and jpeg2000 problem

2010-06-17 Thread placebo7

I use SetEncryption to add password protection to a pdf that was created from
jpeg2000 images (.jp2).
When I view it with Adobe Reader 9 everything looks ok, but when I view it
with Adobe Reader 8 the jpeg2000 images disappear and the pages where the
images should be are replaced with white pages!
This happens only with the jpeg2000 images contained in the pdf.

any ideas of what may be the problem?
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/pdf-protection-and-jpeg2000-problem-tp2259498p2259498.html
Sent from the iText - General mailing list archive at Nabble.com.

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

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


Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Ben Short
Hi,

I downloaded and built the latest source code and the exception is no
longer thrown. Now I'm left with a file that's 101KB in size but shows
no content when opened in wordpad.

Am I missing something?

Ben

On 17 June 2010 09:08, Ben Short b...@benshort.co.uk wrote:
 Hi Kevin,

 Thats for this. I'll give it a go tonight.

 Ben

 On 17 June 2010 01:17, Kevin Day ke...@trumpetinc.com wrote:

 Mark - FYI, basefont isn't required for Type3 fonts (or TrueType for that
 matter).  I had the same reaction when I first ran into this issue, but the
 spec never lies, right?  It just injects ambiguity and confusion.
 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/NPE-while-Extracting-text-tp2256512p2258064.html
 Sent from the iText - General mailing list archive at Nabble.com.

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

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



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

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


Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Mark Storer
Err... why wordpad?  Is that another way of saying all the bytes are 0x00 or 
what?  Did you try... opening it with Reader?  Or a PdfReader for that matter.

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

 -Original Message-
 From: Ben Short [mailto:b...@benshort.co.uk]
 Sent: Thursday, June 17, 2010 2:47 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] NPE while Extracting text
 
 Hi,
 
 I downloaded and built the latest source code and the exception is no
 longer thrown. Now I'm left with a file that's 101KB in size but shows
 no content when opened in wordpad.
 
 Am I missing something?
 
 Ben
 
 On 17 June 2010 09:08, Ben Short b...@benshort.co.uk wrote:
  Hi Kevin,
 
  Thats for this. I'll give it a go tonight.
 
  Ben
 
  On 17 June 2010 01:17, Kevin Day ke...@trumpetinc.com wrote:
 
  Mark - FYI, basefont isn't required for Type3 fonts (or TrueType for
 that
  matter).  I had the same reaction when I first ran into this issue, but
 the
  spec never lies, right?  It just injects ambiguity and confusion.
  --
  View this message in context: http://itext-
 general.2136553.n4.nabble.com/NPE-while-Extracting-text-
 tp2256512p2258064.html
  Sent from the iText - General mailing list archive at Nabble.com.
 
  ---
 ---
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  Buy the iText book: http://www.itextpdf.com/book/
  Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
  You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/
 
 
 
 --
 
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.itextpdf.com/book/
 Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
 You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.829 / Virus Database: 271.1.1/2944 - Release Date: 06/17/10
 04:33:00

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

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


Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Ben Short
OK so I changed the code to write the output of the Text Extraction to
a ByteArrayOutputStream. Looking at the contents of the
ByteArrayOutputStream I can see that most bytes have an int value of 0
and some have an int value of 32.



On 17 June 2010 23:12, Mark Storer msto...@autonomy.com wrote:
 Err... why wordpad?  Is that another way of saying all the bytes are 0x00 
 or what?  Did you try... opening it with Reader?  Or a PdfReader for that 
 matter.

 --Mark Storer
  Senior Software Engineer
  Cardiff.com

 import legalese.Disclaimer;
 DisclaimerCardiff DisCard = null;


 -Original Message-
 From: Ben Short [mailto:b...@benshort.co.uk]
 Sent: Thursday, June 17, 2010 2:47 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] NPE while Extracting text

 Hi,

 I downloaded and built the latest source code and the exception is no
 longer thrown. Now I'm left with a file that's 101KB in size but shows
 no content when opened in wordpad.

 Am I missing something?

 Ben

 On 17 June 2010 09:08, Ben Short b...@benshort.co.uk wrote:
  Hi Kevin,
 
  Thats for this. I'll give it a go tonight.
 
  Ben
 
  On 17 June 2010 01:17, Kevin Day ke...@trumpetinc.com wrote:
 
  Mark - FYI, basefont isn't required for Type3 fonts (or TrueType for
 that
  matter).  I had the same reaction when I first ran into this issue, but
 the
  spec never lies, right?  It just injects ambiguity and confusion.
  --
  View this message in context: http://itext-
 general.2136553.n4.nabble.com/NPE-while-Extracting-text-
 tp2256512p2258064.html
  Sent from the iText - General mailing list archive at Nabble.com.
 
  ---
 ---
  ThinkGeek and WIRED's GeekDad team up for the Ultimate
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
  lucky parental unit.  See the prize list and enter to win:
  http://p.sf.net/sfu/thinkgeek-promo
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  Buy the iText book: http://www.itextpdf.com/book/
  Check the site with examples before you ask questions:
 http://www.1t3xt.info/examples/
  You can also search the keywords list:
 http://1t3xt.info/tutorials/keywords/
 
 

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

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


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.829 / Virus Database: 271.1.1/2944 - Release Date: 06/17/10
 04:33:00

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

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


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

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


Re: [iText-questions] NPE while Extracting text

2010-06-17 Thread Kevin Day

ok - most likely the font is using an encoding that we just don't have
support for yet.  The encodings are a bit of a hack right now, so these
unusual cases are tough to deal with.

If you are willing to dig in to the code, I can provide assistance.

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

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

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