51,681 questions
1
vote
0
answers
43
views
Printing MathJax (to PDF) with selenium
I'm trying to use Python / selenium to print a bunch of webpages to PDF. When I use selenium to open the page (not shown here), Mathjax renders fine, and if I manually print to PDF (I'm using Firefox)...
0
votes
3
answers
372
views
How to use pdf.js locally
I have a locally running web app in which I would like to extract data from a pdf. pdf.js would work well for this, but it uses modules, which causes cross origin request errors for the file: ...
0
votes
1
answer
64
views
VBA/macro to Limit Save As File Options
I have been searching and searching for some codes that would do what I want, and I just can't seem to find the answer.
I am creating macro-enabled templates for office use on a network server.
Not ...
1
vote
1
answer
79
views
ToC generation when building pdf using QuestPdf library
can anyone please kindly point me in the direction of an example of what would be most optimal method to implement simple Table of Contents when using QuestPdf library to generate PDF. i have spent ...
0
votes
0
answers
108
views
Load a PDF into fabric.js canvas as vector data
I need to load a PDF file into fabric.js without rasterizing. I've seen lots of solutions (typically involving pdf.js) but they all rasterize the PDF when they have PDFjs render the file to an image -...
1
vote
1
answer
49
views
Pass argument from GhostScript CLI to PostScript
I'm using Ghostscript to convert PDF to PDF/A files, which works fine. I want to use the -dSAFER option, which forces me to use absolute path name for the ICCProfile in the file PDFA_def.ps:
% in the ...
1
vote
0
answers
51
views
Pypdf merged pdfs wrong page atributes
When using pypdf merge function i get pdf file with invisible content. I found out taht coordinates of pages atributes mediBox and cropBox has some errors. Look like this:
/MediaBox [ 0 0 595 ...
2
votes
1
answer
119
views
Losing image resolution when converting PDF to image and back with PDFBox
I had a Java program written for me that would take a single page 36" high x 48" wide PDF file and would "slice" it into 3 single pages, 12x36, 24x36 and 12x36 of which I would ...
1
vote
2
answers
76
views
document trailer ID in PDF: why does it consist of two strings and how to extract it by a command line tool
Although there are tools to access PDF metadata like pdfinfo,
I did not find a proper way to get the trailer id.
Instead I use an editor and search...
So my first question is, whether there is a ...
0
votes
0
answers
48
views
How to repair a PDF file that was transmitted with a wrong MIME type
I have a service A (flask) that transmits a file to service B (Django) using python's requests library.
from typing import TYPE_CHECKING
import magic
if TYPE_CHECKING:
from werkzeug....
1
vote
0
answers
56
views
PDF generated from Itext 5.5.13.3 text problem
I'm facing some problems with legacy code (.NET Framework 3.5). The combination works, and I've successfully combined the two PDFs. However, when I open the combined PDF, the text is only visible ...
0
votes
0
answers
24
views
Error with pdf-to-img library in TypeScript (NestJS): "esModule() is not a function"
I'm working on a NestJS project using TypeScript and trying to convert a PDF (from either a stream or a buffer) into images. I decided to use the pdf-to-img library. However, when I try to use the ...
0
votes
0
answers
43
views
Issue with including a JPEG-data-structure into to PDF-code as an XObject
In a java program, I want to insert at coding level a JPEG image (which already exists in the java-code/program as a BufferedImage) into a PDF-file.
Since the PDF-viewer (XChange-Editor) does not show ...
0
votes
0
answers
89
views
How to make header and footer fixed in Laravel DOMPDF when the content spans multiple pages?
I'm using the dompdf/dompdf package in my Laravel 9.52 application to convert HTML content into a PDF. My problem is that when the content of the PDF spans more than one page, I want the header and ...
0
votes
0
answers
84
views
React - A base64 PDF file displays well in the Edge browser, but in the Chrome browser it shows a string with an open button
I'm trying to display a PDF page with the following code:
<embed
src={processedData}
width="100%"
height="800px"
style={{ border: 'none' }}
type="application/pdf"
/>...
0
votes
0
answers
31
views
Save a User Modified PDF to a blob
I have a website where a User can view and modify a PDF via embed.
<embed src="/pdfs/modified_dnd_char_sheet.pdf" width="1000" height="800" type="application/pdf&...
1
vote
1
answer
71
views
How to Convert HTML to PDF, or Redirect to Browser in Flutter
i need help with a Flutter project. I need to export a highly styled PDF. I have an HTML file the imports a JSON and converts a HTML page for printing, i need export this html page in PDF.
Is there ...
1
vote
2
answers
73
views
Self-created PDF-file with image as XObject leads to error 110 when Adobe-Acrobat is to open the file
n a self-created PDF-file (result of a small own PDF-creation-library in Java) I tried to place an RGB-Image with size 5x5 at location x=200, y=300.
When I open it with PDF XChange Editor (10.4.4), ...
0
votes
0
answers
63
views
How to Center and Scale Images Proportionally in a PDF Using jspdf Without Quality Loss?
I want to display images within a PDF using jspdf, but I am facing an issue with how the images are being rendered.
Issue:
The image is covering the entire div in the PDF.
Desired Result:
The image ...
1
vote
1
answer
46
views
API returns a PDF file (byteArray) and it needs to be downloaded using Javascript
When I execute API in SwaggerUI it returns OK and I get download link and it works.
It's used for PDF files, this is the kind of data
And I need to download this using javascript, I tried converting ...
1
vote
0
answers
41
views
Arabic/Urdu words not rendering properly while generating pdf in Flutter App
final arFont = await PdfGoogleFonts.tajawalRegular();
final urduFont = await PdfGoogleFonts.amiriRegular();
i have used these fonts for urdu and arabic and also set letterSpacin to 0 butt still on ...
0
votes
1
answer
104
views
gt_summary table not being correctly displayed after knitted to PDF format in R-Markdown (wrong order)
I am trying to write a report using R-Markdown and tables made with gt_summary but when i export to pdf format, something goes wrong and the table shows up before even the title.
I knitted do html ...
0
votes
2
answers
174
views
How to insert a unicode text to PDF using PyMuPDF?
I'm trying to use the PyMuPDF library to insert a Unicode text into a PDF file. I have the following code based on the documentation example:
import pymupdf
doc = pymupdf.open()
page = doc.new_page()
...
0
votes
0
answers
83
views
How to Print PDF to Thermal Printer Using Flutter? 'byte[] cannot be cast to java.util.List' Error
I'm trying to print a PDF file to a thermal printer in my Flutter application using the print_bluetooth_thermal package. Here's what I've implemented so far:
1. Downloading
static Future<void> ...
0
votes
0
answers
25
views
Retrieve file path in Android and iOS using ReactNative
I'm developing a ReactNative project (android & iOS apps) under Expo management. I've already implemented a chat system where I should send and receive PDF file/Videos/Images and where I should ...
0
votes
1
answer
39
views
Fill PDF-form with individual data using java
Use case:
Customer's data is collected at the point of sale. Further in the business process, this data needs to be checked and verified and may be augmented with additional data. Therefore, a PDF ...
1
vote
2
answers
80
views
HCL Domino - Xpage content parsed to PDF
I have an XPage designed to serve as a training sheet for users. I need to style it to resemble an A4 format paper sheet. The page contains up to 15 editable fields, but ultimately, the end user ...
-1
votes
1
answer
104
views
R script to count keywords in a PDF?
I have a number of pdf files and I need to search each of them for particular key words/phrases. For each pdf, I want to know how many of these key words/phrases appear (but not how many times they ...
0
votes
2
answers
58
views
How to print an html page with a specific size into a pdf file
I want to print into a pdf file a html page with a specific customized dimension:
here the css part:
@media print {
@page {
size: 210mm 105mm;
margins: 10mm 10mm 10mm ...
1
vote
1
answer
70
views
Apache PDFBox - Checkbox already checked is then set to unchecked
I'm new using pdfbox (v 3.0.3) but i have a strange problem. I load this pdf where the given checkbox is already checked (i see it opening the pdf and in debug mode) but then when i send this pdf via ...
0
votes
1
answer
79
views
Trying to Email Multiple PDF Blobs in Sheets Javascript
What I want: a Google Sheet that generates pdfs, saves the PDFs to your GDrive, and then sends you a single email with all of the pdfs attached.
What I've been able to do:
Generate PDFs
Save the PDFs ...
0
votes
1
answer
67
views
Digest Mismatch when signing with pdfbox and GCP KMS
I'm trying to follow this guide to sign a pdf with Google Clouds KMS. When testing with pdfsig I get:
- Total document signed
- Signature Validation: Digest Mismatch.
Adobe Acrobat says:
...
2
votes
0
answers
69
views
Ghostscript is not working with imagick error FailedToExecuteCommand
I have PHP Laravel script working with following configuration.
Laragon
Apache httpd-2.4.54-win64-VS16
PHP 8.3
Ghostscript 10.04.0
ImageMagick 7.1.0-18 Q16 x64
When I tried to convert pdf into image ...
0
votes
1
answer
144
views
How to preserve permissions when digitally signing an encrypted PDF file using iText Java?
I'd like to digitally sign an encrypted PDF file. The original PDF is protected by password that you can't modify it or copy texts from it without providing the owner's password. However, I found I ...
2
votes
2
answers
445
views
Fonts not applied in generated PDF using jsPDF from HTML content
I am trying to convert my HTML content to a PDF using the jsPDF library. The HTML file contains custom fonts that are defined using @font-face with Base64-encoded font URLs. However, when I generate ...
0
votes
0
answers
30
views
java.lang.ClassCastException when using iText 2.2 to stamp data into a PDF
I am encountering a java.lang.ClassCastException in my application when using iText 2.2 to sign and stamp certain PDF documents. The error occurs intermittently when processing PDFs that include ...
1
vote
0
answers
165
views
Open pdf in pdf-js viewer from streamlit app
I have a streamlit app, and I want it to display a pdf in an iframe. My functionality requirements for my pdf viewer/iframe are:
I want the pdf to open to a particular (parameterizable) page
I want ...
2
votes
0
answers
21
views
Excel/Adobe need to take multiple hyperlinks into pdf doc
I am looking for a way to take multiple hyperlinks that lead to individual pdf docs and have all of them opened in one pdf doc rather than thousands of individual ones.
The data comes as an excel ...
1
vote
1
answer
134
views
How to properly add multiple canvas into a PDF?
I wrote a Java program with iText 9.0.0 to create a PDF file. I need to add external PDFs as XObjects to every page of a PDF. Everything goes fine if the number of the PDF pages is 1 or 2. However, if ...
-2
votes
1
answer
94
views
Extracting stitched images as a unit from pdf in C# or js
I'm trying to pull images from a pdf and allow users to select an image from a grid. Essentially I'm working on a WYSIWYG SOP editor. A user creates an SOP (Standard Operating Procedure) using some ...
2
votes
1
answer
64
views
Call to undefined method Dompdf\\FrameDecorator\\Page::add_line()
I am trying to send an email with 2 pdf attachments but when in the controller I call getRejectedReport method it return me error says that Call to undefined method Dompdf\FrameDecorator\Page::...
-1
votes
1
answer
132
views
Signing pdf with external signed hash and certificate in C#
i need to sign a pdf with external services. Therefore i first need a function like
public string GetHashToSign(byte[] unsignedPdf, X509Certificate cert)
{
// generate and return a hash of the ...
1
vote
1
answer
107
views
How to embed AI (Adobe Illustrator) / SVG / PDF files into a PDF directly in iText Java to avoid rendering glitch?
SVG files are not rendered properly in iText Java. I should find a better way to insert vectorgraphs into my pdf files.
I'd like to generate PDF files with some vectorgraphs and texts programmatically....
1
vote
3
answers
134
views
PDF Signature Appearance is not Visible
I'm implementing visible digital signatures in PDF documents using incremental updates. I'm generating the signature using a PKCS#7 detached signature and adding a widget annotation to represent the ...
2
votes
1
answer
123
views
PDF rendering issues with multilingual text across different languages in a PDF generation library like pdf-lib
I am generating PDFs in my project using libraries such as @react-pdf/renderer and pdf-lib, and I am encountering significant challenges with font compatibility for multilingual text. In my use case, ...
1
vote
0
answers
33
views
How to solve the problem of split pdf with DynamicPDF\Api\Pdf?
I have set up a pdf split process using the DynamicPDF\Api\Pdf package according to their documentation and everything was going well. Recently I imported a 36 page pdf and I am facing this error:
An ...
0
votes
1
answer
77
views
Why is my digitally signed PDF invalid in Adobe Acrobat despite correct configuration?
I’m working on a project where I need to digitally sign a PDF using Node.js. My goal is to sign the PDF with a .pfx certificate and include a timestamp (TSA). However, despite following the expected ...
0
votes
0
answers
63
views
<textarea> tag is not rendered properly using CSS with IronPDF
I am attempting to convert an HTML form to a fillable PDF with IronPDF (IronPdf 2024.8.1.3) in Python (3.12.6). The HTML renders appropriately in Chrome. Tags other than the <textarea> tag ...
-1
votes
1
answer
42
views
How to generate a pdf using the print view using js [closed]
Okay so i have a webpage that is different when i click print. I can save the page to pdf using the print function. This looks good.
The problem is, i need to do this using js. I have a button (...
0
votes
1
answer
41
views
FSCrawler not continuing job
I'm using FSCrawler 2.10 to crawl trough hundreds of PDF files, and with Tessarect OCR extract text from scanned documents/images.
It works, successfully configured everything, however the folder I am ...