Dhanu,

Yes, sure, just write your own PDF reader in Java and add this 
functionality.  ;-)

No, seriously, when the PDF is displayed to the screen (by acroread or 
whatever), there is no java anymore. So you cannot call java methods from 
within your PDF.

CU

On Tuesday 05 May 2009 10.56:23 DHANU BUDIREDDI wrote:
> Hello,
>
>             I want to call a java method from pdf push button. Actually my
> requirement is one SaveAs button is presented on merged pdf and when i
> clicke on that button i need to generate one more pdf with some edited
> values (this is as functionality as SaveAs).
>
>           Is this possible to call java method or is there any way to send
> the pdf text filed values to java method ?
>
> Thanks,
> --Dhanu
>
> On Tue, May 5, 2009 at 2:25 PM, DHANU BUDIREDDI 
<[email protected]>wrote:
> > Hello,
> >
> >             I want to call a java method from pdf push button. Actually
> > my requirement is one SaveAs button is presented on merged pdf and when i
> > clicke on that button i need to generate one more pdf with some edited
> > values (this is as functionality as SaveAs).
> >
> >           Is this possible to call java mothod or is there any way to
> > send the pdf text filed values to java method ?
> >
> > Thanks,
> > --Dhanu
> >
> >
> > On Tue, May 5, 2009 at 11:31 AM, <
> >
> > [email protected]> wrote:
> >> Send iText-questions mailing list submissions to
> >>        [email protected]
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >>        https://lists.sourceforge.net/lists/listinfo/itext-questions
> >> or, via email, send a message with subject or body 'help' to
> >>        [email protected]
> >>
> >> You can reach the person managing the list at
> >>        [email protected]
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of iText-questions digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >>   1. Re: Html to Pdf (1T3XT info) (Mehmood)
> >>   2. Re: Html to Pdf (1T3XT info) (1T3XT info)
> >>   3. Footer problem -- date string on the left and page number on
> >>      the right (Jess8)
> >>   4. Re: Html to Pdf (1T3XT info) (Raheem Rufai)
> >>   5. Re: Footer problem -- date string on the left and page number
> >>      on the right (1T3XT info)
> >>   6. Re: Html to Pdf (1T3XT info) (Ragia Ibrahim)
> >>   7. Re: Html to Pdf (deep4u)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Tue, 5 May 2009 00:06:54 +0530
> >> From: Mehmood <[email protected]>
> >> Subject: Re: [iText-questions] Html to Pdf (1T3XT info)
> >> To: [email protected]
> >> Message-ID:
> >>        <[email protected]>
> >> Content-Type: text/plain; charset="iso-8859-1"
> >>
> >> Flying saucer seems to create a pdf or html from xml and css . But what
> >> I need is to convert a PDF to HTML format. Is this is possible in iText?
> >>
> >>
> >> --
> >> <!-- Mehmood.Z -->
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Mon, 04 May 2009 21:03:47 +0200
> >> From: 1T3XT info <[email protected]>
> >> Subject: Re: [iText-questions] Html to Pdf (1T3XT info)
> >> To: Post all your questions about iText here
> >>        <[email protected]>
> >> Message-ID: <[email protected]>
> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >>
> >> Mehmood wrote:
> >> > Flying saucer seems to create a pdf or html from xml and css . But
> >> > what I need is to convert a PDF to HTML format. Is this is possible in
> >> > iText?
> >>
> >> No, you won't find any tool that can convert PDF to HTML
> >> because it's a stupid question:
> >> Read http://doughnut-design.livejournal.com/2801.html
> >> --
> >> This answer is provided by 1T3XT BVBA
> >> http://www.1t3xt.com/ - http://www.1t3xt.info
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 3
> >> Date: Mon, 4 May 2009 12:06:24 -0700 (PDT)
> >> From: Jess8 <[email protected]>
> >> Subject: [iText-questions] Footer problem -- date string on the left
> >>        and page number on the right
> >> To: [email protected]
> >> Message-ID: <[email protected]>
> >> Content-Type: text/plain; charset=us-ascii
> >>
> >>
> >> Hi, I try to put the footer on each page of pdf which has date string on
> >> the
> >> left side and page x of Y on the right side.  However, I got the footer
> >> like
> >> the following ==>
> >>
> >> 05/04/20092                                             Page 1 of 2
> >>
> >> Can someone tell me what might cause it? Thanks in advance.
> >>
> >> Here is part of my code ==>
> >> (I uploaded the full class and its result here)
> >>
> >>    public void onEndPage(PdfWriter writer, Document document)
> >>        {
> >>                try {
> >>                        PdfContentByte cb = writer.getDirectContent();
> >>                        // compose the footer
> >>                        float textBase = document.bottom() - 20;
> >>
> >>                        // show the date footer at the left
> >>                        Date now = new Date();
> >>                        SimpleDateFormat simpleformat = new
> >> SimpleDateFormat("MM/dd/yyyy");
> >>                        String dateStr = simpleformat.format(now);
> >>                        float dateStrSize = helv.getWidthPoint(dateStr,
> >> 12);
> >>                        cb.beginText();
> >>                        cb.setFontAndSize(helv, 12);
> >>                        cb.setTextMatrix(document.left(), textBase);
> >>                        cb.showText(dateStr);
> >>                        cb.endText();
> >>                        cb.addTemplate(tpl, document.left() +
> >> dateStrSize, textBase);
> >>
> >>                        // show the page number footer at the right
> >>                        String text = "Page " + writer.getPageNumber() +
> >> " of ";
> >>                        float textSize = helv.getWidthPoint(text, 12);
> >>                        float adjust = helv.getWidthPoint("0", 12);
> >>                        cb.beginText();
> >>                        cb.setFontAndSize(helv, 12);
> >>                        cb.setTextMatrix(document.right() - textSize -
> >> adjust, textBase);
> >>                        cb.showText(text);
> >>                        cb.endText();
> >>                        cb.addTemplate(tpl, document.right() - adjust,
> >> textBase);
> >>                }
> >>                catch (Exception ex) {
> >>            throw new ExceptionConverter(ex);
> >>                }
> >>        }
> >>
> >>        public void onCloseDocument(PdfWriter writer, Document document)
> >>        {
> >>        try {
> >>                        tpl.beginText();
> >>                        tpl.setFontAndSize(helv, 12);
> >>                        tpl.setTextMatrix(0, 0);
> >>
> >>  tpl.showText(Integer.toString(writer.getPageNumber() - 1));
> >>                        tpl.endText();
> >>        }
> >>                catch (Exception ex) {
> >>            throw new ExceptionConverter(ex);
> >>                }
> >>        }
> >>
> >>
> >>
> >> However, I got the footer like the following ==>
> >>
> >> 05/04/20092                                             Page 2 of 2
> >> http://www.nabble.com/file/p23374583/ClientDetailPDFWorkbook.java
> >> ClientDetailPDFWorkbook.java
> >> http://www.nabble.com/file/p23374583/cprcPDF.pdf cprcPDF.pdf
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Footer-problem----date-string-on-the-left-and-page
> >>-number-on-the-right-tp23374583p23374583.html Sent from the iText -
> >> General mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 4
> >> Date: Mon, 4 May 2009 15:40:47 -0400
> >> From: Raheem Rufai <[email protected]>
> >> Subject: Re: [iText-questions] Html to Pdf (1T3XT info)
> >> To: Post all your questions about iText here
> >>        <[email protected]>
> >> Message-ID:
> >>        <[email protected]>
> >> Content-Type: text/plain; charset="iso-8859-1"
> >>
> >> Hi Mehmood,
> >> It is not possible in iText. You might want to take a look at PDFBox,
> >> instead. Admittedly as it3xt suggest, it is a horribly difficult task.
> >> Even
> >> Adobe Acrobat doesn't do a perfect job of it, so don't expect a perfect
> >> job
> >> from PDFBox either. However, depending on your purpose, you might still
> >> find
> >> it useful.
> >>
> >>
> >> Regards,
> >>
> >> Raheem
> >>
> >> On Mon, May 4, 2009 at 3:03 PM, 1T3XT info <[email protected]> wrote:
> >> > Mehmood wrote:
> >> > > Flying saucer seems to create a pdf or html from xml and css . But
> >>
> >> what
> >>
> >> > > I need is to convert a PDF to HTML format. Is this is possible in
> >>
> >> iText?
> >>
> >> > No, you won't find any tool that can convert PDF to HTML
> >> > because it's a stupid question:
> >> > Read http://doughnut-design.livejournal.com/2801.html
> >> > --
> >> > This answer is provided by 1T3XT BVBA
> >> > http://www.1t3xt.com/ - http://www.1t3xt.info
> >>
> >> ------------------------------------------------------------------------
> >>------
> >>
> >> > Register Now & Save for Velocity, the Web Performance & Operations
> >> > Conference from O'Reilly Media. Velocity features a full day of
> >> > expert-led, hands-on workshops and two days of sessions from industry
> >> > leaders in dedicated Performance & Operations tracks. Use code
> >> > vel09scf and Save an extra 15% before 5/3.
> >> > http://p.sf.net/sfu/velocityconf
> >> > _______________________________________________
> >> > iText-questions mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >> >
> >> > Buy the iText book: http://www.1t3xt.com/docs/book.php
> >> > Check the site with examples before you ask questions:
> >> > http://www.1t3xt.info/examples/
> >> > You can also search the keywords list:
> >> > http://1t3xt.info/tutorials/keywords/
> >>
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >>
> >> ------------------------------
> >>
> >> Message: 5
> >> Date: Mon, 04 May 2009 21:57:18 +0200
> >> From: 1T3XT info <[email protected]>
> >> Subject: Re: [iText-questions] Footer problem -- date string on the
> >>        left and page number on the right
> >> To: Post all your questions about iText here
> >>        <[email protected]>
> >> Message-ID: <[email protected]>
> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >>
> >> Jess8 wrote:
> >> > Hi, I try to put the footer on each page of pdf which has date string
> >> > on
> >>
> >> the
> >>
> >> > left side and page x of Y on the right side.  However, I got the
> >> > footer
> >>
> >> like
> >>
> >> > the following ==>
> >> >
> >> > 05/04/20092                                             Page 1 of 2
> >> >
> >> > Can someone tell me what might cause it? Thanks in advance.
> >>
> >> You are adding the total number of pages twice:
> >> > cb.addTemplate(tpl, document.left() + dateStrSize, textBase);
> >> >
> >> > cb.addTemplate(tpl, document.right() - adjust, textBase);
> >>
> >> In other words: you get what you ask for!
> >> --
> >> This answer is provided by 1T3XT BVBA
> >> http://www.1t3xt.com/ - http://www.1t3xt.info
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 6
> >> Date: Tue, 5 May 2009 04:22:26 +0000
> >> From: Ragia Ibrahim <[email protected]>
> >> Subject: Re: [iText-questions] Html to Pdf (1T3XT info)
> >> To: <[email protected]>
> >> Message-ID: <[email protected]>
> >> Content-Type: text/plain; charset="windows-1256"
> >>
> >>
> >> Hi, Reham ...mohammed
> >>
> >> please if you have further refrences about PDBox how it works how does
> >> it read the pdf send it
> >>
> >>
> >>  Ragia
> >>
> >>
> >>
> >> Date: Mon, 4 May 2009 15:40:47 -0400
> >> From: [email protected]
> >> To: [email protected]
> >> Subject: Re: [iText-questions] Html to Pdf (1T3XT info)
> >>
> >> Hi Mehmood,
> >> It is not possible in iText. You might want to take a look at PDFBox,
> >> instead. Admittedly as it3xt suggest, it is a horribly difficult task.
> >> Even Adobe Acrobat doesn't do a perfect job of it, so don't expect a
> >> perfect job from PDFBox either. However, depending on your purpose, you
> >> might still find it useful.
> >>
> >>
> >> Regards,
> >> Raheem
> >>
> >> On Mon, May 4, 2009 at 3:03 PM, 1T3XT info <[email protected]> wrote:
> >>
> >> Mehmood wrote:
> >> > Flying saucer seems to create a pdf or html from xml and css . But
> >> > what
> >> >
> >> > I need is to convert a PDF to HTML format. Is this is possible in
> >> > iText?
> >>
> >> No, you won't find any tool that can convert PDF to HTML
> >>
> >> because it's a stupid question:
> >>
> >> Read http://doughnut-design.livejournal.com/2801.html
> >>
> >> --
> >>
> >> This answer is provided by 1T3XT BVBA
> >>
> >> http://www.1t3xt.com/ - http://www.1t3xt.info
> >>
> >>
> >>
> >>
> >> ------------------------------------------------------------------------
> >>------
> >>
> >> Register Now & Save for Velocity, the Web Performance & Operations
> >>
> >> Conference from O'Reilly Media. Velocity features a full day of
> >>
> >> expert-led, hands-on workshops and two days of sessions from industry
> >>
> >> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> >>
> >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> >>
> >> _______________________________________________
> >>
> >> iText-questions mailing list
> >>
> >> [email protected]
> >>
> >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>
> >>
> >>
> >> Buy the iText book: http://www.1t3xt.com/docs/book.php
> >>
> >> Check the site with examples before you ask questions:
> >> http://www.1t3xt.info/examples/
> >>
> >> You can also search the keywords list:
> >> http://1t3xt.info/tutorials/keywords/
> >>
> >>
> >>
> >> _________________________________________________________________
> >> Windows Live?: Keep your life in sync. Check it out!
> >> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >>
> >> ------------------------------
> >>
> >> Message: 7
> >> Date: Mon, 4 May 2009 23:01:26 -0700 (PDT)
> >> From: deep4u <[email protected]>
> >> Subject: Re: [iText-questions] Html to Pdf
> >> To: [email protected]
> >> Message-ID: <[email protected]>
> >> Content-Type: text/plain; charset=us-ascii
> >>
> >>
> >> Hello,
> >>        I need to convert html to pdf, but html having Tabloe of contents
> >> after converting pdf the Table of contents are not working.How to
> >> resolve this.
> >>
> >> Thanks,
> >>
> >> 1T3XT info wrote:
> >> > deep4u wrote:
> >> >> Hello,
> >> >>        Bookmarks are not same as the Table of contents.
> >> >> I need TableOfContents. suppose one html file having Tableofcontents
> >> >> after
> >> >> generating pdf also those will be work. I am uploading my html file
> >>
> >> using
> >>
> >> >> that to convert pdf and also those TOC will be work.
> >> >
> >> > Yes.
> >> > --
> >> > This answer is provided by 1T3XT BVBA
> >> > http://www.1t3xt.com/ - http://www.1t3xt.info
> >>
> >> ------------------------------------------------------------------------
> >>------
> >>
> >> > Register Now & Save for Velocity, the Web Performance & Operations
> >> > Conference from O'Reilly Media. Velocity features a full day of
> >> > expert-led, hands-on workshops and two days of sessions from industry
> >> > leaders in dedicated Performance & Operations tracks. Use code
> >> > vel09scf and Save an extra 15% before 5/3.
> >> > http://p.sf.net/sfu/velocityconf
> >> > _______________________________________________
> >> > iText-questions mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >> >
> >> > Buy the iText book: http://www.1t3xt.com/docs/book.php
> >> > Check the site with examples before you ask questions:
> >> > http://www.1t3xt.info/examples/
> >> > You can also search the keywords list:
> >> > http://1t3xt.info/tutorials/keywords/
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Html-to-Pdf-tp23295842p23381489.html
> >> Sent from the iText - General mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> >> ------------------------------
> >>
> >>
> >> ------------------------------------------------------------------------
> >>------ The NEW KODAK i700 Series Scanners deliver under ANY
> >> circumstances! Your production scanning environment may not be a perfect
> >> world - but thanks to Kodak, there's a perfect scanner to get the job
> >> done! With the NEW KODAK i700
> >> Series Scanner you'll get full speed at 300 dpi even with all image
> >> processing features enabled. http://p.sf.net/sfu/kodak-com
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> iText-questions mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>
> >>
> >> End of iText-questions Digest, Vol 36, Issue 12
> >> ***********************************************
> >
> > --
> > Dhananjaya Rao.B
> > eParadigm Softech Pvt Ltd.
> > Hyderabad
> > Mobile:+919985558708



-- 
Patrick Valsecchi
Senior Software Engineer
Camptocamp Suisse SA
http://www.camptocamp.com
+41 21 619 1030

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

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

Reply via email to