67 questions from the last 30 days
0
votes
2
answers
98
views
How to use If else statements in PDF javascript
I am looking to have a PDF calculate an answer based on the inputs from multiple fields and dropdowns.
I am using input fields for No. of Units, Oil Cost, Oil Changes per Week and a dropdown for ...
0
votes
2
answers
169
views
Extract tables from PDF files
I am conducting research on p-hacking, which requires accurately extracting tables from published academic papers. I have downloaded a large number of PDF files for this purpose.
So far, I have tried ...
-1
votes
3
answers
60
views
How to generate a PDF with a grid of images per page?
Our work involves visually inspecting a number of plots together. All plots of same size. we want to print them in pages to study. Something like a 8.5"x11" paper with 1" margin gives ...
1
vote
1
answer
41
views
ClassCastException when casting IBasicOCSPResponse to IBasicOCSPResp in iText 8.0.4
I am working with iText 8.0.4 (GitHub Repository) and trying to cast IBasicOCSPResponse (from com.itextpdf.signatures) to IBasicOCSPResp (from com.itextpdf.commons.bouncycastle.cert.ocsp).
This is ...
0
votes
1
answer
67
views
How do I get aspPdf to write special characters like æ, ø and å?
I am using aspPdf to convert a html page into a pdf file. And it is working fine, except from the special characters æ, ø and å.
I have this:
<!--#include file="include/connectOpen.asp"--&...
-1
votes
1
answer
91
views
How to preview an XFA-based PDF?
I am working on a React application and I need to display a preview of an XFA-based PDF file. However, I'm running into issues when trying to render the PDF in the browser. Below are the details of my ...
1
vote
1
answer
79
views
Unable to make widget/field appearance showing in Acrobat(works with pdf-x change, foxit)
Appearances for signature are not showing properly in Adobe Acrobat.
The 'thumbnail' shows up on the thumbnail panel but its not showing on the actually PDF.
This pdf has a certification digital ...
1
vote
1
answer
45
views
Reduce Pdf File size using java
I am trying to create a pdf file using PDDocument but output pdf size is more than 15 mb. i want to reduce so that max pdf size is max 10 mb
Creating pdf file : (templateList is list of all ...
0
votes
2
answers
62
views
I am generating the pdf file in django, here i am using @font-face for USPSIPStandard for just one <p> tag, but it is affecting the whole pdf
I am generating the pdf reports for the patient using wkhtmltopdf in Django, and i have to show the patient imb_code in USPSIPStandard font family ,I am using its file in Static folder, when use this @...
0
votes
1
answer
60
views
A4 Template CSS: can't extend the div's height through the entire A4-page
I'm trying to implement an A4 Template with CSS, which can be printed or saved as PDF: https://jsfiddle.net/me9ytfd5.
@media print {
@page {
size: A4;
}
.sidebar {
border-...
0
votes
1
answer
49
views
How to create a searchable PDF using Python and Selenium?
I want to create a program like FireShot (premium version) to take a webpage on chromedriver and convert it into a pdf.
Currently this is the code I came up with:
import time
import os
import glob
...
0
votes
2
answers
66
views
Exporting to PDF crosses out the date from my Excel sheet
I am currently using a macro to export my excel sheet to a pdf. The current excel sheet has the date in format MM/DD/YY, however, when I export the sheet the date appears to be crossed through.
Excel
...
1
vote
0
answers
53
views
how to add header to all pages of printed PDF from HTML? [closed]
I have been working on this problem for a while and still can't resolve. I have created a HTML document, and now want to add a header to every page when it is printed.
chrome_print(
input = html_file,...
0
votes
1
answer
58
views
Extracting a Specific Text from PDF using RegEx
Without getting into too much detail about how we ended up in this situation (a lot of poor business decisions), I need to find the text: "SomeID=[Integer]" from a PDF file (e.g. SomeID=...
0
votes
0
answers
58
views
Printing Thermal Receipt Bills using Python
I am trying to write a small script to print the pdf file generated via ReportLabs, Unfortunately, I do not find much inputs for my requirements.
I also tried to convert my PDF into an Image object ...
0
votes
0
answers
49
views
rust printpdf crate how to get text width in mm?
I want to draw some text centered to the paragraph on a pdf page and I need to get the width of the message. I'm using the printpdf crate 0.7.0 (latest) but I can't find any method that will give me ...
1
vote
1
answer
40
views
Odoo: Error viewing PDF stored on external server (Alfresco) from Chatter
I am working with Odoo and I have a problem viewing PDFs in Chatter after moving the files to an external server (Alfresco).
What I do:
Users attach PDF files in Odoo, which can be viewed correctly ...
0
votes
1
answer
82
views
Data replacement in a PDF Template (Java | SpringBoot)
I am working on a project in spring-boot that signs visually pdfs.
The idea is that I am researching different ways to manipulate the pdfs using java and cannot find the most optimal one.
For example ...
0
votes
1
answer
45
views
Share webView as PDF on Android
Do you know how to share webView as PDF? I'm using io.github.kevinnzou:compose-webview-multiplatform for displaying webview and PrintManager for generating PDF. PrintManager is working very well: ...
0
votes
0
answers
47
views
Page number in PyMuPDF multiprocessing with extract_text
So in pymupdf documentation states that PyMuPDF does not support running on multiple threads
So they use multiprocessing, and they do this weird thing with segments in example code:
seg_size = int(...
2
votes
0
answers
55
views
reserve and Reapply PDF Layout When Editing Text and Images with PyMuPDF and PyQt6
I'm working on a PyQt6-based PDF editor using PyMuPDF (fitz).
My goal is to extract all text and images from a PDF while preserving their original positions and dimensions, allow users to edit/move ...
1
vote
0
answers
52
views
Bangla font is unreadable after downloading the report in PDF
I am working on this E-commerce website built in Laravel.
Client can download the sale report, products list and all reports in PDF file but when the products are named in Bangla Language, the pdf ...
0
votes
0
answers
39
views
Underlined text into PDF form filled by Oracle Analytics
I implemented an Oracle Analytics instance on Oracle OCI.
I have to manage a PDF form with several fields. I use the PDF form template directly, not an RTF template, because the structure is complex.
...
0
votes
1
answer
41
views
PDF file not loading in mobile view of React JS application
There is a "view" button when we click on it, there will be a pdf file loaded in the modal popup, PDF loads fine in the normal web browser but when opened in the mobile then PDF file in not ...
0
votes
1
answer
38
views
Specific JavaScript for a Fillable PDF
I have made a fillable form in Adobe Acrobat DC Pro with several field scripts to activate and deactivate related fields where applicable. One part is stumping me [total novice btw].
I created a ...
0
votes
0
answers
43
views
Flutter pdf - Exception has occurred. TooManyPagesException
when i'm generating pdf for smaller data/text its working fine but when i try to generate with large data it throws Exception has occurred. TooManyPagesException
here's my generatePdf method:
void ...
-1
votes
1
answer
50
views
Split and Copy specific Pages from a PDF file
I am currently working on a program that can split a PDF-file with numerous sections that have the same layout, but of course different content.
I need all the different sections in a single pdf-file. ...
0
votes
0
answers
41
views
Blurry text in PDF created By Skia SkPicture?
I have referred this official document of skia, and the demo run well.
https://skia.org/docs/user/sample/pdf/
I got a pdf document, and the texts in it stayed sharp after scale.
sharp texts
but when I ...
0
votes
1
answer
28
views
How to use ImageMagick to output the base64 from each pages of a PDF [closed]
I'm trying to output each pages of a PDF in a base64 string with ImageMagick.
When I do magick /mypdf.pdf INLINE:PNG:-, it returns only the base64 output for the first page of the pdf document.
...
0
votes
0
answers
40
views
Can't save active sheet as PDF via Macro in Excel (16.94) on Mac (15.3)
I seem to have a problem with an Excel-Macro in a sheet I want to use on Windows and Mac. The problem only occurs on my Mac (MS Excel v16.94, Dutch).
It seems that the Excel-macro on my Mac cannot ...
0
votes
1
answer
43
views
pypdf or pikepdf advice needed on bookmarks
I am sorry but I am unable to understand how to rearrange bookmarks in PDF document.
I have PDF document with medical records which was created by importing new and new items from individual ...
1
vote
0
answers
38
views
Unable to update value of PDFTextField using pdf-lib after digital signature
Maybe my whole approach is wrong. I trying to simulate a signer filling a field after the pdf has been certified (digital signature). What I attempted: changing its value using SetValue, making a copy ...
1
vote
0
answers
32
views
iText keeps throwing "Object null reference exception" for ShowTextAligned [duplicate]
While doing PDF operations - can anyone help here?
I'm getting the following error while doing header:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance ...
0
votes
1
answer
34
views
iText7 MergeToPdf from XFDF not supporting <value-richtext> tag
We used iTextSharp to Merge XFDF into PDF.
iTextSharp recognized the <value-richtext> tag and did things like BOLD the text.
iText7 does not support applying the <value-richtext> tag when ...
0
votes
0
answers
38
views
html to pdf with chrome PrintToPdf in document style, with header and footer
I've a simple html document, with header, main Area and footer. The main Area contains content like Texts and Tables.
I would like to print the document only with html and css to pdf. The header and ...
-1
votes
0
answers
48
views
Which PHP PDF libraries support font rotation? [closed]
Does anyone know of a PHP PDF library that can rotate fonts? Vg. print upside down?
I realize that "how-to" questions are frowned upon at StackOverflow, but if anyone has expertise in this ...
0
votes
0
answers
28
views
Integrating Print Settings into a PDF
How can I embed information in a PDF so that the printer knows which tray to use for the paper?
There used to be an old tool that unfortunately no longer works for us. It inserted such containers, ...
0
votes
0
answers
31
views
Extract all content using MUPDF.net
Is there a way to extract all content from mupdf.net?
For example the following code using the GetText() method will extract all text in html format:
using MuPDF.NET
var document = new Document("...
1
vote
1
answer
48
views
my flutter app works on emulator while can't work on real device
I was building a flutter App and I want to convert html file to pdf the app works well on the emulator which means that my code is good but when I run the app on a real Android device the app can't ...
-2
votes
0
answers
34
views
How to edit PDF in C# in Windows Forms [duplicate]
This is my code:
public class PDFGenerator
{
public static void FillCharacterSheet()
{
string inputPdfPath = @"D:\mypath\DnD_5E_CharacterSheet_FormFillable.pdf";
...
0
votes
1
answer
52
views
How to Convert a PDF Table with Thousands of Rows into JSON in React
I am working on a project where I need to convert a PDF containing a large table (thousands of rows) into a JSON Array of object. The PDF has a table with headers that should be used as keys in the ...
-3
votes
1
answer
34
views
Challenge to show cropped part in react ? Very challenging [closed]
I am trying to create an inspection app. In this React-based Web app, I am marking the locations on the image.
I am unable to crop the image and show it in the report.
I want to show the marked part ...
-1
votes
0
answers
26
views
MS Word export to PDF with font Montserrat is not working properly
I'd like to use the Montserrat font (variant Regular) in a Word document and export it to PDF. For that, I downloaded and installed Montserrat-VariableFont_wght.ttf from Google:
https://fonts.google....
0
votes
0
answers
28
views
PDF # reference link to specific page does not work on IOS installed browsers
Iam working on a hybrid web/mobile app where I need to provide a PDF link to users and when they click on it the PDF should open at a specific page. It works well on my desktop Safari and other ...
1
vote
0
answers
52
views
Annotations on Adobe PDF Embed API not working on some tablets
I'm trying to get annotations to work on a PDF Embed API implementation. The documentation says that in FULL_WINDOW mode it should work on Chrome and Safari on Tablets. However it does not seem to ...
0
votes
1
answer
26
views
Does Stimulsoft Reports.JS (v2023.1.1) Support PDF Protection?
I'm currently using Stimulsoft Reports.JS version 2023.1.1 and need to generate a PDF with protection, such as:
Password protection
Restricting editing/printing
Other security options
Does ...
0
votes
0
answers
38
views
XSL:FO <force-page-count="no-force"> does not work
I am just trying to find why the tranformation of the xml file into pdf (XSL:FO) always start a new < div > in an odd page. I read the documentation and the <force-page-count="no-force&...
1
vote
0
answers
25
views
Remove the first three pages of a pdf file using PDFtk? [migrated]
How can I remove the first three pages of a pdf file using PDFtk?
I tried:
pdftk test.pdf cat 1-3 output out.pdf
But is in fact removing all but the first three pages, and I can't figure out the ...
0
votes
0
answers
26
views
Create PDF/A3 from standard PDF using XFINIUM.PDF
I want to create a c# method that takes a pdfInputPath and a pdfA3OutputPath and converts a normal PDF to PDF/A3 format using XFINIUM.PDF.
I found some code samples here
PdfFixedDocument document = ...
0
votes
0
answers
21
views
fpdf2 and multi_cell with python
I'm trying to create a PDF document. There is a long and short texts. Word wrapping exists only in multi_cell (though it is drawn as a “ladder” by default). Due to the fact that you need to write text ...