Questions tagged [pdf-generation]

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

pdf-generation
Filter by
Sorted by
Tagged with
1 vote
2 answers
2k views

How can I generate a PDF file from Amazon Textract output?

I am using Amazon Textract to extract data from a scanned document. Now I want to convert the output to a PDF file. Below is a sample output of Textract: [1] => Array ( ...
Sreeraj's user avatar
  • 316
1 vote
0 answers
185 views

FPDF - Output skipping rows on multi column tables

I am outputting a query from my database into the three columns using FPDF. I am using the default code from the FPDF demo here: http://www.fpdf.org/en/tutorial/tuto4.html However, when i output the ...
Shaun's user avatar
  • 792
1 vote
1 answer
318 views

How to generate PDF document from the HTML template on Google Firebase?

What would be the best solution for generating PDF files from the HTML template on Google Firebase? I would like to use html-pdf-chrome plugin, but I'm not sure how to configure it. Are there better ...
mrisek's user avatar
  • 659
1 vote
0 answers
198 views

insert a PDF into another multiple times on linux

I need help to insert a PDF file every 4 pages of another PDF. I have 2 files A and B. A is 100 pages, I need to put every 4 pages the entire PDF B which is 4 pages. I know the pdftk has functions ...
brambil's user avatar
  • 23
1 vote
0 answers
599 views

How do I save HTML table as image in a PDF

I have a problem trying to export an HTML table to PDF with all the canvas it has. The thing is, i can export the canvas as an image to the PDF but i cant seem to do the same with the tables. Here ...
Start PDV's user avatar
1 vote
2 answers
5k views

Python + PyPdf: Crop region of page and paste it in another page

Lets say you have a pdf page with various complex elements inside. The objective is to crop a region of the page (to extract only one of the elements) and then paste it in another pdf page. Here is a ...
caspillaga's user avatar
1 vote
1 answer
713 views

PdfDocument - Cut page at the end of the layout

I'm creating a Pdf file using the Android PdfDocument class. I'm inflating the layout from an XML file (a LinearLayout inside a ConstraintLayout), which is then completed at run-time by adding new ...
twitch's user avatar
  • 13
1 vote
2 answers
1k views

Set Page level transparency blending color space to Device RGB

My requirement is to set page-level transparency blending color space to Device RGB. I am trying to use pdfBox to achieve this. Screenshot is from the Adobe Acrobat reader (Print Production -> flatten ...
zero's user avatar
  • 11
1 vote
0 answers
175 views

Select.Pdf: security transparent method to access security critical method

I am using Select.Pdf to make PDF files of pages of my angular app. Select.Pdf is ruinning on server side in .Net.Core 4.6.2. Here is the code which is doing the conversion SelectPdf.HtmlToPdf ...
Konstantin's user avatar
1 vote
1 answer
854 views

Export to PDF with parameters

Been reading about how to save sheet to a PDF file and I stumble to this code it works well before but now it won't been getting error of "uiapp deprecated". How can I fix this? BTW the codes not mine,...
Jayson Roque's user avatar
1 vote
1 answer
2k views

How to make a page break when there is not enough space?

I am trying to generate a product stock report in PDF. To do this, I first created the report in HTML. Firstly I created the table with the list of products and at the end of this, a small table with ...
Álvaro Redosan's user avatar
1 vote
0 answers
105 views

NumberFormatException for input string: "9.014", when trying to set value of formField [duplicate]

I am working with iText-7, and trying to read a pdfForm (generated in LibreOffice) and set value for one text field (Form has only one text field). But I am getting below exception Exception in ...
Rohit Patel's user avatar
1 vote
1 answer
566 views

Why are colors inverting when using tesseract on this image?

When I use tesseract to turn the above image into a searchable pdf, the resultant pdf has white and black inverted (which I do not want). The specific command I'm using is tesseract my_img.png test ...
rpspringuel's user avatar
1 vote
0 answers
2k views

PDFBox TextPosition width and height in mm

I am using PDFTextStripper to extract text from a PDF. I want to get the width and height, in millimeters, for each TextPosition. This can be found from a given TextPostion tp using tp.getWidth() and ...
Mr. D's user avatar
  • 687
1 vote
0 answers
150 views

How to wrap output in R markdown using pdf_document

How do I get this result in which both the source code and the output appear wrapped by a line in R markdown using a pdf_document. My yaml is configured as follows: --- title: 'Applied Econometrics ...
Alexandre Loures's user avatar
1 vote
0 answers
283 views

How To Render HTML Elements from xsl value-of in XSLT?

I am working in generating a letter pdf using xsl-fo. I have a scenario where I need to format the text in my form like ex.Bold, Underline, Line-spaces, etc. I am using rich text editor to achieve ...
Pradeep Anand's user avatar
1 vote
1 answer
319 views

PDF certificate is null syncfusion component

I am using syncfusion component for Word to PDF conversion and then apply signature on pdf file from PDF.pfx file provided by syncfusion. Here is code reference: Open PDF document and apply signature:...
Ahmad's user avatar
  • 887
1 vote
0 answers
630 views

React Native: Placing image into existing PDF at specific X,Y

I am currently working on react-native app, where I would like to place image into existing pdf at specific coorinates. Firstly, I create PDF from HTML template with the following library, and at ...
Jaka Krajnc's user avatar
1 vote
0 answers
30 views

How to determine what page a PDF opens on?

I'm generating multi-page PDF reports using pentext, which uses Apache FOP. It all works fine, but when I open the resulting PDF (in macOS Preview), it always opens on the last page rather than the ...
Synchro's user avatar
  • 36.8k
1 vote
1 answer
709 views

NReco HtmlToPdfConverter error: The specified executable is not a valid application for this OS platform

I use NReco HtmlToPdfConverter and usually it works correctly. But sometimes I face with the following error: Cannot generate PDF: The specified executable is not a valid application for this OS ...
Ilya Shpakovsky's user avatar
1 vote
1 answer
999 views

How to convert .pages file format from apple to pdf on windows linux programmatically

How to convert .pages file format from apple to pdf on windows linux programmatically with some code. I have tried few things like changing the extension to .zip and then unzip. This gives me the ...
K.S's user avatar
  • 405
1 vote
0 answers
145 views

Download PDF Using PDFShift in Laravel

I use Laravel and have implemented all the things according to the documentation. After that, I was able to save the PDF into the project directory. However, I want to download the PDF to the user's ...
Kistlak's user avatar
  • 11
1 vote
0 answers
183 views

PdfBox flatten pdf template fields but pdf is still editable

I have a pdf template and with the following code I open it, edit, and then save it with another name after flattening it. But when I open the new pdf file, the fields are still editable. public ...
Mikfaina's user avatar
1 vote
0 answers
86 views

JTidy issue with numbered list item

I am facing a weird problem with Numbered List Item while generating pdf using IText. The serial number of the item list is not incremented by one when a <br/> tag is appended. consider the ...
Erfan Ahmed's user avatar
  • 1,573
1 vote
1 answer
471 views

Node package "dynamic-html-pdf" not applying CSS to generated pdf

app.get('/individual_report/:athlete_id', function(req, res) { database.select('*').from('participants').then(data => { if (data.length) { res.render('individual_report', { name:...
calvert's user avatar
  • 711
1 vote
1 answer
2k views

Ghostscript to compress a batch of PDFs

I have no experience of programming. My PDFs won't display images on the iPad in PDFExpert or GoodNotes as the images are in JPEG2000, from what I could find on the internet. These are large PDFs, ...
AcridSmoke's user avatar
1 vote
1 answer
179 views

Is it possible to read a pdf form produced by itextsharp with IText java?

Is it possible to read a pdf form produced by itextsharp with IText java ? public static void main(String[] args) { String src = "D:\\Doc\\Filled_PDF_Form.pdf"; PdfReader reader; try { ...
PDS's user avatar
  • 48
1 vote
1 answer
168 views

How to generate pdf from angular2

My pdf file appears like this: I have a screen on click of print, whole screen must be converted to pdf format. I tried to do like this, but it is splitting the page, i am not able to get the whole ...
Bhrungarajni's user avatar
  • 2,505
1 vote
1 answer
481 views

Display kable table in line with text -- Sweave Rnw file

I have an Rnw file with a table using the kable command. I want the table to be displayed in line with the text that it follows. How can I stop the table from being displayed at the top of the page? ...
Sam Spedding's user avatar
1 vote
0 answers
632 views

multilingual support in itext java

I am using itext 5.5.4 in my project. I am trying to write a multilingual text in a pdf file. The relevant code example I found is this. This code uses FontSet class to bundle multiple fonts. ...
Sudipta Roy's user avatar
1 vote
0 answers
723 views

How to do Server Side PDF from Vue-Tables-2, Vue Js, and Laravel

I have a Vue-tables-2 datatable that I have a createPDF() method on a button - working as a client-side pdf generator using pdfmake After review my client prefers to use a server-side pdf generator. ...
Eric Ransom's user avatar
1 vote
1 answer
7k views

Generating custom pdf layout with Apache PDFBox Library according to a given template?

How can I use the Pdfbox library to generate a custom pdf layout according to a template? This the template : layout template I am open to using other libraries as well if it has a more elegant way ...
SandyG's user avatar
  • 33
1 vote
1 answer
302 views

Generate pdf format and append data

I want to able to generate an Attendance sheet from the android application. The attendance sheet format is like the picture below. i am fetching the data (example 50200) from a firebase database. ...
MEHEDI HASAN's user avatar
1 vote
0 answers
33 views

Does anyone know of a technology that allows one to edit the tags on pdfs?

I am looking to programmatically edit the tags in a pdf document.In particular I would like to be able to copy tags from one document to another, and edit them as I copy them over. I have looked at ...
clairekelley's user avatar
1 vote
0 answers
515 views

ITextSharp writing RTL words wrongly

I am experiencing something strange while writing some names text using ITextSharp – I am writing some text namely “حبیب الله ځاځی” I attempt to write this string onto the PDF using ITextSharp 5.5.13 ...
Ben Chege's user avatar
  • 201
1 vote
0 answers
269 views

WebBrowser print programmatically with PDFCreator

I'm trying to print programmatically multiple html pages from WebBrowser in VB.Net. The program I made is a web scraper that takes info about shipment from the shipment company's website and print the ...
Simo's user avatar
  • 955
1 vote
1 answer
4k views

How to convert .msg file to PDF using java

I want to generate pdf file from msg file using java. Mail body format should be same. I want to go with java libraries as system where i'm going to run this code may not have outlook installed. I ...
Rupesh's user avatar
  • 21
1 vote
1 answer
2k views

How to generate pdf from multiple html files using puppeteer asynchronously?

I want to generate pdf from multiple html files, later I will merge them, once they all generated. But I am getting error, when i try using loop. Can anyone tell me, How to generate pf using ...
developerKumar's user avatar
1 vote
0 answers
52 views

Merge all the PDFs that been generated

I am developing a web application and one of its features is to generate a multiple certificate in a PDF file. There's no problem in generating a pdf but what I want to happen when generating a ...
JM Villaflores's user avatar
1 vote
0 answers
337 views

How to apply password protection when converting Html to PDF using EO.pdf?

I am using EO.Pdf to convert my html text to pdf, i want to apply password protection on it, pdf file should not be opened without password. EO.Pdf provides the option if i use PDFDocument object ...
Muhammad Atif Agha's user avatar
1 vote
0 answers
325 views

wkhtmltopdf -> Issue to FIT Html table in A4 (C#)

Today i would your help on an issue i have when i generate my Html / Table in .pdf I tried with Table to : width: 842px; height: 595px; (witch is A4 size), it doesn't fit. So i tried with Table to : ...
Johan's user avatar
  • 19
1 vote
1 answer
640 views

Headless Chrome PDF print with session

I am trying to integrate the Headless Chrome tool for generating PDF reports in my project. I managed to have the PDF generated however, since the page needs a user session to show the html report. ...
banri16's user avatar
  • 247
1 vote
0 answers
2k views

gnuplot auto size pdf

I'm currently plotting some diagrams with gnuplot and I would like to export them as pdfs. My results are not statisfactory, since I can only plot the canvas' Standard size of 640x480 pixels. How can ...
Nickel's user avatar
  • 11
1 vote
0 answers
2k views

How to convert a color pdf or images to black & white or grayscale pdf using itextsharp?

When I am trying to convert colored pdf or images to black & white or grayscale pdf iTextSharp in C# WinForm application, it's not working, it also has issues with transparent images. While ...
ramya's user avatar
  • 2,590
1 vote
0 answers
256 views

G.A.S. code to email a google sheet as a pdf file to a person through Telegram

I use the following Google Script Code to generate a pdf of a google sheet and send it through email. Is there a way I can send the pdf through teleram to a person? How should I change the following ...
Omid's user avatar
  • 177
1 vote
0 answers
729 views

Print a form from asp.net core 2.0 for customer

We are searching for a solution for the following problem: We gather some data on our website via an HTML form. This data shall be used for creating a form which in the end shall be printed and ...
mabota's user avatar
  • 51
1 vote
0 answers
842 views

Add watermark to PDF using Appscript

I am working on a Document Approval Workflow in Appmaker, I have a use case where If document gets approved then I need to convert that Google Doc to PDF and Add watermark (Confidential text) to it. I ...
Darpan Sanghavi's user avatar
1 vote
0 answers
243 views

Google Charts and ColdFusion PDF

I got this working, but in the most convoluted way possible. I don't want to duplicate this method for other reports if there is a better way. Because the Google Image Charts are deprecated, which ...
Cheryl Miller's user avatar
1 vote
1 answer
318 views

Getting NullPointerException whit JasperReports into a Multi-Thread application

I'm getting this error when i try to use JasperReports in a multi-thread way. java.lang.NullPointerException at java.awt.color.ICC_Profile.activateDeferredProfile(ICC_Profile.java:1086) ~[?:1.7....
Sergio's user avatar
  • 13
1 vote
0 answers
566 views

Repeat table title along with thead in flyingsaucer pdf

If we set -fs-table-paginate to paginate, the <thead /> element of the table will repeat in every page if the table spans over multiple pages in a pdf. Is there a way to repeat other content ...
Kalyan Chakravarthy S's user avatar

1
68 69
70
71 72
151