abcpdf

Can iTextSharp rasterize/export to JPEG or other image format?

血红的双手。 提交于 2021-02-07 07:17:34
问题 I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF. I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud . I have yet to find a library that will either work in Medium trust, or in the case of ABC PDF, which works great locally, wont load in Mosso. Maybe Mosso has a custom trust level? I know that iTextSharp works on Mosso, but I haven

Can iTextSharp rasterize/export to JPEG or other image format?

跟風遠走 提交于 2021-02-07 07:17:21
问题 I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF. I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud . I have yet to find a library that will either work in Medium trust, or in the case of ABC PDF, which works great locally, wont load in Mosso. Maybe Mosso has a custom trust level? I know that iTextSharp works on Mosso, but I haven

Access to the registry key is denied (ABCPdf)

早过忘川 提交于 2020-01-22 11:32:05
问题 I am trying out ABCPdf 8.1 and when using the AddImageUrl(...) method I get the following error: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl' is denied. I have looked in the registry and main\featurecontrol does not exist for CURRENT_USER so I cannot change permissions on it. Has anyone experienced this before, or know of any solutions I could try? Thanks in advance 回答1: Perhaps it's a problem between IE9 and ABCPDF.If this error

Access to the registry key is denied (ABCPdf)

Deadly 提交于 2020-01-22 11:31:09
问题 I am trying out ABCPdf 8.1 and when using the AddImageUrl(...) method I get the following error: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl' is denied. I have looked in the registry and main\featurecontrol does not exist for CURRENT_USER so I cannot change permissions on it. Has anyone experienced this before, or know of any solutions I could try? Thanks in advance 回答1: Perhaps it's a problem between IE9 and ABCPDF.If this error

Letting the Javascript finish before rendering pdf in ABC pdf

可紊 提交于 2020-01-12 10:53:12
问题 I'm trying to make a pdf of a web page that is displaying locations on Google Maps. The only problem is that the Javascript isn't quite completing by the time that ABCpdf renders the pdf. It's incomplete. How can I make ABDpdf wait until the javascript is 100% complete before the pdf is rendered. Here is what I've tried so far. Doc theDoc = new Doc(); string theURL = url; // Set HTML options theDoc.HtmlOptions.AddLinks = true; theDoc.HtmlOptions.UseScript = true; theDoc.HtmlOptions

Printing PDF with Multiple Pages

天涯浪子 提交于 2020-01-05 10:32:04
问题 I've looked all over for something to help me with this, but so far nothing. I am trying to create a program that allows a user to print a collection of pdfs. I am using ABCPDF9 to get my pdfs (most of which are stored as html) and append them all to a single ABCPDF.Doc object. The problem I'm getting is when I have these multiple pages I end up with only one page of the pdf printing. Here are some code snippets below. private void ProcessAndPrintSelected() { var selectedForm =

Optimize ABCpdf file size

余生长醉 提交于 2020-01-04 14:16:13
问题 We've got a web system that generates dynamic pdf files with ABCpdf. While it works... okay, the file sizes are a little large. For example, this morning as a test I generated a 140+ page file with lots of little graphics (actually, the same six little images repeated over and over.) The total file size was 12 megs and change. Taking that file, opening it in Acrobat Pro and running it through the default optimization settings got me a 600k file. Does anyone have any suggestions for getting

ABCpdf convert text to image

流过昼夜 提交于 2020-01-04 06:17:09
问题 I use ABCpdf to output pdf documents. The EAN-13 font is successfully used for barcode printing and I want to convert it to an image on the PDF document. Any ideas? 回答1: If it's a simple barcode font then embed the font and then add the text. Something like: doc.Font = doc.EmbedFont(@"c:\myean13.ttf"); // check return value != 0 doc.AddText("12345"); If you want an image rather than an embedded font then after you've done this you can rasterize the section of the doc and add it to a new PDF.

ABCPdf add document javascript

微笑、不失礼 提交于 2020-01-03 13:55:55
问题 Is it possible to add document JavaScripts to a generated PDF using ABCPdf? 回答1: If you mean, Javascript that is being executed after the document has been loaded, then have a look at this documentation page. doc.HtmlOptions.UseScript = true; doc.HtmlOptions.GeckoSubset.OnLoadScript = @"(function() { window.ABCpdf_go = false; // your javascript code here window.ABCpdf_go = true; })();"; 回答2: I think you should be able to. There are some settings in the c# which will help. You need to set the

AbcPdf - document not applying CSS

对着背影说爱祢 提交于 2020-01-03 10:59:24
问题 This may be more of a tech support issue, but I'm wondering if any other developers have come across this: I'm using Abcpdf in my ASP.NET code to generate a PDF from HTML. It works fine, but one user is generating PDFs that don't have the CSS applied (IE8, Adobe Acrobat latest version - same as everyone else). Since this is the only user complaining, I'm sure it's a local setting, but I can't figure out what would prevent the css from loading - a browser setting? An Acrobat setting? Does