Questions tagged [pdf-generation]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Python - PDF form that fills in certain fields based on the value of another field

I am currently trying to use the canvas feature of reportlab.pdfgen to create a PDF form for a user to fill out. I would like to set up the form so that some of the fields are filled in automatically ...
zborch's user avatar
  • 1
1 vote
0 answers
9 views

How can I save a Finplot plot or multiple plots to a pdf file?

I am using Finplot to plot open high low close chart. It works fine, but I want to save the plots to a pdf file. So my question is how to save the plot(s) to pdf file. I don't know how to print it to ...
rumrum's user avatar
  • 23
-4 votes
0 answers
40 views

libharu linking problems [duplicate]

when i run my code i had this issues which i don't understand: errors code my code is not linking and idk why? i used the classic with cmake command to install hpdf.h but i don't get why this errors ...
B H's user avatar
  • 1
0 votes
0 answers
21 views

Printing Entire Scrollable Flutter Widget to PDF - Need Help Resolving Issues

I'm currently working on a Flutter app where I need to generate a PDF of the entire screen, including the scrollable content. My approach involves taking a screenshot of the widget and converting it ...
user23047202's user avatar
0 votes
0 answers
8 views

Unable to find 'endstream' marker for obj starting at 13367

When executing this piece of code: from pypdf import PdfReader,PdfWriter import traceback try: input_pdf = PdfReader(dwnld_filepath) output_pdf = PdfWriter() image = input_pdf.pages[0] ...
MUHAMMED SHAFEERALI P's user avatar
0 votes
0 answers
15 views

Using Select Library in react but in generating pdf it does not show its items

I use the "Select" library in my React code. (import Select from 'react-select'). I want to make the pdf from this page and use html2canvas to do that. But it does not show the select item ...
fahime abouhamze's user avatar
0 votes
1 answer
32 views

Split pdf by a page range with corresponding toc (table of contents) in final pdf. PymuPDF/fitz/pypdf2

I want to split a pdf book containing 800+ pages and have a table of content. Table of content is not a part of pdf pages, it appears on a pdf reader to navigate chapter or topics. Split pdf in such ...
Sabbir Ahmed  's user avatar
0 votes
0 answers
29 views

Is it possible to to re-serialize parsed TCPDF data back into PDF form?

I'm using TCPDF to examine the contents of a PDF file like so: $file_content = file_get_contents("path_to_file.pdf"); $parser = new TCPDF_PARSER($file_content); $data = $parser->...
Era's user avatar
  • 1
0 votes
1 answer
18 views

I need to create a PDF file and inside the PDF file I need to give table with rows and columns using MigraDoc PDFsharp NuGet packages

I want to add tables, rows, columns to my PDF. Can you suggest any coding for creating PDF file and also I need to add logo to my header part. I need a PDF with 6 pages with required footer and within ...
Nivetha.Sivanandan's user avatar
0 votes
0 answers
11 views

chromehtml2pdf renders too soon. Have page load event wait for asynchronous fetch() requests to resovle?

My webpage is rendered to PDF with chromehtml2pdf, which will execute the render when the page loads (I assume on the load event?). This page has react elements that are loaded asynchronously, after ...
SkyNT's user avatar
  • 743
0 votes
0 answers
93 views

Apache PdfBox Gray/faint underscores 2.0.26

The problem is that when our PDFBOX prints to the form using Autosize for Courier font defined as: "/Cour 0 Tf 0 0 0 rg" The underscores appear faint or grayed out so that users may not see ...
Chawk's user avatar
  • 1
1 vote
0 answers
119 views

Programmatically generate IDML to be processed by InDesign Server- Performance considerations and questions

We have lots of content that is spread out in multiple word/excel files. Currently we have a workflow that is generating a huge script file that is then executed on the InDesign Server to place items ...
ser1us's user avatar
  • 31
0 votes
0 answers
29 views

PDF View in ReactJS web application

In ReactJS web application using MUI component library, a 'View' button is embedded in data table, on click of which based on the api response base64 data, file url will is generated through this: ...
unak's user avatar
  • 15
0 votes
0 answers
26 views

Javascript not executed by pdfreactor

In my project I'm using pdfreactor for generating PDF from HTML file. I migrated my project pdfreactor from java 8 -> 17 Everything is ok, except, code js (into my .html) doesnot executes. (My ...
Valeriane's user avatar
  • 944
0 votes
0 answers
13 views

Is there way to create document editor in react js for data coming in byte array octate form [closed]

I am trying to Open PDF file from back-end response as byte array and add electronic signature or modify content add text inside the Pdf using react js. Can anyone suggest some customisation technique ...
Mr Vinsmoke's user avatar
0 votes
1 answer
51 views

System.Private.CoreLib: Could not load file or assembly 'System.Threading.AccessControl. The system cannot find the file specified

I'm building a function that generates PDF in memory from a string. I installed HtmlRenderer.PdfSharp in order to accomplish that functionality. When I add the following function into my code and run ...
Ruben's user avatar
  • 1,077
-1 votes
0 answers
12 views

Using OpenOffice in docker container (ubuntu) PDF to PDF/A file conversion

The final goal is to use OpenOffice for file conversion in the cloud. I'm new to containers. I'm trying to create a container based on ubuntu:23.10 installed .NET runtime installed LibreOffice ...
1gn1ter's user avatar
  • 1,422
0 votes
0 answers
34 views

Print a component in React: NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

I want to print a Component using JavaScript in React ( NextJS project ) using this function from this thread. const print = () => { var printContents = document?.getElementById("div&...
Menai Ala Eddine - Aladdin's user avatar
0 votes
0 answers
23 views

Error saving a document as PDF using SageMath in Cocalc

I need to save a .ipynb file I have created in Cocalc (using SageMath 9.6), but whenever I try to save it, I get the following message: Running nbconvert failed with an error 6 minutes ago. Read the ...
Jorge Rubio's user avatar
0 votes
1 answer
18 views

Passing data string to HTML cover in wkhtmltopdf

I know wkhtmltopdf lets you pass data to HTML headers and footers using built-in query strings (page, frompage, topage, webpage, section, subsection, date, isodate, time, title, doctitle, sitepage, ...
LucasJ's user avatar
  • 68
0 votes
0 answers
22 views

Make merge columns in pdfmake

I will print a table that has a group of columns with the same cell as the header. Example below: here I looked for a possible solution like this but this is a table with a group of columns with the ...
20_Aulia Fathurohman's user avatar
0 votes
0 answers
21 views

Generate PDF from Power Apps form including attachments

I need to convert the Power Apps form data (textbox, drop downs, checkbox - whatever user selects on form) including attachments files and images into one single PDF. So, ideally the generated PDF ...
Vipul Jain's user avatar
0 votes
0 answers
46 views

How to use font-family in jspdf

In CSS, we can use font-family to render multi fonts, for example: font-family: Roboto, ZhiMangXing; If Roboto not support, browser will use ZhiMangXing to render the text; But in jsPDF, we can only ...
White Wang's user avatar
0 votes
0 answers
35 views

PDFHummus is working when I run it from visual studio but fail when using the executable

I am trying to use PDFHummus to generate a pdf that shows a plot, I put all the libs and dlls in the main folder and created a very simple pdf of one page with text and an image using this code: #...
Diego Fernando Pava's user avatar
0 votes
0 answers
26 views

"ProtocolError: Runtime.callFunctionOn timed out" while creating PDF for Docusaurus site using Puppeteer docs-to-pdf

I am trying to generate a PDF from a Docusaurus site using the docs-to-pdf tool. I successfully did that for a smaller site but I get this error on a medium-sized website. I can't find a way to ...
Nida Z's user avatar
  • 1
0 votes
0 answers
30 views

Save pdf file local and on webserver with html2pdf.js

UPDATE: I solved this problem. See this javascript code: const pdfData = pdf.output('blob'); const formData = new FormData(); formData.append('pdf', pdfData, 'document.pdf'); formData....
MarkWie2's user avatar
0 votes
0 answers
17 views

Header and footer not rendering properly in the PDF report's landscape page - jsreport

The header and the footer are not getting rendered properly on the landscape page of the report. The page number is not in sequence, the footer is not rendered completely and the header is not visible....
Jitendra Shah's user avatar
0 votes
0 answers
17 views

How to change the orientation of the existing pages of the pdf report in the afterRender function in jsreport?

How to change the orientation of the existing page(s) of the pdf report in the afterRender function? Is it possible to do so based on some selectors that we can add in the report template? I have ...
Jitendra Shah's user avatar
2 votes
2 answers
190 views

Troubleshooting .NET 6.0 Azure Function App with IronPdf on Azure

I'm encountering an issue with a .NET 6.0 (LTS) Azure Function App on Windows, using the elastic premium plan. My application runs locally but not on Azure. I'm following guidelines from IronSoftware ...
Harleyz's user avatar
  • 43
-1 votes
0 answers
34 views

Python: transforming an html file to a pdf: keep formating, colors, plotly tables (dissapear when redering)

I am trying to transform my complex html into a pdf in python. i want to keep the colors on tables and the general look of the whole document, as well as the plotly tables (ofc not interactive). i ...
mspuse's user avatar
  • 1
0 votes
0 answers
13 views

Problem with pdfpages. Error: Undefined control sequence. 1.222 \includepdf [pages=-]{test.pdf}. Error: LaTeX failed to compile temp.tex

I'm having problems with using pdfpages package with rmarkdown. I want to insert a multipage PDF into my rmarkdown rendered PDF document. I'm using tinytex. The yaml has \usepackage{pdfpages} and in ...
ka2yee's user avatar
  • 1
1 vote
2 answers
161 views

CSS transform:scale() and print to PDF broken

I'm using Chrome to generate a PDF : everything works well until some of the divs contain the following CSS transform used to scale down their content : transform-origin: 0px 0px; transform: scale(0.5)...
Marc Polizzi's user avatar
  • 9,340
0 votes
0 answers
24 views

PDF activate overprint

I am trying to manually activate the overprint option in a PDF that is generated by a PDF library (MPDF) that supports PDF/X-1a and CMYK, but no overprint. Normally, according to the PDF standard, ...
root66's user avatar
  • 483
0 votes
0 answers
33 views

C# .NET 6 IText 8 Fill rectangle with back color

I just can't find how to do the following: private void DrawOutSideFrame(ref PdfCanvas gfx) { iText.Kernel.Geom.Rectangle Rectangulo = new(X, Y, RSize.X, RSize.Y); gfx.Rectangle(Rectangulo)....
Valentín Elizondo's user avatar
0 votes
0 answers
45 views

Generate and Download a PDF within a shiny app. Error File not on site

My primary goal is for users to download the PDF certificate that is produced when meet a passing score of 80% or more. Below I've share a reproduceable example of my code and the certificate made ...
Yumi Hatake's user avatar
0 votes
0 answers
17 views

html2pdf.js : adding html component as footer

I am working on a project in which I am converting html content to pdf using html2pdf.js library. I have my own react components for header and footer. Can I add these components to the pdf as header ...
Ankita Patil's user avatar
1 vote
0 answers
50 views

Chrome Print PDF and CSS transform broken

I'm using Chrome headless to generate a PDF : everything works well until some of the DIVs are containing the following CSS transform : transform-origin: 0px 0px; transform: scale(0.64); Visually ...
Marc Polizzi's user avatar
  • 9,340
0 votes
0 answers
23 views

Simulate PDF-Overprinting

I want to simulate Overprinting like in Acrobat Pro, where you can deactivate a single CMYK color and check if the underlaying colors are removed. Without overprinting activated, when you offset-print ...
root66's user avatar
  • 483
0 votes
0 answers
46 views

How can I effectively use PDFBox 3.0 to tag a PDF document for accessibility compliance and ensure it meets WCAG and PDF/UA standards?

I'm currently working on a project where I need to make PDF documents accessible to individuals with disabilities. I'm using PDFBox 3.0 to create these PDFs, but I'm facing challenges in properly ...
eugeneagyeman's user avatar
0 votes
0 answers
24 views

I'm trying to generate a pdf from a HTML with a javascript in it via a java spring endpoint

The code works and generates the pdf, but only the static html part and not the javascript generated chart: <!-- report.html --> <!DOCTYPE html> <html xmlns:th="http://www....
elyes's user avatar
  • 1
0 votes
0 answers
33 views

I am trying to convert a report or document(it has client information and doc photos in it) to pdf file, that report should get from a url(input)

In my code, I am using DinkToPdf, IronPdf and also iTextSharp. PdfSharp and iTextSharp, I got only html content in the pdf DinkToPdf and IronPdf, I got the initial loading symbol only. In DinkToPdf, I ...
Ratheep's user avatar
2 votes
2 answers
79 views

Outputting UTF-8 encoded text strings in the pdf 2.0 spec

I am trying to understand how to generate PDFs with utf-8 encoded strings and have been handcrafting a pdf file. I've been starting with the very simple file below and adjusting the instruction in the ...
Emil L's user avatar
  • 20.5k
-1 votes
1 answer
50 views

FPDF2 Auto Page Breaks With Header

I am trying to use the tables in FPDF2 with a formatted PDF. My PDF Class inherits the header method that takes up the first 15 or so mm on the top of the page. The problem I am running into is when ...
Max Lyman's user avatar
1 vote
0 answers
23 views

Issue with Two-Column Block Overflow in PDF Printing when render with

When attempting to use a two-column block (whether it's flex, grid, or other), PDF behaves strangely when either of the columns does not fit on the current page. Instead of simply moving the column ...
DevOverflow's user avatar
  • 1,233
0 votes
2 answers
126 views

Using Rotativa to export HTML into PDF file in ASP.NET Core MVC 7

I am using ASP.NET Core MVC 7 and I want to use Rotativa package to export HTML (i.e. Razor View) into PDF file. I install the required package using the package manager console: Install-Package ...
WadI Hijjawi's user avatar
0 votes
1 answer
44 views

How do I generate and download a PDF from the following data?

I am getting the following response from backend where the pdf is generated using puppeteer this is the kind of data that I get: %PDF-1.4 %���� 1 0 obj <</Creator (Chromium) /Producer (Skia/...
Waqas Khan's user avatar
2 votes
3 answers
244 views

pdf from Rmarkdown - landscape and aspectratio=169

I have made a PDF from an Rmarkdown file. I wish to make the pdf in landscape mode so that it occupies the full screen. The landscape mode works but it does not occupy the full screen. I have read ...
user2338823's user avatar
0 votes
1 answer
69 views

How to keep a rendered pdf file inside syncfusion pdfViewer on page refresh or navigation

I am using a syncfusion pdfViewer control with angular. I would like the renderered document to stay in the control even when I leave or refresh the page. When I navigate tabs or when I go to another ...
Zidane's user avatar
  • 1,804
0 votes
1 answer
48 views

Issues faced when trying to render two PDF files

I am trying to code a program that will take in two files: a question paper and an answer paper. The two files should be rendered in the same window and have a vertical scroll bar that can be used. ...
jonathanlin1112's user avatar
0 votes
1 answer
19 views

PrintedPdfDocument vs PdfDocument

Could not find much difference in the Doc What is the difference between them ? and when one should prefer one over other ? For Android PDF Generation
Hitesh Verma's user avatar

1
2 3 4 5
150