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

ExtJS3 Virtual Keyboard plugin throws a exception in ExtJS4

I had used virtual keyboard plugin available here in Ext JS 3 : It does not seem to be working with Ext JS 4 . I have changed VirtualKeyboard.js file & it looks as follwing, problem is BackSpace gives me an error : Uncaught TypeError: Cannot read…
S R
  • 674
  • 2
  • 18
  • 45
2
votes
1 answer

Incorrect colors when decoding JPEG using image.Decode and writing to PDF?

I'm trying to create a PDF by decoding image files (in PNG, JPG, GIF, and BMP format) using the image.Decode() method to get the image.Image. Then, I write the pixel data into a PDF stream, which is later compressed. The problem I'm encountering is…
Sett
  • 33
  • 4
2
votes
0 answers

Convert uiwebview to pdf and emailing

I have a Uiwebview which shows local htmls.I've done to convert html to pdf and can read on desktop.But when I attached pdf file to mail,It sent successfully but sometimes those pdfs can not be read in ipad or iphone?who has any suggestions to help…
2
votes
2 answers

How to break a page conditionally with react-pdf/renderer

I am trying to add a page break conditionally once my Section title is not on the first page, i.e., page breaks should begin after the second page. How do I add this condition to my View tag for the "Section Title" to my code below where there is…
myverdict
  • 622
  • 8
  • 24
2
votes
0 answers

my python code return an error because of the PyPDF2.PdfFileWriter func of PyPDF2 library

im having an issue with this line: pdf_writer = PyPDF2.PdfFileWriter(strict=False) it return this: Multiple definitions in dictionary at byte 0x1fd19 for key /Info Multiple definitions in dictionary at byte 0x1fd25 for key /Info Multiple…
VullWen
  • 19
  • 1
2
votes
1 answer

R quarto full page width render to PDF {gt} tables

I'd like to use the full page width when rendering a quarto file to PDF without modifying the margins for the entire document or the paper size. I have a table I've built using the {gt} package that is running off the page along with some screen…
billash
  • 172
  • 1
  • 7
2
votes
0 answers

Load canvas rendered images in puppeteer pdf generation

I am trying to generate PDF of a page which is heavily loaded with images in react app. So far I was able to generate it on frontend i.e., in react. But it takes too much time to generate and download. As the images are very high resolution the…
2
votes
1 answer

space images in PDF using R

I'm using R to generate PDFs that contain QR code images. The images have to be arranged in a 4x6 pattern like this mockup that i made in Word: I've written a loader that i plan to write into a loop later on (i've got over 2000 images). However, i…
JadaLovelace
  • 194
  • 4
  • 16
2
votes
1 answer

Pdf generate, enable text wrap and disable break words

When generating pdf file in the table. Is it possible to set to enable text wrap, but disable to break words? Beacuse now it wraps words and added hyphen. I would like whole word give to the new line without wrap word. How to set it up? This css…
Elo
  • 226
  • 5
  • 19
2
votes
0 answers

Convert XML file to PDF using XSLT in Node.JS

I'm trying to convert XML report into PDF using XSLT in a Node.JS application. From what I found this can be achieved using JAVA https://stackoverflow.com/questions/212577/how-do-you-create-a-pdf-from-xml-in-java but i didn't found a javascript…
2
votes
2 answers

Alternative to HTML to PDF converter?

I've been using the Winnovative HTML to PDF converter for a few years, but I've noticed the quality can be impared because the images etc have first had to be rendered in HTML before being converted into a PDF format. Winnovative have another option…
Curtis
  • 101,612
  • 66
  • 270
  • 352
2
votes
2 answers

PDF Sharp - AddPages replaces form fields

I have a couple of .pdf pages (they are filled forms) that i want to join into a single pdf file. First I create a pdf document that will hold the info. Then I'm opening each pdf file, var docToImport = PdfReader.Open(pathToPdf,…
birmsi
  • 128
  • 13
2
votes
2 answers

How to make pictures wider in LaTeX?

I have tried to make a several pictures in one big figure. However, they are placed very close to each other. I need to add more space between them (between pictures in horizontal and in…
2
votes
0 answers

Python FPDF Internal Links Not Working on TOC Page - Generating PDF Document

Simply, I am using The FPDF library in Python to generate a PDF document including a Table of Contents. In the table of contents I want to link from the page number cell to the corresponding page in the PDF document. This is called an internal link.…
NBessmer
  • 87
  • 2
  • 9
2
votes
2 answers

What is the FileType number for PDF in Excel 2007 that is needed to save a file as PDF through the API?

I need to call a function in order to save an Excel workbook. I installed the PDF save addon for Excel 2007 but now I need to know what the number code is for the file format for when I save the excel file. An example of the excel file format…