生成画像の横幅を固定にする為、はみ出た部分はカットしてしまおう。これは簡単にできて NSView#bitmapImageRepForCachingDisplayInRect: へ渡す NSRectで調整(クリップ)できる。
NSView* view = [[[_web_view mainFrame] frameView] documentView];
NSRect rect = [view bounds];
rect.size.width = 600;
NSBitmapImageRep* bitmap =
[view bitmapImageRepForCachingDisplayInRect:rect];
こんな感じ。
