Re: [webkit-dev] Duplicate page: Implementing Print Preview

2009-05-28 Thread David Hyatt
On May 28, 2009, at 1:13 PM, Marc-Antoine Ruel wrote: To clarify Sverrir and my intent; PDF (or EMF as it's currently done on the windows port of Chromium) snapshot is fine for a static print preview but useless for a dynamic one. We'd prefer to have something interactive. If a user

[webkit-dev] Duplicate page: Implementing Print Preview

2009-05-27 Thread Sverrir Á . Berg
Hi all, I'm working on Google Chrome and trying to come up with a way to implement print preview. To be able to display it in a separate tab we need to be able to duplicate the current page in memory so the user can continue to interact with the original page. Javacript, animations etc should

Re: [webkit-dev] Duplicate page: Implementing Print Preview

2009-05-27 Thread David Hyatt
Can you render the page to PDF and display the PDF? Maybe you could render the page into bitmaps if you aren't able to support PDF. dave (hy...@apple.com) On May 27, 2009, at 11:53 AM, Sverrir Á. Berg wrote: Hi all, I'm working on Google Chrome and trying to come up with a way to

Re: [webkit-dev] Duplicate page: Implementing Print Preview

2009-05-27 Thread Sverrir Á . Berg
Interesting idea. I see two downsides to that though. Firstly I think need some kind of PDF library since only Mac's have native support and when the user needs to change the layout of the page (margins, portrait/landscape) I would need to re-create the PDF again? Sverrir On Wed, May 27, 2009