Questions tagged [pdf-generation]

PDF generation is the process of creating a PDF document using various tools or libraries.

Use this tag for any programming-related question concerning the creation of PDF files, be it with a 3rd-party library or tools like PDF printers or PDF converters, or PDF authoring applications.

Questions asking us to recommend or find a tool, library or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.

Related tags: ,

7433 questions
2
votes
2 answers

How to "float" an image in a cell - iTextPDF

I am trying to create a formatted PdfPCell where my text is on the left and an image(QRCode) is "floated" (in the css sense) to the right. My current code moves the image to the right but the text is on the next line not the same line as the…
tvfoodmaps
  • 347
  • 1
  • 3
  • 14
2
votes
3 answers

Wicked_pdf not working with Heroku

I'm finishing a PDF report implementation for my application, which works perfectly in development mode, but when uploading to Heroku, it doesn't work, and I get the following error: 2011-10-24T03:28:02+00:00 app[web.1]: RuntimeError (Failed to…
bbonamin
  • 30,042
  • 7
  • 40
  • 49
2
votes
2 answers

c:\windows\system32\inetsrv\Test.pdf is denied

I have a requirement to generate a pdf document on a button click on using visual web part- sharepoint 2010. I am using the the open source library http://www.itextpdf.com/ for the same. I am able to execute the below code using the project type as…
Janet
  • 1,391
  • 14
  • 40
  • 62
2
votes
8 answers

How do I tell if an HTML element has gone off the bottom of a page?

I have a system that takes dynamic data, puts it in HTML for layout and then converts that to PDF. However the problem I am having is that if an element becomes too big for the remaining page space or pushes something else off the bottom how can I…
Robert
  • 535
  • 3
  • 13
2
votes
4 answers

Tool or method to download any section of MSDN documentation and convert to pdf?

Reading the online MSDN docs is a great way to learn more about .NET and other MS technologies. However sometimes I need to read it in an offline mode, like when using an eReader. Is there a tool, software or some code which can be used to download…
Abdu
  • 16,129
  • 13
  • 59
  • 84
2
votes
1 answer

How to merge pages of a pdf file into a single vertically combined page with python

I have tried merge_page method in pypdf and pdfrw but they stact one page over other, how do I proceed? below code which i tried, similar with both modules from pdfrw import PdfReader, PdfWriter, PageMerge def…
V Falcon
  • 25
  • 4
2
votes
2 answers

How to to generate a PDF/A file in Node.js?

I have to generate a PDF/A-3 file for a Node.js project. I want to either be able to generate a PDF/A-3 file from scratch or convert an existing file to PDF/A-3. I haven't found a simple/straightforward way to do that so far. I have checked…
2
votes
1 answer

Mainframe data conversion to electronic PDF - alternative to Emtex?

We are currently converting mainframe data files to PDF using Emtex but it is extremely slow (taking a weekend to convert 50,000). These need to happen in an automated, secure, FAST manner with very large volume. We don't need to print them, just…
Stephanie
  • 21
  • 2
2
votes
3 answers

Html to PDF generation with Java

In our project, we have a task to generate PDF from HTML content. For that, we tried to use flying saucer and openhtmltoppdf, however, the HTML content that we are trying to generate contains CSS3 syntax, and seems that both of these libraries have…
2
votes
1 answer

open failed: EACCESS(Permission Denied) for downloading PDF and sharing them from Android12 and later

I'm trying to download a pdf file from a URL in Android Webview. I use blob to get the data and create a file using javascript injection in webview. It works fine in samsung, pixel and xiaomi device but on Huawei device I getopen failed:…
2
votes
2 answers

HTML to PDF - Bad performance

I´m using ExpertPDF (library for .NET C#) for converting HTML to PDF and my problem is that it takes a lot of time to do this. Are there any customizations that will improve the conversion? The HTML-page contains table-data with just a few images,…
Tommy
  • 298
  • 1
  • 3
  • 9
2
votes
1 answer

What fonts are supported by Salesforce PDF generation?

I'm generating a pdf using a VisualForce page with the renderAs param set to pdf. I'm wishing for more fonts even though others have complained there are few. Does anyone know of additional fonts that work with Salesforce pdf generation? So far I've…
twamley
  • 801
  • 2
  • 14
  • 22
2
votes
1 answer

Getting ###### instead of Emojis When Generating PDF using Apache FOP 2.4

I'm generating PDF in a web application which is using Apache FOP 2.4. When generating PDF with Emojis it is resulting in the PDF as ###############. But normal alphanumeric text is appearing properly. Following is how my renderers looks like in…
SachinD
  • 43
  • 1
  • 8
2
votes
1 answer

base64 image is broken when trying to render image in headertemplate puppeteer

I want to create a pdf using puppeteer/PDFOptions . It contains a base64 encoded image inside the headerTemplate: await page.pdf({ displayHeaderFooter: true, printBackground: true, headerTemplate: '
Bala Kumar
  • 31
  • 2
2
votes
3 answers

Best way to calculate page count while creating a PDF in Quartz?

My app creates a pdf page from app data, using Quartz and UIGraphics. Basically I define a CGRect docRect to fit on that page, then increment an NSInteger yOffset each time I draw something. If yOffset gets larger than docRect.size.height I do a…
marimba
  • 3,116
  • 5
  • 26
  • 29