October 22, 2024
Chicago 12, Melborne City, USA

pdf

Portable Document Format (PDF) is an open standard for electronic document exchange maintained by the International Organization for

pdf

Metadata in PDFs from HTML

I need to carry some metadata – which could amount to just an ID – from the source HTML, through to the PDF using WeasyPrint, eventually ending up somehow addressable in the HTML rendered by pdf.js (more specifically, react-pdf). So, for example, if I have this element in my source HTML: <p class="x00-chapter-title---toc-level" id="my-id">Contents</p> Using

Read More
pdf

Python pdf to docx

I have a lot of pdf files that have images and tables and I have to convert them to word (.doc or .docx) files. The main problem is that pdf2docx is very slow, but it’s the only library that I have found that is able to convert pdf with images. Do you, guys, know any

Read More
pdf

Extract embedded pdf with wordpress cookies using cURL / XHR

I’m trying to use cURL to extract an embedded PDF located at site that requires a username/password login (wordpress cookie). The actual file is located here, and the login is located here. I was trying to follow steps here and here but am still getting a broken PDF as a result. Here’s what I’ve tried:

Read More
pdf

Python, replacing images in a PDF with Fitz

I have the following code to replace images in a PDF. This mostly works, but for some reason both images are being replaced with the same image and not 2 different images. I have tried isolating the code to do just one image and still both images seem to be being replaced with the same

Read More
pdf

Strikethrough text only when printing to PDF via VBA (inconsistent issue)

I have a spreadsheet that prints to PDF with the click of a button. The relevant VBA code is shown below. This print to PDF code has functioned flawlessly for years, but out of nowhere, people are starting to get strikethrough text on their PDFs. This issue does not occur with everyone (it doesn’t occur

Read More
pdf

Split A4 page into A7 sections

I’m given a document of A4 pages with 8 A7 sections on each page. I need to extract the data from each A7 area of each page because they’re related. Is it possible to break each A4 in 8 A7 and go through the data? This is the PDF file I’m dealing with: https://s3.us-east-2.amazonaws.com/s3.barcodegen-website.io/programada+pdf+teste.pdf (Regarding

Read More
pdf

Custom font slice when PDF export

I’m using a custom font for my PDF report on Odoo 17. However, I noticed that the letters "C" and "O" are messed up. Here is my CSS : font-family: 'TT Norms Pro'; src: url('/my_module/static/src/fonts/my_font.woff2') format('woff2'), url('/my_module/static/src/fonts/my_font.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; } Would you know where is the problem ? Thanks You

Read More
pdf

How can I stop pymupdf converting 'ff' to a different character such as @ or I?

I’m reading in text from a bunch of PDFs using the following code: import fitz import numpy as np import pandas as pd # open the document doc = fitz.open(filename_path) # get the text from each page in the document for idx, page in enumerate(doc): page = doc.load_page(idx) page_text = page.get_text("text") doc_text = doc_text +

Read More
pdf

Set custom font in iText7 C# .NET MAUI Project for PDF

I am trying to add my custom font to this example in Maui but it always fail, I have checked the font family name online and it is correct, has anyone worked with this example here? // Get the application directory string appDirectory = FileSystem.AppDataDirectory; // Construct the full path to your font file string

Read More
pdf

react-pdf/renderer small gap between views

Small gap appears between Views when using nested Views <PDFViewer style={{ width: '100%', height: '100%' }}> <Document> <Page size="A4"> <View style={{padding: 20}}> {/* main content */} <View style={styles.container}> <View style={styles.item}> <View style={styles.inner}> {/* example content */} <View style={{height: '20px'}}></View> </View> </View> <View style={styles.item}> <View style={styles.inner}> {/* example content */} <View style={{height: '20px'}}></View> </View> </View> </View>

Read More