아마도 Amyuni WebkitPDF으로 시도해 볼 수 있습니다. 오픈 소스가 아니지만 상용으로는 무료이며 C#에서 사용할 수 있습니다. 문서에서 C 번호
샘플 코드 :
static private void SaveToFile(string url, string file)
{
// Store the WebkitPDFContext returned value in an IntPtr
IntPtr context = IntPtr.Zero;
// Open the URL. The WebkitPDFContext returned value will be stored in
// the passed in IntPtr
int ret = WKPDFOpenURL(url, out context, 0, false);
if (ret == 0)
{
// if ret is 0, then we succeeded in opening the URL.
// Save the result as PDF to a file. Use the obtained context value
ret = WKPDFSaveToFile(file, context);
}
if (ret != 0)
Debug.WriteLine("Failed to run SaveToFile on '" + url + "' to generate file '" + file + "'");
// Make sure to close the WebkitPDFContext because otherwise the
// internal PDFCreator as well as other objects will not be released
WKPDFCloseContext(context);
}
평소 부인이을 적용합니다.
출처
2012-10-11 13:38:13
yms
사용중인 wkhtmltopdf의 버전을 알려주시겠습니까? – pomaxa
버전 0.11.0 rc2 – ChruS
0.9 버전 (마지막 안정)을 사용해 보셨습니까? 사촌 난 품질 문제가 없어. – pomaxa