51,123 questions
Advice
0
votes
8
replies
123
views
From .docx to .pdf convertor (c++)
is there way to code convertor from docx to pdf with no libraries with c++? I have no code at all yet. Can someone explain to me how convertors work? If it’s possible, can you give me code example ...
4
votes
0
answers
92
views
Find, Extract and Save Embedded XML File in PDF
I am currently trying to extract and save an embedded file from a PDF. It's about the German "ZUGFeRD" PDF (electronic invoice). In this PDF, there is a XML file named zugferd-invoice.xml or ...
0
votes
0
answers
54
views
crop a full pdf page into two pages [duplicate]
use App\Models\User;
use Smalot\PdfParser\Parser;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Laravel\Socialite\Facades\Socialite;
use ...
Best practices
0
votes
11
replies
115
views
PDF Digital Signature Removal best practice
I am working with digitally signed PDFs using Apache PDFBox, and I am trying to design a revision history mechanism for documents where signatures may be removed in later revisions.
Context
A PDF can ...
1
vote
1
answer
118
views
I want to split one full PDF page into two half pages without extra white space
public function commerceProcess(Request $request)
{
$request->validate([
'files.*' => 'required|mimes:pdf|max:20480',
]);
$files = $request->file('...
0
votes
0
answers
99
views
How to load and display a pdf fiile using gtk and evince
The following mwe fails with message:
file type PDF document is not supported
// gcc pdf_mwe.c -o pdf_mwe `pkg-config --cflags --libs gtk+-3.0 evince-view-3.0 evince-document-3.0`
#include <gtk/...
Advice
0
votes
11
replies
169
views
turn my html+css+php code into a PDF as an email attachment
I've "designed" a business card template using HTML and CSS:
This is my HTML code (with some php):
<div class="businessCard">
<div class="logo img"><...
-1
votes
0
answers
42
views
PDF anchor text links not working in Chrome due to Adobe Acrobat extension
I'm converting html documents to PDF using Chrome's Print To PDF function. I'm trying to link to specific pieces of text.
This is my html:
<html>
<body>
<section id="section-...
Best practices
1
vote
1
replies
94
views
Download the pdf from firebase storage directly after clicking the download icon
I have a project in React (Vite) + Typescript with Firestore database. In the project, I am storing all the PDFs in the Firestore Storage. There is one download button on one of my pages that should ...
0
votes
0
answers
92
views
How can I reliably recover and preserve page numbers from legal-document HTML/PDF text in Python at scale?
I have a Python pipeline that processes legal opinions into structured JSON and rendered HTML. The extraction mostly works, but page numbers are inconsistent across source formats.
I’m trying to ...
1
vote
1
answer
66
views
PDFView in SwiftUI draws an unwanted shadow effect
I want to render a preview of some content to be later displayed in a list. I want to be able to scale the preview later, therefore I create the preview as a PDFContext like this:
func ...
0
votes
0
answers
94
views
FOP.NetCore exception on SVG
I am using FOP.NetCore 3.0.0 to generate PDFs from within my application. This works perfectly with one exception; SVGs.
If I include an SVG as an fo:external-graphic then I get the below error. I ...
Tooling
2
votes
0
replies
95
views
How to automate converting a static PDF template into a dynamic JRXML file (handling alignment & Arabic RTL)?
The Context
We are using JasperReports within a Spring Boot application to generate complex, multi-page documents (like government agreements).
Currently, our template creation process is entirely ...
Advice
0
votes
1
replies
123
views
Running Javascript in Android Pdf Reader
Is it actually possible to execute JavaScript within Android PDF readers, regardless of the version or app type? My understanding is that simply embedding the following script into the PDF should be ...
Advice
0
votes
2
replies
88
views
Putting 2 existing pdf pages side by side (half size) in a new pdf without loosing resolution
In Swift, iOS, I have a pdf file with 2 pages.
I want to put the 2 side by side, on a new page.
For this, I have to scale initial pages half size and rotate .pi/2.
I managed to achieve this by ...