2

Is there any way to convert a web site to to Safari's .webarchive using Windows and without using Safari?

I know it's an odd request, but I need to create .webarchive files and load them into a UIWebView, and (for various reasons beyond my control) using Safari or Mac is not an option.

I was thinking that Webkit may have some available methods for it, but wasn't having much luck.

Peter O.
  • 32,158
  • 14
  • 82
  • 96
nerdabilly
  • 1,248
  • 4
  • 15
  • 34
  • [WebCore](http://trac.webkit.org/browser/trunk/Source/WebCore/loader/archive) source is available if a port is required. – Paul Sweatte Jan 12 '13 at 01:54
  • Thanks, I thought about that but was hoping there would be a less complicated solution than porting or modifying the WebKit source. – nerdabilly Jan 13 '13 at 18:05
  • 1
    As an alternative, [converting HTML pages to dataURIs](http://stackoverflow.com/questions/9238890/) would be a cross-browser solution. – Paul Sweatte Jan 14 '13 at 01:09
  • That's what I ended up doing. Wasn't totally idea, since filesizes can balloon pretty quickly, but it did the trick. Thanks for the suggestions! – nerdabilly Jan 16 '13 at 22:53

1 Answers1

1

Here are alternatives from unrelated questions:

Community
  • 1
  • 1
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265