Re: [iText-questions] Polish National Characters are not getting displayed in the PDF created by iTExt

2009-03-16 Thread munesh

Hi Thank you for the response. However, i am not sure which font i should be
using to display polish national characters. The number of fonts that i have
tried on my Windows XP is:

comic,
times,
arial,
helvetica,

But i am still unalbe to get the Polish characters. I am at my wits end. It
would be of great help if someone can let me know which font and which
encoding type i should be using to display the Polish Characters in my PDF
reports generated by iText.

Thanks and Regards
munesh gupta



munesh wrote:
 
 Hi,
 
 The PDF report created by iText does not display certain polish national
 characters picked up from the database. The database encoding is
 WE8ISO8859P1. Although the same are being displayed appropriately in the
 Internet Explorer. 
 
 My Font is HELVETICA and encoding used is Cp1252. 
 
 Please help.
 Thanks and Regards
 Munesh Gupta 
 

-- 
View this message in context: 
http://www.nabble.com/Polish-National-Characters-are-not-getting-displayed-in-the-PDF-created-by-iTExt-tp22473150p22532396.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


[iText-questions] Need to add a pushbutton

2009-03-16 Thread mandar.jagtap

Hi, I am trying to add a pushbutton using stamper on specific page. I am
trying like this but not working. I can't any button in pdf output and I am
not getting any error also. Could somebody help me to resolve this?

PushbuttonField submitBtn = new PushbuttonField(stamp.getWriter(), new
Rectangle(lowerLeftX,lowerLeftY,lowerLeftX + 20,lowerLeftY + 20),Play_);

PdfFormField submitField = submitBtn.getField();

submitField.setAction(PdfAction.createSubmitForm(http://www.test.com/submit.php;,
null, PdfAction.SUBMIT_PDF));

stamp.addAnnotation(submitField, 2);

Thanks in advance
Mandar
-- 
View this message in context: 
http://www.nabble.com/Need-to-add-a-pushbutton-tp22533395p22533395.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] modifed sample, question on PDF contents

2009-03-16 Thread Leonard Rosenthol
No - articles/threads/beads have NOTHING to do with structured PDF.  See 14.7 
(Logical Structure) and 14.8 (Tagged PDF).

Leonard


On 3/16/09 12:34 AM, Mike Marchywka marchy...@hotmail.com wrote:







 From: lrose...@adobe.com
 To: itext-questions@lists.sourceforge.net
 Date: Tue, 10 Mar 2009 03:15:25 -0700
 Subject: Re: [iText-questions] modifed sample, question on PDF contents

 First, if you are going to be doing text extraction with PDF - you REALLY 
 need to read the relevant sections of the PDF Reference/ISO 32000-1 as it 
 will explain everything you need to know.

 Now, as Bruno points out, at it's core the PDF page is just a series of 
 drawing instructions (eg. moveto, drawstring, moveto, drawline, etc.) and so 
 any determination of how these elements go together must be done by various 
 heuristic models. It's complex, but many developers have written solutions.

 HOWEVER, PDF DOES support a concept called 'structured PDF' where the various 
 drawing operations are grouped into logical concepts such as paragraphs, 
 tables, etc. In such documents, you now have the information you need to make 
 higher level logical extraction possible w/o the need to guess.


Just to make sure I'm on the right track and to summarize for anyone
else who may be interested in getting information out of pictures,
it looks like the article,thread,bead notion would be the place to
look. In the PDF Reference I have, it is in chapter 8, interactive features
but I seem to recall when I first read this I did find a section
on structured documents. The PDF32000 document seems to point to chapter
14.7 for logical structure. Are there other key words that may be worth
examining?

FWIW, the reflection invokation of methods specialized to each of the
types that itext extracts from the PDF document seems to work quite well.
I started with a limited set of handlers and then as I encountered unhandled
types, I could grep the itext source code for public methods and AFAIK
that gave me some idea how to dump or traverse the new type. Not exactly
a design method but for an empirical/hacking approach it gave me
some idea what was going on.

Now on to the spec and documentation...
Thanks.

BTW, do you have any offhand thoughts or comments on using a
PDF document to contain information on molecules ?
It also occured to me that this format combined with the right
authoring tools could make a decent language for GUI code generators.
Someone was asking about this on a BlackBerry forum and
just thinking off the top of my head, it wouldn't seem
unreasonable if you already have a graphical document design tool
with form capability to use it to generate j2me code ( opposite
of what other guy was suggesting LOL).












_
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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

[iText-questions] Andrew S Moy/CHI/NTRS is out of the office.

2009-03-16 Thread Andrew S Moy

I will be out of the office starting  March 16, 2009 and will not return
until March 17, 2009.

Hello,
Please contact Bob Kawasaki (312) 630-1604 if you need any assistance
during this time, thanks.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


[iText-questions] Additional informations to a graphic to use Object Data tool in Reader?

2009-03-16 Thread Matthias Uhler

Hi there,

I'd like to add some additional informations to a graphic in a pdf.
In Adobe Reader there is a Object Data tool which should 
show these attributes by clicking on a graphic.

Therefore I produced some code..
http://www.nabble.com/file/p22539056/PDFObjectData.java PDFObjectData.java 

To me it's unclear how to get a reference between the additional content and
the graphic.

Maybe someone helps me with a hint...Thanks in advance!

BG Matthias
-- 
View this message in context: 
http://www.nabble.com/Additional-informations-to-a-graphic-to-use-%22Object-Data-tool%22-in-Reader--tp22539056p22539056.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] modifed sample, question on PDF contents

2009-03-16 Thread Mike Marchywka



 From: lrose...@adobe.com
 To: itext-questions@lists.sourceforge.net
 Date: Mon, 16 Mar 2009 06:50:27 -0700
 Subject: Re: [iText-questions] modifed sample, question on PDF contents


 No – articles/threads/beads have NOTHING to do with structured PDF. See 14.7 
 (Logical Structure) and 14.8 (Tagged PDF).



It reads as if the article/thread/bead structure offers logical
organization information that is unrelated to specific
structure information- so I guess your comment is literally true
but I'm not sure this information is irrelevant to the task at issue. 
While apparently not intended to be document structure 
information, presumably the
navigation order would imply a logical structure:


8.3.2Articles
Some types of documents may contain sequences of content items that are 
logically connected but not physically sequential. For example, a news story 
may begin on the first page of a newsletter and run over onto one or more 
nonconsecutive interior pages. To represent such sequences of physically 
discontiguous but logically related items, a PDF document may define one or 
more articles (PDF 1.1). The sequential flow of an article is defined by an 
article thread; the individual content items that make up the article are 
called beads on the thread. PDF viewer applications can provide navigation 
facilities to allow the user to follow a thread from one bead to the next.



 Leonard

[...]


 HOWEVER, PDF DOES support a concept called 'structured PDF' where the 
 various drawing operations are grouped into logical concepts such as 
 paragraphs, tables, etc. In such documents, you now have the information you 
 need to make higher level logical extraction possible w/o the need to 
 guess.





 Just to make sure I'm on the right track and to summarize for anyone

 else who may be interested in getting information out of pictures,

 it looks like the article,thread,bead notion would be the place to

 look. In the PDF Reference I have, it is in chapter 8, interactive features

 but I seem to recall when I first read this I did find a section

 on structured documents. The PDF32000 document seems to point to chapter

 14.7 for logical structure. Are there other key words that may be worth

 examining?




_
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] Polish National Characters are not getting displayed in the PDF created by iTExt

2009-03-16 Thread Bruno Lowagie
munesh wrote:
 It
 would be of great help if someone can let me know which font and which
 encoding type i should be using to display the Polish Characters in my PDF
 reports generated by iText.

You say Arial doesn't work, but you probably didn't even try. You didn't 
even bother sending us a sample of what you tried. IMHO you didn't do a 
lot of effort to read the documentation. Otherwise you'd have written 
something like this:

BaseFont bf = BaseFont.createFont(c:/windows/fonts/arial.ttf, 
BaseFont.CP1250, BaseFont.EMBEDDED);
Font font = new Font(bf, 12);
String polish = \u0104\u0105\u0106\u0107\u0118\u0119;
document.add(new Paragraph(polish, font));

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] Additional informations to a graphic to use Object Data tool in Reader?

2009-03-16 Thread Matthias Uhler



Matthias Uhler wrote:
 
 .. http://www.nabble.com/file/p22539056/PDFObjectData.java
 PDFObjectData.java 
 

The problem is solved...I missed to enable the UserProperties..
-- 
View this message in context: 
http://www.nabble.com/Additional-informations-to-a-graphic-to-use-%22Object-Data-tool%22-in-Reader--tp22539056p22540007.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] modifed sample, question on PDF contents

2009-03-16 Thread Leonard Rosenthol
Articles/threads and beads were a VERY early attempt in PDF to define some form 
of structure - but it had/has two major flaws.


 1.  It is limited in what it offers
 2.  It doesn't actually link with the content.

No one uses that stuff anymore - I really wouldn't waste your time on it...

Leonard


On 3/16/09 3:14 PM, Mike Marchywka marchy...@hotmail.com wrote:





 From: lrose...@adobe.com
 To: itext-questions@lists.sourceforge.net
 Date: Mon, 16 Mar 2009 06:50:27 -0700
 Subject: Re: [iText-questions] modifed sample, question on PDF contents


 No - articles/threads/beads have NOTHING to do with structured PDF. See 14.7 
 (Logical Structure) and 14.8 (Tagged PDF).



It reads as if the article/thread/bead structure offers logical
organization information that is unrelated to specific
structure information- so I guess your comment is literally true
but I'm not sure this information is irrelevant to the task at issue.
While apparently not intended to be document structure
information, presumably the
navigation order would imply a logical structure:


8.3.2Articles
Some types of documents may contain sequences of content items that are 
logically connected but not physically sequential. For example, a news story 
may begin on the first page of a newsletter and run over onto one or more 
nonconsecutive interior pages. To represent such sequences of physically 
discontiguous but logically related items, a PDF document may define one or 
more articles (PDF 1.1). The sequential flow of an article is defined by an 
article thread; the individual content items that make up the article are 
called beads on the thread. PDF viewer applications can provide navigation 
facilities to allow the user to follow a thread from one bead to the next.



 Leonard

[...]


 HOWEVER, PDF DOES support a concept called 'structured PDF' where the 
 various drawing operations are grouped into logical concepts such as 
 paragraphs, tables, etc. In such documents, you now have the information you 
 need to make higher level logical extraction possible w/o the need to 
 guess.





 Just to make sure I'm on the right track and to summarize for anyone

 else who may be interested in getting information out of pictures,

 it looks like the article,thread,bead notion would be the place to

 look. In the PDF Reference I have, it is in chapter 8, interactive features

 but I seem to recall when I first read this I did find a section

 on structured documents. The PDF32000 document seems to point to chapter

 14.7 for logical structure. Are there other key words that may be worth

 examining?




_
Express your personality in color! Preview and select themes for Hotmail®.
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] bugs: watermark adding in some pdf files throws java.lang.NullPointerException

2009-03-16 Thread Mark Storer
What is the actual exception?

--Mark


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] Need to add a pushbutton

2009-03-16 Thread Mark Storer
mandar.jagtap mandar.jagtap at gmail.com writes:

 
 
 Hi, I am trying to add a pushbutton using stamper on specific page. I am
 trying like this but not working. I can't any button in pdf output and I am
 not getting any error also. Could somebody help me to resolve this?

Your code looks okay, please post your PDF output.


--Mark


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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


[iText-questions] Best way to go for automating PDF creation ?

2009-03-16 Thread ZedroS

Hi all

I'm currently considering iText as a replacement of an existing pdf
generation facility, but I'm facing difficulties in finding out which way to
go safely. 

Currently, it's done through xhtml transformed to pdf, but the whole
architecture can be changed if needed, so we might for the best approach.

Indeed, on one hand the tagmap has a discontinued support. As far as I get
it, I could still manage to use it writing my own handler, as in the book,
but then what about future upgrade ?

On the other hand, I could go for StyleSheet and loadTagStyle, but the
extend of the html markup covered isn't clear, thus following this path is
quite uncertain.

What would you suggest ?

Thanks in advance

cheers
zedros
-- 
View this message in context: 
http://www.nabble.com/Best-way-to-go-for-automating-PDF-creation---tp22541202p22541202.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] Need to add a pushbutton

2009-03-16 Thread 1T3XT info
mandar.jagtap wrote:
 Hi, I am trying to add a pushbutton using stamper on specific page. I am
 trying like this but not working. I can't any button in pdf output and I am
 not getting any error also. Could somebody help me to resolve this?
 
 PushbuttonField submitBtn = new PushbuttonField(stamp.getWriter(), new
 Rectangle(lowerLeftX,lowerLeftY,lowerLeftX + 20,lowerLeftY + 20),Play_);
 
 PdfFormField submitField = submitBtn.getField();
 
 submitField.setAction(PdfAction.createSubmitForm(http://www.test.com/submit.php;,
 null, PdfAction.SUBMIT_PDF));
   
 stamp.addAnnotation(submitField, 2);

You're doing it like this:
http://1t3xt.info/examples/browse/?page=exampleid=279
and the online example works.

HOWEVER: if you want to add the button to page 2 instead of page 1;
you'll need to upgrade to iText 2.1.5 because earlier versions had
a bug: the annotation was added to page 1 no matter what.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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] bugs: watermark adding in some pdf files throws java.lang.NullPointerException

2009-03-16 Thread 1T3XT info
Mark Storer wrote:
 What is the actual exception?

A NullPointerException. I've added the suggested code.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-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