51,092 questions
0
votes
0
answers
14
views
PDF Report Generation System Using Flask, Angular, and Puppeteer
My current work flow to generate pdfs is
Flask Backend Controller
Simple Puppeteer PDF Generator
Advanced PDF Generator
Angular HTML Template
Flask Backend
↓
Node/Puppeteer Script
↓
...
Tooling
0
votes
2
replies
58
views
Turn scanned form into json
I need to turn a list of scanned PDF, containing a form filled by people (some of the answers are handwritten, and the form contains a mix of text and checkboxes) into a JSON than I can then use to ...
3
votes
3
answers
75
views
iText: offline PAdES validation fails even though DSS is timestamped
The following piece of code tries to validate a pdf using iText signature validator in offline mode.
The repro archive contains:
timestamped.pdf
SwissSignRootCA.cer
SwissSignTARootCA.cer
Repro files:...
0
votes
1
answer
89
views
Should XRef stream offset be always stored, in that very stream or any other?
Consider:
C:\>cpdf -create-pdf -create-objstm -stdout
%PDF-2.0
%
% skipped
%
5 0 obj
<</Type/XRef/W[1 2 1]/Root 3 0 R/Size 5/Length 20
% skipped
Note that "Size" is not one more (...
-1
votes
0
answers
63
views
VSCode Exporting Function for Jupyter Notebooks
The VScode export for Jupyter Notebooks doesn't always work well for me.
It usually works to export as HTML, but when I try to export notebooks as PDFs it always fails. I have extensions for PDFs also ...
0
votes
2
answers
60
views
Laravel Storage::response() returns download instead of displaying PDF inline
I'm trying to display a PDF file inline in the browser using Laravel, but instead of showing the file, the browser downloads it.
Here is my code:
return Storage::disk('public')->response(
$path,...
Advice
0
votes
0
replies
58
views
What kind of tech stack is best appropriate for reducing manual redundant tasks to a minimum on Windows desktops
If I wanted to go about creating an app to be deployed on laptops/desktops (Windows mostly) - either as localhost:800X in the browser or maybe even as a desktop app (using Electron?) to accomplish ...
-2
votes
0
answers
144
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 ...
Advice
0
votes
9
replies
176
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
137
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
57
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
130
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
157
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
108
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
200
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"><...