pdf-generation

JasperReports java library: Can it handle PDF 2.0 (ISO 32000-2:2017)?

跟風遠走 提交于 2019-12-11 19:28:00
问题 I've been using JasperReports in my java projects for a while, but now i'm facing a problem. A customer requires the generation of PDF files compliant with the ISO 32000-2:2017 standard. JasperReports uses iText for pdf rendering, and I know that the latest version of iText can handle PDF 2.0, but i've found out that JasperReports is currently using an older version of iText because of IP issues with the newer releases. Does it mean that i cannot create PDF2.0-compatible files with this

Why so big difference in sizes of almost identical documents

百般思念 提交于 2019-12-11 18:05:32
问题 Have two pdfs, first created with libharu and second created with PDF::API2. If not mention to coordinates then content is the same. But first pdf oversize second by four times. Only one distinction what i found that is type of fonts embedding showed in document properties fonts tab. In first Verdana (Embedded Subset) Type: TrueType Encoding: Custom In second Verdana Type: TrueType Encoding: Custom Actual Font: Verdana Actual font Type: TrueType How to deal with that embedded subset? 回答1:

Document creation and editing online

*爱你&永不变心* 提交于 2019-12-11 17:46:18
问题 What language or technology would I need to be able to create documents online? I want to be able to add text and images and move them into position, resize etc, similar to this. And then when complete, create a PDF from them. Sorry if this is a bit vague, I just need to know where to start researching. 回答1: You need to decide on your basic technology: Flash, Silverlight, Canvas, client-side SVG, server-side SVG or server-side bitmap. There are also commercial solutions that work with Adobe

Path issue with wkhtmltopdf.exe to convert HTML file to PDF

不打扰是莪最后的温柔 提交于 2019-12-11 17:46:17
问题 I am using wkhtmltopdf to convert HTML file into PDF document on a link Button http://code.google.com/p/wkhtmltopdf/ When User Click on a link Button it runs the following code as shown below code in pass file path as an argument ProcessStartInfo. THis code works fine in Following Scenarios only Taking Into consideration that website is hosted on Domain http://www.xyz.net/ When i mention path as http://demo.XYZ.net/ It works fine When i mention path as http://www.XYZ.net/ It doesn't work In

pdfkit Browser - “Uncaught ReferenceError: fs is not defined” when using custom fonts

浪子不回头ぞ 提交于 2019-12-11 17:29:12
问题 This question may be asked previously but they have no answer. I try to create a pdf file using pdfkit library with Arabic language support. So, first I downloaded a prebuilt version of pdfkit (which is assumed to work in browser) from here. Then I wrote this code for adding an Arabic font (like in the docs) const doc = new PDFDocument; var text_arabic = "مرحبا مَرْحَبًا"; // Using a TrueType font (.ttf) doc.font('./trado.ttf') // --> this line gives the error. .text(text_arabic) .moveDown(0

html2Canvas/jsPDF only converts the data in the viewport to pdf?

荒凉一梦 提交于 2019-12-11 17:23:11
问题 I am trying to use the html2Canvas to convert html content to pdf. I have one consent form which is long and we have to scroll like below. I have written below code to convert the consent form into pdf and later show it in a separate screen. let htmlGrid = document.getElementById('customContent'); const options = {background: "white", height: htmlGrid.clientHeight, width: htmlGrid.clientWidth}; html2canvas(htmlGrid, options).then((canvas) => { let doc = new jsPDF("p", "mm", "a4"); let imgData

PDF margins - Google Script

自作多情 提交于 2019-12-11 17:12:33
问题 I have the basic script working fine, it does exactly what I want it to do. It takes the Google Sheet turns it into a PDF and emails me the PDF. My question is how can I adjust the margins on the PDF, I need to set the PDF to fit page. I can't just resize the sheet because it throws the spacing off. /* Email Google Spreadsheet as PDF */ function PDF() { // Send the PDF of the spreadsheet to this email address var email = "gmail.com"; // Get the currently active spreadsheet URL (link) var ss =

Using PrintOut for Adobe PDF with predefined path and file name

喜欢而已 提交于 2019-12-11 16:39:14
问题 I want to print a macro-enabled MS-Word Document that is embedded in a Excel Worksheet which it's name is SalaryPaycheck , from the excel macro module. I using code below: Sub PrintIt() Dim objWord As Word.Application Dim objDoc As Word.Document Dim Oshp As Object Dim strCurrentPrinter As String ActiveSheet.OLEObjects("SalaryPaycheck").Activate Set objWord = GetObject(, "Word.Application") objWord.Visible = False Set objDoc = objWord.ActiveDocument objWord.Application.DisplayAlerts =

Applying Styles in PDF GridView using itextsharp

假装没事ソ 提交于 2019-12-11 16:24:03
问题 I'm trying to print a panel which contains data like labels and GridView to a PDF using itextsharp in my webpage. But if i'm not able to apply the styles to the GridView. Can you help me?? I'm using both css and html styles to style my GridView. Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "inline;filename=" + filename + ".pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache); StringWriter sw = new StringWriter(); HtmlTextWriter hw = new

Remove font using iText

萝らか妹 提交于 2019-12-11 16:18:28
问题 I have a problem with my PDFs. They have a default font, Helvetica. This font is unused, but I need to develop a script that automatically deletes this font. After asking two questions: Unset PDF font with script xhtml2pdf doesn't embed Helvetica I finally discover iText. I've been trying to work with this library, and I made a few successful tests with Unembeding Fonts (example). But I can't find anything about deleting a whole font from de PDF. Thanks a lot 来源: https://stackoverflow.com