【发布时间】:2012-11-29 17:20:50
【问题描述】:
Webforms 页面代码背后
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
打包/发布 Web 此项目文件夹中的所有文件
【问题讨论】:
-
删除了所有引用和文件...添加了 nuget 包 nuget.org/packages/ABCpdf.ABCGecko 仍然没有运气
-
在 abcpdf 网站上有一个使用工作角色的案例研究,不确定您是否可以利用它websupergoo.com/abcpdf-windows-azure-altaine.htm
-
不是真的。工人角色一直在工作...仍然出现错误gist.github.com/hurricanepkt/6021781源演示abcpdf.azurewebsites.net(右侧是源)。 Microsoft 已承认这是一个错误并正在修复它。
-
他们是不是在什么地方说过这个?
-
在开发团队发给我的私人电子邮件中
标签: abcpdf azure-web-app-service