[iText-questions] Reg : printing selected pages of document

2007-03-05 Thread vij nag
Hi
I have a requirement to print only selected pages of PDF document.can this 
be requirement implemented  using iText and java.If it is possible to 
implement,please let me know the iText functionality which implements the above 
requirement .
   
  Thanks 
  Vijay.N

 
-
Access over 1 million songs - Yahoo! Music Unlimited.-
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/


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

2007-03-05 Thread kris carlier
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/


Re: [iText-questions] problem with page break

2007-03-05 Thread Carlo Bongiovanni

hi, thanks for your answer, but looking into the methods i found
setKeepTogether
 table.setKeepTogether(true);
and it seems working perfectly.

Thanks anyway,
CB

2007/3/2, Paulo Soares [EMAIL PROTECTED]:


You only have a table with several cells, they will break as needed. to
do wjat you want put each of your blocks in a table and put each of this
tables in a cell in an outer table. Make the outer table
setSplitLate(true).

Paulo

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Carlo Bongiovanni
 Sent: Friday, March 02, 2007 4:56 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] problem with page break

 Hi all,
 i have to print the result of a report in a pdf file. each
 row from the database is put in a PdfPtable, and this is my
 code, but it occurs a page break during the print that breaks
 some of the tables :(


 at start i have an image:
 PdfWriter.getInstance(document,
 response.getOutputStream());
 document.open();
 ...
 Image logo = Image.getInstance(finalPath);
 logo.setAlignment(Image.TEXTWRAP | Image.ALIGN_CENTER);
 logo.setIndentationRight(10.0f);
 document.add(logo);

 for each result
 {
   // Aggiungo la tabella con i dati estratti
   PdfPTable table = new PdfPTable(2);
   setTable(table, 30, 70, 100f);

   table.addCell();
   PdfPCell cell = new PdfPCell(new Paragraph());
   cell.setBorderColor(Color.WHITE);
   cell.setBorder(0);
   cell.setMinimumHeight(50f);
   table.addCell(cell);

   table.getDefaultCell().setBorderWidth(0);
   table.getDefaultCell ().setBorder(0);

   table.addCell(N.);
   table.addCell(ID_ANNO + / + ID_PROGR);
   table.addCell(Data Arrivo);
   table.addCell(DATA_ARRIVO);
   table.addCell(Provenienza);
   table.addCell(MITTENTE);
   table.addCell(Oggetto);
   table.addCell(OGGETTO);
   table.addCell(Pubbl. per Giorni);
   table.addCell(NUMERO_GIORNI_1 +  dal  +
 (String)IP1 +  al  + (String)FP1);
   if (!IP2.equals()) {
 table.addCell();
 table.addCell (e per giorni  + NUMERO_GIORNI_2
 +  dal  + (String)IP2 +  al  + (String)FP2);
   }
   table.addCell();
   table.addCell();
   table.addCell();
   table.addCell();
   table.addCell();
   table.addCell();

   table.addCell(MESSO);
   cell = new PdfPCell(new Paragraph(( + MESSO_NOME + )));
   cell.setBorderColor(Color.WHITE);
   cell.setBorder(0);
   cell.setMinimumHeight(50f);
   cell.setHorizontalAlignment(Element.ALIGN_CENTER);
   cell.setVerticalAlignment (Element.ALIGN_TOP);
   table.addCell(cell);

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



 i know the code isn't so clean as it should be (sorry :P),
 but what i'm doing is just using pdfptables and nothing more
 (as i've seen i should do in the tutorials/mail.list)... am i
 missing anything?

 i also attach the document for you

 Thanks
 CB




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.



-
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/


-
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 

Re: [iText-questions] How to install

2007-03-05 Thread Bruno Lowagie (iText)
Kevin Cao wrote:
 
 Hello Bruno;
 
 Do you know, how to install iText to Netbeans.

Is this question for real?
iText is a jar; it can be used in NetBeans
as you would use any other jar.

 I can not find any in the web.

Have you used Google?
http://www.google.com/search?q=NetBeans+iText
If so, you'll find these links:
http://threebit.net/mail-archive/itext-questions/msg00164.html
https://nbitextsupport.dev.java.net/
...

 I also buy the Itext in Action. but it does not show me how to 
 install.

No it doesn't. If you can work with NetBeans,
it is assumed that you know how to use an external jar.

 Can you help me out.

Please post any further question to the mailing-list
or the Author Online forum.
best regards,
Bruno

-
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 Bruno Lowagie (iText)
kris carlier wrote:
 Good morning/afternoon/evening,

It's good morning for me (I live in Belgium too).

 Situation: an existing web-application using server-side Java, generating
 HTML output that gets printed afterwards.

OK.

 Not identical on all types of browsers, so the conversion to PDF is (one
 of ?) the correct solution(s).

That's the reason why iText was created originally.

 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.

Hmm... Generating HTML is possible with iText, but I doubt
it if many people use it. I wrote the HtmlWriter mainly for
debugging purposes.

 Question: is there something that can at least roughly convert existing
 html code to the i-text format?

http://itext.ugent.be/library/question.php?id=40

 Since itext describes a document, just as HTML up to a certain level,
  there should be some similarities, that might be convert-able?

HTML is a poor format to describe layout, so there is a high risk
the resulting PDF will have a poor layout too. Don't expect too
much from it. Depending on the source you are using to generate
the HTML, it may be easier/more rewarding to create the PDF from
scratch (as you phrased it).
br,
Bruno

-
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/


[iText-questions] Will be returning Monday March 12th

2007-03-05 Thread Amy_McLaughlin




I will be out of the office starting  03/02/2007 and will not return until
03/12/2007.

For Transworks please call the vendor Ahab (714) 985-0050 or Marko Chase at
(310) 665-6682.
For pinnacle and any thing else please contact my manager Philip Sadler
(310) 665-6391

Thank you,
Amy




Thank you,
Amy McLaughlin





-
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] Deprecating HeaderFooter

2007-03-05 Thread Bruno Lowagie (iText)
Dhruba Bandopadhyay wrote:
 If removing all deprecrated stuff means  
 removing Table and Cell then please don't!

Class Table can't be removed.
Also now that I have started working on the internals
of PdfWriter/PdfDocument, I still haven't decided what
to do about HeaderFooter.
br,
Bruno

-
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/


[iText-questions] Tiff2Pdf

2007-03-05 Thread beppecosta

During tiff to pdf conversion is it possible to get tiff tags, like for
example the DateTime Tag (Code 306 (hex 0x0132)), Software Tag, etc ?

Thanks. 
-- 
View this message in context: 
http://www.nabble.com/Tiff2Pdf-tf3347760.html#a9308406
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] problem for Adobe forms

2007-03-05 Thread Paulo Soares
Adobe Life Cycle Designer forms can't export as FDF. You should have an
XML instead.

Paulo 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Vibhor Jain
 Sent: Monday, March 05, 2007 12:17 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] problem for Adobe forms
 
 Hi,
 
 I am facing a problem while using the PDF form created 
 through 'Adobe Life Cycle Designer'. We have purchased 'Adobe 
 Acrobat 8 Professional'. We have created a form having 4 text 
 fields and a button.  In the submit URL of the button we have 
 specified the URL of our servlet which will process the form 
 data, read its contents and create a PDF file. For processing 
 the file we are using the iText library. The problem which we 
 are facing is that while reading the contents of the form an 
 exception is getting raised suggesting that 'FDF header 
 signature not found'. I tried the following options while 
 creating form: (all form contains 4 Text Fields and a submit button) 
 a) Simple Submit button having XML Data Package (XDP) as a 
 submit option. 
 b) Simple Submit button having PDF as a submit option. 
 c) Simple Submit button having XML Data (XML) as a submit option. 
 d) Simple Submit button having URL encoded data (HTTP) as a 
 submit option. 
 e) HTTP Submit button 
 
 In all these forms the same problem(exception) 'FDF header 
 signature not found' is been thrown. 
 
 We are creating the form through Adobe 6.0 Professional and 
 the form is easily parsed by iText library whereas the 
 library is throwing an exception while parsing the form 
 created through 'Adobe LifeCycle Designer' of 'Adobe Acrobat 
 8 Professional'. 
 I have also used the latest iText Library but the same 
 problem persists. 
 
 I am attaching all the 5 forms.
 
 
 Regards, 
 Vibhor Jain 
 Software Engineer 
 Newgen Software Technologies Limited, 
 New Delhi. 
 Cell Number  (+91)-9810697612 
 Office Landline Number: (+91)-11-26815467, 26815468 (Ext- 168) 
 
 
 


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.


-
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] problem for Adobe forms

2007-03-05 Thread Vibhor Jain




Hi Paulo,

Can you please explain in a bit detail. I have also read this thing on Internet but unable to determine the way to work on it. Can you please help me in this regard.

Also specify how form flatterring (creating pdf form after processing) will be done in this case.

Also suggest if there is any other way through which forms can be created in 'Adobe Acrobat 8.0 professional' so that it can use FDF.

Thanks in advance!!

Vibhor

On Mon, 5 Mar 2007 12:46:03 -, Paulo Soares wrote
 Adobe Life Cycle Designer forms can't export as FDF. You should have an 
 XML instead. 
 
 Paulo 
 
  -Original Message- 
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Vibhor Jain 
  Sent: Monday, March 05, 2007 12:17 PM 
  To: itext-questions@lists.sourceforge.net 
  Subject: [iText-questions] problem for Adobe forms 
  
  Hi, 
  
  I am facing a problem while using the PDF form created 
  through 'Adobe Life Cycle Designer'. We have purchased 'Adobe 
  Acrobat 8 Professional'. We have created a form having 4 text 
  fields and a button.  In the submit URL of the button we have 
  specified the URL of our servlet which will process the form 
  data, read its contents and create a PDF file. For processing 
  the file we are using the iText library. The problem which we 
  are facing is that while reading the contents of the form an 
  exception is getting raised suggesting that 'FDF header 
  signature not found'. I tried the following options while 
  creating form: (all form contains 4 Text Fields and a submit button) 
  a) Simple Submit button having XML Data Package (XDP) as a 
  submit option. 
  b) Simple Submit button having PDF as a submit option. 
  c) Simple Submit button having XML Data (XML) as a submit option. 
  d) Simple Submit button having URL encoded data (HTTP) as a 
  submit option. 
  e) HTTP Submit button 
  
  In all these forms the same problem(exception) 'FDF header 
  signature not found' is been thrown. 
  
  We are creating the form through Adobe 6.0 Professional and 
  the form is easily parsed by iText library whereas the 
  library is throwing an exception while parsing the form 
  created through 'Adobe LifeCycle Designer' of 'Adobe Acrobat 
  8 Professional'. 
  I have also used the latest iText Library but the same 
  problem persists. 
  
  I am attaching all the 5 forms. 
  
  
  Regards, 
  Vibhor Jain 
  Software Engineer 
  Newgen Software Technologies Limited, 
  New Delhi. 
  Cell Number  (+91)-9810697612 
  Office Landline Number: (+91)-11-26815467, 26815468 (Ext- 168) 
  
  
  
 
 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. 


-- 
Mail sent from Openwebmail included with Newgen Intranet Server. 
See http://www.mx.newgen.co.in for more details. 








Disclaimer :- This e-mail message including any attachment may contain confidential, proprietary or legally privileged information. It should not be used by who is not the original intended recipient. If you have erroneously received this message, you are notified that you are strictly prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd and / or its subsidiary Companies accept no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of Newgen Software Technologies Ltd and / or its subsidiary Companies, as applicable.


-
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 

[iText-questions] Edit text and images from PDF

2007-03-05 Thread Develop
Hi,
   
  Is it possible to edit text and image from a pdf document using itext?
  What I need is: I'll have a PDF document that will be my template. I need to 
find tags in text like ||Name|| and then replace for the real name, like John. 
I need to do something like with the images, that is, I need to find one or 
more specific image and replace to another one. I need to do this because I 
work with VDP (Variable Data Print) and the designers creates the documents in 
PDF format and then we generate the final document to print based on our 
database.
  If this is possible, where can I find an example?
   
  Thanks
   
  Rodrigo

 __
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.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] problem for Adobe forms

2007-03-05 Thread Bruno Lowagie (iText)
Vibhor Jain wrote:
 Can you please explain in a bit detail.

I think you fail to see the difference between
AcroForms and XFA forms.
http://itext.ugent.be/library/question.php?id=31

 Can you please help me in this regard.

You have made the choice to make an XFA form.
Either you accept the consequences of this choice
and stop working with FDF. (Ask yourself: why do
I need FDF?)
Or you return to using AcroForms. This means you
create your forms with Acrobat WITHOUT using
LiveCylce Designer.

 Also specify how form flatterring (creating pdf
  form after processing) will be done in this case.

This question contains a contradiction.
When you flatten a form, the form disappears.
However, you talk about 'creating pdf form after processing'.
I have no idea what you mean by this.

 Also suggest if there is any other way through which forms can be 
 created in 'Adobe Acrobat 8.0 professional' so that it can use FDF.

Create your form using annotations (TextField, Button,...)
br,
Bruno

-
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] Edit text and images from PDF

2007-03-05 Thread Bruno Lowagie (iText)
Develop wrote:
 Hi,
  
 Is it possible to edit text and image from a pdf document using itext?

PDF is a Page Description Language.
Not a Word Processing format.

 What I need is: I'll have a PDF document that will be my template. I 
 need to find tags in text like ||Name|| and then replace for the real 
 name, like John.

This is NOT DONE in PDF. It's a very bad idea.
You won't find any tool that allows you to do this:
See http://itext.ugent.be/library/question.php?id=48
Instead of tags, you should use fields in a PDF form.
These fields will act as fixed size placeholders for
the data you have to add.

 I need to do something like with the images, that is, I 
 need to find one or more specific image and replace to another one. I 
 need to do this because I work with VDP (Variable Data Print) and the 
 designers creates the documents in PDF format and then we generate the 
 final document to print based on our database.

 If this is possible,

If the designers give you a flat PDF file,
you have accepted a 'Mission Impossible'.

If the designers create a PDF with an AcroForm,
then it very simple to use this PDF as a template
and fill it with data.

 where can I find an example?

http://itext.ugent.be/library/question.php?id=31
br,
Bruno

-
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] Edit text and images from PDF

2007-03-05 Thread Develop
Thanks
   
  Rodrigo

Bruno Lowagie (iText) [EMAIL PROTECTED] escreveu:
  Develop wrote:
 Hi,
 
 Is it possible to edit text and image from a pdf document using itext?

PDF is a Page Description Language.
Not a Word Processing format.

 What I need is: I'll have a PDF document that will be my template. I 
 need to find tags in text like ||Name|| and then replace for the real 
 name, like John.

This is NOT DONE in PDF. It's a very bad idea.
You won't find any tool that allows you to do this:
See http://itext.ugent.be/library/question.php?id=48
Instead of tags, you should use fields in a PDF form.
These fields will act as fixed size placeholders for
the data you have to add.

 I need to do something like with the images, that is, I 
 need to find one or more specific image and replace to another one. I 
 need to do this because I work with VDP (Variable Data Print) and the 
 designers creates the documents in PDF format and then we generate the 
 final document to print based on our database.

 If this is possible,

If the designers give you a flat PDF file,
you have accepted a 'Mission Impossible'.

If the designers create a PDF with an AcroForm,
then it very simple to use this PDF as a template
and fill it with data.

 where can I find an example?

http://itext.ugent.be/library/question.php?id=31
br,
Bruno

-
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/


 __
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.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/


[iText-questions] Two rendition

2007-03-05 Thread Tony Chhun

Hello,

Is it possible to put two rendition in a same screen annotation.
I want to simulate a sound annotation with a screen annotation. First I'll
put a rendition with the image of a sound annotation and then put an
audio/wav rendition.
Is it possible?

Another solution is to put two screen annotation on the same coordinate.

And last one (if both solution above does not work) changing the appearance
stream (key AP of the annotation). But this last is quite hard to perform
since it includes many features.

Thank you
-
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/


[iText-questions] Wide table.

2007-03-05 Thread Sýkora Bohumír
Hi,

I'am new in iText and my task is to create report table. In the table 
there is about 20 columns ant total of columns width is greater then page 
width. I need to split the row. 
Itext enables splitting rows to new page, but I need to split row into 
two subrows on the same page.  Using nested table in cell is not acceptable, 
as far as the widths of columns are different.  

Is there in iText any trick to do this ?

Thanks for help.
  

Bohumír Sýkora


-
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/


[iText-questions] meta info not filled in when using PDFCopy

2007-03-05 Thread Racer Online
I have been trying to fill in the meta information (e.g. title, subject, 
author) into an iText generated PDF which was created using PDFCopy to merge 
multiple PDFs together. This method is very similar to that referenced at 
http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html -- which you 
can see in 
http://itext.ugent.be/library/com/lowagie/examples/general/copystamp/Concatenate.java

I have tried add the meta information to the document using the 
document.addTitle, .addSubject, etc. functions. However, these functions never 
seem to actually set the PDF meta attributes. The fields are always left blank.

Suggestions?

 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.-
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] meta info not filled in when using PDFCopy

2007-03-05 Thread Stuart Jansen
On Mon, 2007-03-05 at 11:18 -0800, Racer Online wrote:
 I have tried add the meta information to the document using the
 document.addTitle, .addSubject, etc. functions. However, these
 functions never seem to actually set the PDF meta attributes. The
 fields are always left blank.
 
 Suggestions?

Meta information must be set before calling document.open();

As an example, here's some working code that copies metadata from one
PDF into another:

---
PdfReader reader = new PdfReader(args[0]);
Map info = reader.getInfo();
int numberOfPages = reader.getNumberOfPages();
float newPageHeight = 8.5f * 72;
float newPageWidth = 7f * 72;

Document document = new Document(
new Rectangle(newPageWidth,newPageHeight));
PdfWriter writer = PdfWriter.getInstance(document, 
new FileOutputStream(args[1]));
writer.setPdfVersion(PdfWriter.VERSION_1_5);
document.addTitle((String)info.get(Title));
document.addAuthor((String)info.get(Author));
document.addKeywords((String)info.get(Keywords));
document.setMargins(0, 0, 0, 0);
document.open();
---

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
-
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] Paragraph FirstLineIndent

2007-03-05 Thread Mitch Freed
Paulo Soares psoares at consiste.pt writes:

 
 This is another thing, there's a reason why quoting is good to know what
 we're talking about. A \n is equivalent to starting a new Paragraph and
 will always indent. 

Why is this Paulo? Can this be changed? If I submit a change, could it be
reviewed and possibly be merged into the iTextSharp base (I have a change that
works for my needs)? I am really looking for a first line indent that only
indents the first actual line and not any additional text following a \n in the
paragraph -- as anything following a \n is no longer the first line.

 If you don't want indentation you'll have to look
 for the \n and create a new Paragraph without indentation for the
 subsequent sections.

My current implementation of iTextSharp using the ColumnText model won't allow
for this and so I am looking for another option. If worse came to worse, I would
have to do a lot of rework, but if it can't be helped... 

Let me know what you think.

Thanks,
Mitch Freed
[EMAIL PROTECTED]

 Paulo
 
  -Original Message-
  From: itext-questions-bounces at lists.sourceforge.net 
  [mailto:itext-questions-bounces at lists.sourceforge.net] On 
  Behalf Of Bruno Lowagie (iText)
  Sent: Tuesday, February 27, 2007 3:20 PM
  To: Post all your questions about iText here
  Subject: Re: [iText-questions] Paragraph FirstLineIndent
  
  Mitch Freed wrote:
   Any ideas on this?
  
  What about it?
  I thought I fixed this in iText2.0.0.
  Are you saying the fix doesn't work?
  (Because that's possible; I already
  had to fix some iText2 related bugs
  in CVS.)
  br,
  Bruno
 
 Aviso Legal:
 Esta mensagem 
 
 -
 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 at lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 





-
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/


[iText-questions] Add an annotation on page 2

2007-03-05 Thread Tony Chhun

Hello,

I Have implemented a function to add a screen annotation with an appearance
stream.
My problem is that when I add an annotation on page 1 ofa pdf document,
Adobe can read it easily, but when I try to add it i=on the second page,
Adobe display it, but nothing happen when I click on it.
Quite disturbing...
Can you explain me what's wrong?

here is the code:

   PdfContentByte cb = stamp.getOverContent(2);
   PdfAppearance normal = cb.createAppearance(16, 16);
   try
   {
   com.lowagie.text.Image img=
com.lowagie.text.Image.getInstance(normal.gif);
   img.setAbsolutePosition(0, 0);
   normal.addImage(img);
   }
   catch (BadElementException e)
   {
   System.out.println(ERREUR1);
   e.printStackTrace();
   }
   catch (DocumentException e)
   {
   System.out.println(ERREUR2);
   e.printStackTrace();
   }
   annot.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, normal);


   stamp.addAnnotation(annot, 2);
   stamp.close();
-
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/


[iText-questions] Checkbox in a PdfPCell

2007-03-05 Thread Mike Buchanan
Using the example, RegisterForm1 in chapter 15, I attempted to insert a
checkbox in a PdfPCell but it doesn't show up.  I even sized it as half
as big as the example and I still could not get it into the cell.

 

I have attached the java source, the input text file and the output pdf.
The checkbox logic starts at line 166.

 

Any help spotting the problem will be greatly appreciated.

 

Regards,

 

icoman

 



PSFtest.java
Description: PSFtest.java
0512/31/06705600

   +
30 PO_NBR_01 111212 08/30/06 09/29/06 713.95   
62.00   
+
30 PO_NBR_02 111213 09/27/06 10/27/06 236.95  
236.95  
 +
30 WARRANTY/MIKE 111214 10/09/06 11/08/061022.80 
1022.80 
  +


TestPSF2.pdf
Description: TestPSF2.pdf
-
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] Usage Right For Acrobat Reader Problem

2007-03-05 Thread Kent Smith

Gentlemen,

You are addressing the exact problem I need to solve, almost.
My case has one difference.

I have a PDF Acroform that I created with my licensed copy of Adobe Acrobat
Pro ver 8.
I am the author of the PDF form and need to set the password security and
enable user rights.

My (C# iTextSharp) application software needs to open the PDF form, read
field content, and write output to ascii files.
It works properly with security of 'no password' or 'password' protected
(without enabled user rights).

My code fails when I attempt to open the PDF if it is both 'password'
protected and has user rights enabled.

I have two questions:

1.  Is it possible and legal for me to sucessfully open  and read content
from the 'password' protected, rights enabled PDF form with iTextSharp?


2.  What is the simplest C# code snippet to perform this process.


Sincerely
Kent Smith 
Systems Engineer








Bruno Lowagie (iText) wrote:
 
 Gilberto Fres wrote:
 I create a form with the usage right for Acrobat Reader enabled. 
 
 Thus you decide that you will stick with Adobe products,
 and not use any other product, as Adobe has the monopoly
 on Reader Enabled documents.
 
 I test the form using the Acrobat reader and work fine.
   I can save and export the data ok.
 
 Yes, but Adobe is the only company that may use the key
 needed to encrypt a hash of the document to make reader
 enabling possible.
 
 But I want to fill out some of the form field using itext 
 and the user should fill the rest of fields.
 
 The user will be able to do that, but the document will
 no longer be reader enabled.
 
 Itext filled the fields ok, but when I open the form using the Acrobat 
 Reader for the user finish fill out the rest of fields, I got the 
 following message:
  This document contained certain rights to enable special features 
 in Adobe Reader.  The document had been changed since it was created and 
 these rights are no longer valid.  Please contact the author for the 
 original version of this document.
 
 A hash of the original document was encrypted using the
 key ONLY ADOBE may use, then you changed the document.
 Adobe Reader notices this change and says: hey, this
 document is no longer reader enabled.
 
  I don’t know if someone brought this issue before.
 
 Yes, plenty of times.
 
  My question is What I can do to avoid this problem?
 
 Nothing. It's more a legal issue, than it is a technical issue.
 br,
 Bruno
 
 -
 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/Usage-Right-For-Acrobat-Reader-Problem-tf3117194.html#a9325960
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/