51,115 questions
-1
votes
0
answers
49
views
OpenHTMLToPDF custom TTF fonts not applied (NotoSansArabic). It falls back to default font
I'm generating a PDF using OpenHTMLToPDF (PdfRendererBuilder) in a Spring Boot app, and my custom fonts (ttf) are not being applied. What am I missing for OpenHTMLToPDF to properly apply custom TTF ...
-1
votes
0
answers
47
views
Ghostscript - Adding Zugferd metadata makes the PDF/A-3 non compliant with PDF/A-3
I have a PDF file with a factur-x file joined. This file is not added with Ghostscript 10.07.
I'm trying to make a valid factur-x PDF file. First step : I made the PDF A/3 compliant using this command ...
Advice
0
votes
9
replies
156
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
106
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
119
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
126
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
102
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
172
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
44
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
112
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
94
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
95
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
99
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 ...