• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't create in-memory paginated PDF based on WebView, but I think I'm close
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't create in-memory paginated PDF based on WebView, but I think I'm close


  • Subject: Can't create in-memory paginated PDF based on WebView, but I think I'm close
  • From: Mike Zornek <email@hidden>
  • Date: Fri, 31 Mar 2006 23:13:21 -0500

In my app I am generating HTML and want to create a PDF based on the
rendering of it. I'm using a WebView (currently on screen but will probably
be off screen once I've gotten this working since the user is never meant to
see a webview, only the resulting PDF).

After lots of searching (list archives, Google, and so on) I have gotten
some code working that will create a PDF file that is properly paginated,
but in my case I want the PDF in memory not on disk.

My code (with a branch to create a file as well as a in memory) can be seen
here:

http://paste.lisp.org/display/18505

The project itself can be found here:

http://mikezornek.com/temp/WebViewToPdf.zip

The problem I am experiencing with the code branch to create an in memory
PDF is that it is generating one really long continuous page (when looking
at mikezornek.com for example).

I was hoping the WebView would be able to paginate by itself. I am also a
web developer and I know there are CSS attributes out there that help
control printing so I am a little hesitant to manually cut out pages since
I'd like to honor any Print CSS that is being used in the HTML.

Any help or suggestion welcome. Thank you.

~ Mike
--
Work: http://ClickableBliss.com
Play: http://MikeZornek.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: finding substring
  • Next by Date: Re: finding substring
  • Previous by thread: NSArrayController/NSManagedObject Runtime Error: 'Selector Not Recognized'. What Selector?
  • Next by thread: memory problem, advice needed
  • Index(es):
    • Date
    • Thread