Questions tagged [pdf]

Portable Document Format (PDF) is an open standard for electronic document exchange maintained by the International Organization for Standardization (ISO). Questions can be about creating, reading, editing PDFs using different languages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

how can i save file in excel as pdf with same name at same place automatically

I am using micro to save my bills copy as pdf from excel but every time i run micro previously saved file rplace by new one. any solution to put number after file name automatically? i try vba in ...
dhaval nariya's user avatar
0 votes
0 answers
7 views

selecting pages and refreshing browser build-in pdf viewer

I am using a browsers built-in pdf-viewer in an iframe: <head> function viewPDF(){ document.getElementById("test").innerHTML = passMarker; let reader = new ...
calp's user avatar
  • 11
0 votes
0 answers
14 views

linked PDF works correctly on localhost but not when opened on public-facing server

I'm developing a website and want to link a PDF file. I have below the HTML code inside the body tags of my site. <a href="file.pdf" target="_blank" content="application/...
Duncan's user avatar
  • 1
1 vote
0 answers
15 views

Sign a pdf file in Go (Golang) using digitorus/pdfsign

In go (golang) I need to sign a pdf document, but unlike other languages there are no libraries that make the job easier. I have found a couple of paid ones but they are not an option. To start, I ...
Superleche's user avatar
0 votes
1 answer
8 views

How to use tabula to extract the table more details by using python script?

This is my code: import tabula # Specify the path to your PDF file pdf_path = "path.pdf" # Use tabula.read_pdf with the default auto method tables = tabula.read_pdf(pdf_path, pages='all', ...
SooHana's user avatar
0 votes
1 answer
13 views

Using PyPDF Rect as area input to Tabula

I'm trying to use the coordinates of the Rect object that PyPDF gives me as an area input to Tabula, but it seems like the coordinates are not the same, and I can't find information about the measure ...
Wallys Ferreira's user avatar
0 votes
0 answers
8 views

FAISS Embeddings cannot be saved because of langchain import error

I am following this tutorial I am using a sample pdf from here But I replaced OpenAI with Huggingface for the embeddings Below is my code: import os import pickle from pprint import pprint from PyPDF2 ...
Sharhad Bashar's user avatar
0 votes
2 answers
52 views

Why is PDF only rendering correctly with Adobe Acrobat?

My self made pdfs only render correctly if opened with Adobe Acrobat. The file from code below renders in Adobe Acrobat exactly as I intended. With Revu, only the text renders correctly (lines do not ...
m s's user avatar
  • 53
0 votes
0 answers
18 views

How to send pdf files with cyrillic text in django?

I'm trying to generate pdf files in django and upload them. To do this, I use the reportlab library. django v4.2.7 reportlab v 4.0.7 Here is a fragment of my code def patients_report_view(request): ...
Gutufik's user avatar
  • 21
0 votes
0 answers
13 views

Duplicate route message error in laravel filamentphp

I'm in a quagmire and can't solve the riddle. In an environment with Laravel 10 and filamentphp 3 I want to create and display an invoice in a new tab. I have the following route in web.php: Route::...
Domingo Añez's user avatar
-1 votes
0 answers
32 views

Is there a way in Python to extract just the main text (no headers, footers, contact information etc.) from a pdf? [closed]

https://www.avverafinanziamenti.it/wp-content/uploads/2020/02/80030-4094-CONTRATTO-CQ_Febbraio2020_versione-sito-Avvera.pdf Once I have extracted only the pages of interest from the PDF, i.e. pages 4 ...
MANUELA ESPOSITO's user avatar
0 votes
0 answers
8 views

How can I reduce the .ttf file size to reduce overall size of PDF generated by PDFJet library in JAVA?

i have one .ttf file where i only stored the required glyph. can we reduce it's size further? i tried FontForge to do some editing on font's weight and other value like removing overlapping and making ...
Vipul Aggarwal's user avatar
-2 votes
0 answers
39 views

Open pdf in HTML tags

I am truing to open pdf in HTML tags using below code <div style="display: flex;"> <div style="flex: 1; margin-right: 10px;"> <object data="http://...
Vijay Chauhan's user avatar
0 votes
1 answer
27 views

Split pdf by a page range with corresponding toc (table of contents) in final pdf. PymuPDF/fitz/pypdf2

I want to split a pdf book containing 800+ pages and have a table of content. Table of content is not a part of pdf pages, it appears on a pdf reader to navigate chapter or topics. Split pdf in such ...
Sabbir Ahmed  's user avatar
0 votes
0 answers
23 views

Can't trigger download through calling api with axios

I've written an api in spring boot application, I want to download the pdf while clicking the button (button will call the api). When I hit the endpoint directly in browser, it trigger download ...
Robin's user avatar
  • 87
-1 votes
0 answers
12 views

Is there any method suitable for converting word to pdf on linux systems?

Is there any method suitable for converting word to pdf on linux systems? (Preferably software that can be used directly via python, or command line invocations.) I've used Libreoffice, but it doesn't ...
GeorgeWu's user avatar
0 votes
0 answers
23 views

llama model to get answers of the questions which are in the context of pdf

model name = llama-2-7b-chat.ggmlv3.q2_K.bin pdf-name = fastfacts-what-is-climate-change.pdf pdf-data = size of pdf is 2 to 3 pages, having info about climate change. dependencies: from langchain....
Kanha Tomar's user avatar
-1 votes
1 answer
40 views

Html/Javascript - Survey, produce results and create pdf [closed]

I am starting to code in HTML and JavaScript and need some help! I am creating a program to survey people and am having an issue creating the results and how to create a pdf with all the questions and ...
Zeke's user avatar
  • 9
0 votes
0 answers
15 views

how to add background image when covert html to pdf using puppeteer? [closed]

Can we add a background image with a fixed position without being affected by the margins set in puppeteer? i try to add @media print { body { background-image: url('te.png'); background-...
DZS's user avatar
  • 337
0 votes
0 answers
14 views

Check for existence of an OCR table without using the read_pdf function?

Currently using camelot to populate a dictionary like so: tables = camelot.read_pdf(temp_file_path) tables_dict = {} if tables.n > 0: for i, table in enumerate(tables, start=1): ...
ryanjackson's user avatar
0 votes
0 answers
14 views

Add interactive content to pdf [closed]

I m building a website using python and react. I want to display pdf files, on them there are word which i know location. I want to highlight this word and place a button on them to be able to edit ...
Jérémi LiogerBun's user avatar
0 votes
0 answers
25 views

Is it possible to to re-serialize parsed TCPDF data back into PDF form?

I'm using TCPDF to examine the contents of a PDF file like so: $file_content = file_get_contents("path_to_file.pdf"); $parser = new TCPDF_PARSER($file_content); $data = $parser->...
Era's user avatar
  • 1
0 votes
0 answers
19 views

Extracting a text from a PDF file filtering by font size with PyMuPDF

I need to change my Code so it gets all the text after it finds the Abstract and then when then stop after it finds a text from a different size. Is it possible to do that? I tried everything, but ...
Caiool's user avatar
  • 1
0 votes
0 answers
17 views

Contraseña a PDF de Drive con GAS [closed]

Hala, por favor me podían colaborar si de pronto saben como poner contraseña con GAS a documentos de PDF creados y guardados en Drive. Encontré como opción PDF.co, pero se debe de pagar por consumo de ...
0 votes
1 answer
21 views

Flutter IOS app doesn't receive shared pdf

I have a Flutter application and i implemented the package receive_sharing_intent in order to receive shared pdf files in the app. It works perfect in Android. The problem comes in IOS. When i try to ...
Jhonatan's user avatar
  • 116
0 votes
0 answers
52 views

Azure Data Factory Http Connector failing for PDF url - casting FileWebRequest error

I tried to test ADF Http Connector with below base url and anonymous authentication https://assets.publishing.service.gov.uk/media/65645c183d7741000d420205/adm-summary-of-changes.pdf I got below error ...
akshat thakar's user avatar
0 votes
0 answers
31 views

R markdown not rendering when file is scripted to run

I have the following .Rmd file that generates a pdf the way I expect: --- title: | \includegraphics[width=6in]{image.png} \ \vspace{1.0in} \Huge \textbf{My Report} author: "OnlyDean" ...
OnlyDean's user avatar
  • 1,029
0 votes
0 answers
5 views

How to edit a pdf and resave a pdffile in pdftron using reactjs? [closed]

Here when i edit and reupload the file its getting courrupted in the backend how to do without facing this issue? I want open pdf end and resave in a same path without error free code in react js ...
testuser's user avatar
0 votes
1 answer
26 views

Create a iTextPdf PdfPtable in Java with one row without a border

I am trying to generate a table in my pdf document that should have two rows. The first row should not be split in columns but the second row should be split in two columns. Something that looks like ...
julien carax's user avatar
0 votes
1 answer
39 views

Python fitz insert russian text in PDF not work

I tried insert russian text in PDF file and I see that, what am I doing wrong? import fitz if __name__ == '__main__': src_pdf_filename = 'original.pdf' dst_pdf_filename = 'destination.pdf' ...
Дмитрий Федулов's user avatar
0 votes
0 answers
31 views

Parsing a pdf without a strong structure

I want to extract data from a pdf with python, but I cannot solve the parsing problems. The pdf is quite regular, but the result of the script is not good because: some rows are read together it does ...
Francesco's user avatar
0 votes
0 answers
10 views

Is there a way in Swift to export FileAttachment type annotations from a pdf using PDFKit?

I have a need to export to file the FileAttachment type annotations of a pdf. I am trying to use PDFKit but I cannot find a way to do this. I'am able to filter annotations of type "FileAttachment&...
MannyCalavera27's user avatar
-1 votes
0 answers
24 views

How to convert pdf to image in javascript

I'm working on a Reactjs project where I need to convert a pdf link to html image element and store it in a state. Like this is a sample link of pdf https://www.africau.edu/images/default/sample.pdf ...
Abdullah Al Shahariar's user avatar
0 votes
1 answer
50 views

How do I get Qlistview to include all the search details for pdf hits in QPdfSearchModel Class for python like it does in the documentation

When I do a pdf search using the QPdfsearchmodel class my model only seems to include the word I searched for and context before/context after: However, in the documentation there is also a listing ...
ScottyCov's user avatar
0 votes
1 answer
25 views

PDF: A button to add a row of text fields on fillable form

The original thread: https://community.adobe.com/t5/acrobat-discussions/have-a-button-in-adobe-acrobat-that-adds-a-row-of-columns-then-adds-another-row-below-it/m-p/14250883#M439889 The script works ...
Eras's user avatar
  • 3
0 votes
0 answers
12 views

itext7 with pdfocr in .net core application. compatibility problem

I need to read PDF image in .net core 6 application. i am trying it with itext7 and pdfocr but i am getting error Severity Code Description Project File Line Suppression State Warning ...
Kamran Shahid's user avatar
0 votes
1 answer
29 views

PDFBox is extracting text out of order

I have a PDF file which I have to extract text and get some info. The file is like this: I am extracting the text this way: PDDocument document = PDDocument.load(file); ...
gbossa's user avatar
  • 389
0 votes
1 answer
43 views

the resulting pdf is corrupt when opened using dom pdf

i am passing post variable from data modals. The query I used has been checked and is correct. I am confused about how to define variables $html This my code <?php require_once __DIR__ . "/.....
Mohammad Rohman's user avatar
-1 votes
2 answers
68 views

Discrepancy in PDF rendering between browser and Acrobat PDF viewer

I am encountering a situation where I open a PDF both in a web browser and in the Acrobat PDF viewer. In the browser, the PDF is displayed correctly, but in the PDF viewer, I get a different output ...
Lactus Odinson's user avatar
0 votes
0 answers
13 views

Add condition fluent API with QuestPDF [closed]

I have the following code which brakes the fluent API chain and I'm wondering if there is a better solution for this var cell = table.Cell().Background(backgroundColor); IContainer cell2; if (...
Lőrincz Péter's user avatar
0 votes
0 answers
11 views

PDF-XChange Editor is stuck print process of 0% when trying to print

it happens sometimes. my printer is all Good. my network is all Good. I tried other programs to print it all worked. why my PDF-XChange Editor is sick i need some infomation or reasion why it happen. ...
NoKnowMe01's user avatar
-2 votes
1 answer
24 views

need to extract code snippets from PDF. My goal is to identify and separate code snippets from text in the extracted PDF content [closed]

How do i extract code snippets from pdf file? let's say you have a text corpus extracted from a pdf file.which also contains code snippets i need to extract these code snippets exclusively i've tried ...
Kaustubh Kapare's user avatar
0 votes
1 answer
14 views

Exception generating PDF from Apache FOP with table column

The below Lines of Code from my .fo file throw a message as "The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table." when ...
Sravani Chinthaluri's user avatar
0 votes
0 answers
25 views

Any way of converting react template into proper pdf?

I'm currently working on a project that involves generating resume templates for PDF documents using the jsPDF library in JavaScript. I'm trying to add a consistent margin (specifically the bottom ...
Viosa's user avatar
  • 1
0 votes
2 answers
53 views

Adding a pdf page to many pdf files in different folder - Python

I would like to add a pdf page (always the same => C:\Files\page2.pdf) to all pdf files of my folders and subfolders: I sometimes use this Powershell command to find and replace some files by ...
Maxence MELIN's user avatar
0 votes
0 answers
24 views

DinkToPdf footer not working when there is an image

I'm using DinkToPdf library in a .NET 7 web application to create a pdf. However, when I include a pdf in the footer, it does not work. This is the code for generating the pdf. var html = await ...
mamado's user avatar
  • 3
0 votes
1 answer
40 views

How to get the specific coordinates of each contents in PDF file?

I use Smalot\PdfParser for extract contents from PDF. As a beginner, I try to mess around with basic functions like getText(), getDetails(), getPages() .etc then I notice this return from $data = dd($...
Keith Lê's user avatar
0 votes
0 answers
27 views

Flask issues with encoding when parsing pdf as text

I have a function which parses pdf as text: def convert_pdf_to_text(pdf_path): """Convert a PDF file to text.""" try: with fitz.open(pdf_path) as doc: ...
Nathan Wang's user avatar
0 votes
0 answers
17 views

Convert PDFs to text via tesseract.js in memory

I wanted to grab all of the text from a PDF via tesseract.js and did so fairly easily. "use strict"; const fs = require("fs"); const { fromPath } = require("pdf2pic"); ...
chriscrutt's user avatar
0 votes
0 answers
51 views

Tabula missing last columns - any idea?

any help would be appreciated; I'm reading the PDF, exporting to csv and loading using Pandas. I could not read the correct way using pdf instead. However, it is missing the last column "...
Dicast's user avatar
  • 69

1
2 3 4 5
1025