Questions tagged [flatten-pdf]

Refers to taking the dynamic fields in a PDF and converting them to static values.

15 questions
1
vote
1 answer

Flattening Form fields removes content

I try to flatten form fields (PDAcroForm.flatten()) in a pdf which in the step before got filled from an .xfdf file. The expected result is to have the editable boxes replaced with just the text. However I from the PDF where the text is filled in…
luckydonald
  • 5,976
  • 4
  • 38
  • 58
1
vote
1 answer

PDF Box flatten PDF causes weird spacing

I'm having an issue with PDF box flattening a PDF generated by Adobe Acrobat DC. The Adobe Acrobat text field I created is absolutely the default text field. In my example below, I have a PatientName field with the text value "Douglas…
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
0
votes
1 answer

Is there a way to check if a PDF is flat/flattened, using Python or Node.js

I have a large set of PDFs that are created in different devices and applications. I just need to know if a PDF is flat/flattened or not. I'd prefere solutions that are implementable using Python or Node.js, but any posix CLI tool would also be…
Reza
  • 1,065
  • 1
  • 10
  • 18
0
votes
1 answer

Make a PDF file read-only/flatten in python

I have a PDF file(generated using HTML) that contains text and bar-code image. I want to convert/make the PDF such that the text or image is not selectable. I have tried the following packages but it's not working fillpdf pypdftk
Ajay Gidwani
  • 121
  • 2
  • 5
0
votes
0 answers

How can I flatten a PDF with pre-filled formfields in PHP?

I need to flatten a pre-filled PDF form before sending it to an external signing service using PHP. I have tried using the php-pdftk library (https://github.com/mikehaertl/php-pdftk), but it did not work for me. Here's the code I have…
Theo
  • 2,262
  • 3
  • 23
  • 49
0
votes
0 answers

Fillpdf function in python not working: Hidden dependencies?

I used the fillpdf function Tyler Houssian describes in this Stackoverflow-Answer. I produced a working code at home. Unfortunately the fillpdf function at the end of the script doesn't flatten the pdfs at my work computer although the Python…
Fabian K
  • 1
  • 2
0
votes
2 answers

Windows 10: Simple way to print a PDF-file without the save-dialog

I'm trying to print the PDf-file(s) in a certain folder (or alternatively just print the files one-by-one) using for example Micorosft Print to PDF in order to create flattened versions. However when using Microsoft Print to PDF i need to specify…
VIParadox
  • 13
  • 1
  • 3
0
votes
0 answers

PDFBOX Flatten annotations in pdpage - JAVA

I'm trying to flatten some annotations that already come in a pdf from the PDPage class, but I can't find the way to do it. Because a viewer we have made in view shows some annotations and not others. Any idea with pdfbox and the PDPage class?
PereZix
  • 41
  • 4
0
votes
0 answers

Flatten signatures in pdf with PDFBOX java

I want to flatten a pdf with signatures from a form but I am using this code and when I generate the final pdf I can still delete the signature. What I want is that when I generate the final pdf, I cannot delete anything at all from the pdf private…
PereZix
  • 41
  • 4
0
votes
0 answers

Flatten Fillable PDF

Thank you in advance for your assistance. I need to flatten a fillable pdf using very basic javascript. Does anyone have any ideas on how to do this? My other 2 options are if anyone has a solution in Outsystems to flatten a fillable pdf, or a c#…
CMax
  • 1
0
votes
0 answers

How to "flatten" a PDF via "Microsoft Print To PDF" using Win32 API calls in VBA?

I am trying to have my Excel VBA code read an interactive PDF (i.e. a PDF with dropdowns, calendars...etc.). I normally read PDF files by opening them in Word; however, Word removes all the interactive controls while rendering the file (e.g. a…
0
votes
0 answers

Flatten blackbox in a pdf with PDFBox

I'm drawing black boxes in a pdf and it draws them perfectly but when I generate the pdf, and I open it with Acrobat Pro the boxes can be modified. How can I make the box layer merge with the pdf? PDPage page =…
PereZix
  • 41
  • 4
0
votes
0 answers

Pdfbox Java docusign signature disppears

We have a program that modifies a pdf for mailing. We noticed an issue with docusign envelope fields and signatures. They do not stay on the pdf when we modify. I tried everything i can think of in pdfbox. The only workaround i found is foxit…
VinnieS
  • 85
  • 2
  • 12
0
votes
0 answers

Checkboxes set in VBA for PDF not staying checked

Hi All this code works wonderfully in filling out a VA 28-1905 form from a worksheet in excel. However the checkboxes don't remain checked. They are checked when the form initially saves, but when you open it again then the checkboxes aren't check.…
0
votes
1 answer

Flattening PDF fields removes formatting

I try to flatten form fields (PDAcroForm.flatten()) in a pdf, which contain rich text. When doing so the formatting (bold, italics, color, size) get lost. It's not edible any longer, but the formatting is also gone. String inputFileName =…
luckydonald
  • 5,976
  • 4
  • 38
  • 58