开发者

Convert aspx content to pdf

I am using iTextS开发者_高级运维harp for convert aspx content to pdf . But facing problem for https site where page is secured and can't don lad as pdf. and geting error like "Internet explorer was not able to open this internet site. The requested site

is either unavailable or cannot be found . Please try again later"


Try ABCpdf.NET. You only have to pass the url of the page.


As Sidharth suggested you could use ABCpdf library. Take a look at this SO question that I've posted a possible solution for: Convert HTML to PDF - Any library for ASP.net

Instead of making a call to AddImageHtml you need to call GetImageUrl:

int pageID = doc.AddImageUrl(html, true, 1024, true);

The rest of the example should be the same.

Hope this will help you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜