pdf-generation

PdfBox issue while changing page

此生再无相见时 提交于 2019-12-02 03:14:56
I'm not a big fan of asking this kind of questions but well, it's been 3 whole days now trying to solve this bug on my code. I know it's a logic problem and I know how to solve it in my mind, but when it comes to translate my ideas into code I just can't make it work as I want. I'm working on a contract endorsement (a modification of a contract) which compares the data from 2 tables and if any of them has changed then it paints only that information. Sometimes the information that changes such as conditions grows up or lowers in length, here's where the problem lies. I made an algorithm which

Programmatically print to a PDF printer [closed]

会有一股神秘感。 提交于 2019-12-02 02:57:41
I am looking for a free open source .Net based, preferably C# , pdf printer such as CutePDF's Custom PDF Writer with programmatic access that will allow me to save a xps document to a pdf format. I have found many alternatives that are capable of converting xps documents to pdf formats, but they are not open source. I was curious to know if anyone is aware of an open source library that will allow me to accomplish this. For any of you out there attempting to convert XPS to PDF using an open source means, I was able to successfully do so using PDFSharp version 1.31 . It successfully upgraded to

iTextSharp pdfpTable flowing in two columns in same page

99封情书 提交于 2019-12-02 02:44:57
问题 I am using iTextSharp PdfPTtable for creating tables from a database. When the table is lengthy (long but just with 3 columns), I managed to get the table flowing (or continuing) to the next PDF page. But I want them to continue in the right side (or column) of the same page. And after that it has to continue to next page (left column and then the right column and so on...). 回答1: Your requirement is (almost) an exact match with one of the examples of my book. Please take a look at page 3 and

ASP.NET page to image or PDF

Deadly 提交于 2019-12-02 02:37:05
I have an ASP.NET page like this: http://farm4.static.flickr.com/3631/3690714302_c17b259863.jpg My table is Gridview and some Label , anybody can tell me how to create a button to convert my page to image or PDF file and save it to desktop. It can be done by code on the backend that renders the html into a memory Graphic object and then serves that resultant bitmap back, or by printing the page (on the server) through a PDF writer and then capturing the result. Javascript, no. Or google "online convert html pdf" and use one of those services. Jaison Joe Hai use iTextSharp to convert your

Vector graphics with ITextSharp

夙愿已清 提交于 2019-12-02 02:23:56
I have heard that ITextSharp does not have support for the JAVA2D class, does this mean that i cant import vector points from a clients databas to "print" to a ITextSharp application? I would relly like to find answer to this before going further with this suggestion. Anyone have real experiences of this? While it is true that you can't use JAVA2D with iTextSharp you can still draw vector graphics in a PDF-native way by writing directly to the PdfWriter.DirectContent object. It supports all of the standard MoveTo() , LineTo() , CurveTo() , etc methods that you'd expect from a vector drawing

pdf render to asp.net web page results in static title

有些话、适合烂在心里 提交于 2019-12-02 01:59:30
问题 having a slight issue where i am rendering a pdf (stored as a byte array) into an asp.net web page, using the code below: Response.ClearContent(); Response.AppendHeader("content-length", document.Length.ToString()); Response.ContentType = "application/pdf"; Response.BinaryWrite(document); Response.Flush(); Response.Close(); This works with no issues at all, however in order to render this pdf (ie. return the byte array) we are calling a web service by passing a few parameters in the

TCPDF_import is not bringing in an existing file

陌路散爱 提交于 2019-12-02 01:39:52
I have a PDF of a blank certificate, I want to fill in two lines when the user completes a course of study, and display the PDF so they can print or download it. I am using TCPDF to write the two lines on an existing PDF. Per suggestions in a previous post ( using PHP to fill in a PDF ), I am using TCPDF_IMPORT to bring an existing PDF into the object, and writing on top of it. However, the original PDF does NOT show on the screen, I am left with a blank document, with only the lines of text I created. Below is what I have to this point - it yields ONLY the line "This is my test text." <?php /

Exporting multiple pages to PDF in a specific order

99封情书 提交于 2019-12-02 01:19:51
问题 I am trying to export pages from two different sheets of a workbook as 1 PDF. However, I want the pages to be in this order: 1 page from Sheet1, 5 pages from Sheet2, 2 pages from Sheet1. At the moment I am exporting these as 3 seperate PDFs and then merging them afterwards in another application. The code I have been using is below: ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=sPath & quotept1filename, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:

pdf render to asp.net web page results in static title

吃可爱长大的小学妹 提交于 2019-12-02 01:16:05
having a slight issue where i am rendering a pdf (stored as a byte array) into an asp.net web page, using the code below: Response.ClearContent(); Response.AppendHeader("content-length", document.Length.ToString()); Response.ContentType = "application/pdf"; Response.BinaryWrite(document); Response.Flush(); Response.Close(); This works with no issues at all, however in order to render this pdf (ie. return the byte array) we are calling a web service by passing a few parameters in the QueryString. This is where the issue comes in. Once the PDF renders, it shows the title as the complete url +

Create a PDF From a JSP Output

心不动则不痛 提交于 2019-12-02 00:57:02
问题 I have a webpage with a export option to PDF. I have to display the contents of the page in the PDF. Currently I use iText PDF Library to generate PDFs. The problem is creating PDF with iText is quite a challenge. Moreover we get frequent layout/UI changes for the webpage, so we have make the same changes to PDF. Is there any way i can convert my JSP output to PDF. Like for example "if we set the content type to contentType="application/vnd.ms-excel", a JSP table can be rendered as Excel