abcpdf

Is it possible to modify PDF Form Field Names?

我的未来我决定 提交于 2019-12-03 13:54:32
问题 Here's the situation. I have a PDF with automatically generated pdf form field names. The problem is that these names are not very user friendly. They look something like : topmostSubform[0].Page1[0].Website_Address[0] I want to be able to change them so that they are something like WebsiteAddress. I have access to ABCPDF and I have experience with iTextSharp, but I have tried using these API's to do this (access form fields and try to rename), but it does not seem as if it is possible. Does

Can I prevent ABCpdf from mashing words together (e.g. mashingwordstogether) when convertering PDF to Text?

久未见 提交于 2019-12-03 08:01:36
I'm using ABCpdf to extract the text content of some PDF files, in particular by calling Doc.GetText("Text"). (You call it in a loop, once per page.) This usually works well, but for some PDF files the resulting text consists of text with a dearth of space characters, e.g. Thissentencedoesn'thaveanyspacesbetweenwords. What's interesting is if I try to extract text from the exact same PDFs using Apache Tika (powered under the hood by PDFBox), I tend to get all the spaces I'd expect between words. That is, the above sentence would be rendered by Tika as This sentence doesn't have any spaces

ABCpdf converting html anchors to jump to another page in the same PDF

半世苍凉 提交于 2019-12-03 03:14:56
I'm dynamically generating a PDF using ABCpdf which contains a table of contents that would link to other pages within the same PDF. The problem is that the path of the anchor tags in the HTML get changed to an absolute path to a temporary file. For example, ABCpdf would render the link's href: <a href="#elementId">Link</a> in the PDF as: file:///C:/Users/Aaron/AppData/Local/Temp/ABCpdf/pdfCMMYPSF.htm#elementId This is how I generate the PDF: Doc pdf = new Doc(); pdf.HtmlOptions.AddLinks = true; pdf.Rect.Rectangle = new System.Drawing.Rectangle(20, 80, 572, 702); int id = pdf.AddImageHtml

download html file as pdf using abcpdf

限于喜欢 提交于 2019-11-30 23:59:26
How can I download an HTML file as a PDF using abcpdf in ASP.Net, C#? The following ASP.NET example in C# shows how you might create a PDF from a web page and stream it to a web browser... <% @Page Language="C#" %> <% @Import Namespace="WebSupergoo.ABCpdf7" %> <% Doc theDoc = new Doc(); theDoc.AddImageUrl("http://www.example.com"); byte[] theData = theDoc.GetData(); Response.Clear(); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "inline; filename=MyPDF.PDF"); Response.AddHeader("content-length", theData.Length.ToString()); Response.BinaryWrite(theData);

Using @font-face with ABCPDF? Or other way of getting fonts into PDF?

无人久伴 提交于 2019-11-30 21:32:13
We have a large application successfully using ABCPDF.NET with HTML Styled text. We're accustomed to adding text using fonts not installed in Windows, but stored in files elsewhere in the filesystem -- we do this so each user can upload their own fonts and use them with the output. We use the AddFont call to embed the font in the Doc, then reference the font in a tag for HTML Styled text with the AddText call. We're starting to look at using AddImageUrl / AddImageHTML to get more HTML power. Fonts are therefore a sticking point. It seems that both the MSHTML and Gecko engines will only see the

Using @font-face with ABCPDF? Or other way of getting fonts into PDF?

折月煮酒 提交于 2019-11-30 17:05:53
问题 We have a large application successfully using ABCPDF.NET with HTML Styled text. We're accustomed to adding text using fonts not installed in Windows, but stored in files elsewhere in the filesystem -- we do this so each user can upload their own fonts and use them with the output. We use the AddFont call to embed the font in the Doc, then reference the font in a tag for HTML Styled text with the AddText call. We're starting to look at using AddImageUrl / AddImageHTML to get more HTML power.

Extra blank page when converting HTML to PDF using abcPDF

不问归期 提交于 2019-11-30 08:59:14
I have an HTML report, with each print page contained by a <div class="page"> . The page class is defined as width: 180mm; height: 250mm; page-break-after: always; background-position: centre top; background-image: url(Images/MainBanner.png); background-repeat: no-repeat; padding-top: 30mm; After making a few changes to my report content, when I call abcPDF to convert the report to PDF, suddenly I'm getting a blank page inserted after every real report page. I don't want to roll back the changes I've just made to remove this problem, so I'm hoping someone may know why the extra pages are being

PDF Report generation [closed]

女生的网名这么多〃 提交于 2019-11-30 04:00:25
EDIT : I completed this project using ABCpdf. For anyone interested, I love this product and their support is A+. Everything I listed as a 'Con' for the HTML -> PDF solution was easily doable in ABCpdf. I've been charged with creating a data driven pdf report. After reviewing the plethora of options, I have narrowed it down to 2. I need you all to to help me decide, or offer alternatives I haven't considered. Here are the requirements: 100% Data driven Eventually PDF (a stop in HTML is fine, so long as it is converted) Can be run with multiple sets of data (the layout is always the same, the

Page break when HTML to PDF with AbcPdf

落花浮王杯 提交于 2019-11-29 17:27:13
问题 I'm trying to create a report in PDF with abcPdf. Everything works but I would like to add a page number and margin at the bottom of each page as well as avoid cuts in the middle of a row as you can see in the picture: var theDoc = new Doc { TopDown = true }; var pageRef = theDoc.AddImageUrl(pdfUrl, true, 1903, true); while (theDoc.Chainable(pageRef)) { theDoc.Page = theDoc.AddPage(); //I guessI have to do something here??? pageRef = theDoc.AddImageToChain(pageRef); } Does somebody know if it

ABCPDF not showing full table data

China☆狼群 提交于 2019-11-29 17:08:11
Please refer to the image below: It's cutting off some of the table data because of the width. My table width is more than 1000 px. I know The default document size for ABCpdf is 612 by 792. Using the code below to set document width and height double w = doc.MediaBox.Width; double h = doc.MediaBox.Height; double l = doc.MediaBox.Left; double b = doc.MediaBox.Bottom; doc.Transform.Rotate(90, l, b); doc.Transform.Translate(w, 0); doc.Rect.Width = h; doc.Rect.Height = w; I want to display all tabular data. Do I need to modify my table size? Or do I need to modify the document page size of the