Web表單頁面的代碼背後有沒有人能夠得到ABCPDF(HTML轉換)在Azure上的網站工作
XSettings.InstallRedistributionLicense("REDACTED");
var theDoc = new Doc();
theDoc.HtmlOptions.Engine = EngineType.Gecko;
theDoc.Rect.Inset(72, 144);
theDoc.Page = theDoc.AddPage();
int theID = theDoc.AddImageUrl("http://www.woot.com/");
while (true)
{
theDoc.FrameRect(); // add a black border
if (!theDoc.Chainable(theID))
break;
theDoc.Page = theDoc.AddPage();
theID = theDoc.AddImageToChain(theID);
}
for (int i = 1; i <= theDoc.PageCount; i++)
{
theDoc.PageNumber = i;
theDoc.Flatten();
}
Response.Buffer = false;
Response.AddHeader("Content-Disposition", "inline; filename=\"rept.pdf\"");
Response.ContentType = "application/pdf";
theDoc.Save(Response.OutputStream);
Response.Flush();
應該工作得很好..但得到
Failed to add HTML: RPC to Gecko engine process failed.Remote process terminated unexpectedly.
運行完全信任 有bin文件夾
- XULRunner文件夾以及C:\ Program Files(x86)\ WebSupergoo \ ABCpdf .NET 9.0 \ ABCGecko
- ABCGecko.dll
- ABCpdf.dll
- ABCpdf9-32.dll
封裝/發佈網站的所有文件在此項目文件夾
刪除所有引用和文件...添加NuGet包http://nuget.org/packages/ABCpdf.ABCGecko仍然沒有運氣 – MarkKGreenway
有是使用工作人員角色的abcpdf網站的案例研究,不確定您是否可以利用http://www.websupergoo.com/abcpdf-windows-azure-altaine.htm –
不是真的。工作人員的角色一直工作...仍然有錯誤https://gist.github.com/hurricanepkt/6021781源演示http://abcpdf.azurewebsites.net/(右側是源)。微軟已經承認這是一個錯誤,並正在修復它。 – MarkKGreenway