|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Can iText notify a browser when the pdf is done loading?I am streaming a dynamic iText pdf to a web browser. Is there something I can put in the pdf that will notify the browser when the pdf is done downloading? I know pdf's use javascript, but I'm not sure pdf javascript can communicate with browser javascript. My browser needs to know when the pdf is done loading so it can perform other actions.
|
|
|
|
|
|
Re: Can iText notify a browser when the pdf is done loading?-------------- Original message ----------------------
From: ambassador <nick.poppelreiter@...> > > > I am streaming a dynamic iText pdf to a web browser. Is there something I > can put in the pdf that will notify the browser when the pdf is done > downloading? Other than the EOF marker that the PDF should have, the answer is no. Your question is not an iText question, as it would be the same, regardless of the scripting language or library that is used on the server side to generate the PDF. That said (written), you *could* put a page action on the last page of the PDF that you generate with iText, which action would launch a JavaScript on the PAGE_OPEN event of the last page. See Chapter 13 in the book for examples. > I know pdf's use javascript, but I'm not sure pdf javascript > can communicate with browser javascript. My browser needs to know when the > pdf is done loading so it can perform other actions. Please see the documentation for classes PdfAction/PdfWriter for the methods/events that are available to you. Best regards, Bill Segraves ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar |
|
|
Re: Can iText notify a browser when the pdf is done loading?> Date: Wed, 14 May 2008 16:26:15 -0700 > From: hgshank@... > To: itext-questions@... > Subject: Re: [iText-questions] Can iText notify a browser when the pdf is done loading? > > That's a function of the browser. I've never seen a "download" launch another process or notify the user. That would be a security risk. > > Howard > > ----- Original Message ---- > From: ambassador <nick.poppelreiter@...> > To: itext-questions@... > Sent: Wednesday, May 14, 2008 6:59:42 PM > Subject: [iText-questions] Can iText notify a browser when the pdf is done loading? > > > I am streaming a dynamic iText pdf to a web browser. Is there something I > can put in the pdf that will notify the browser when the pdf is done > downloading? I know pdf's use javascript, but I'm not sure pdf javascript > can communicate with browser javascript. My browser needs to know when the > pdf is done loading so it can perform other actions. > > -- > View this message in context: http://www.nabble.com/Can-iText-notify-a-browser-when-the-pdf-is-done-loading--tp17242787p17242787.html > Sent from the iText - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > iText-questions mailing list > iText-questions@... > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Do you like iText? > Buy the iText book: http://www.1t3xt.com/docs/book.php > Or leave a tip: https://tipit.to/itexttipjar > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > iText-questions mailing list > iText-questions@... > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Do you like iText? > Buy the iText book: http://www.1t3xt.com/docs/book.php > Or leave a tip: https://tipit.to/itexttipjar Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar |
|
|
Re: Can iText notify a browser when the pdf is done loading?
The only supported communication between the two is with Acrobat/Reader 7.0.5 and later on Windows with the IE browser.
Leonard On May 15, 2008, at 11:37 AM, Sr. Miguel wrote: I think it is possible because you can communicate from the browser to the PDf and vice-versa. However, it is not a good practice. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar |
| Free Forum Powered by Nabble | Forum Help |