Questions tagged [podofo]

PoDoFo is a C++ library to work with the PDF file format.

85 questions
1
vote
1 answer

Extract text from array TJ in PDF operator using PoDoFo lib

I am trying to extract text from a PDF file usind the PoDoFo library, it is working for the Tj operator and fails to do so for the (array) TJ operator. I ve found this piece of code(with my small modification) here : const char* pszToken =…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
1
vote
0 answers

Extracting page dimensions from a PDF with a C++ program

How can I extract the page dimensions from a PDF file with a C++ program ? Is there any lightweight, cross-platform, easy to build/install, library that could help ? Thanks :) [EDIT] I tried to build podofo under windows, but it didn't work. LibHaru…
maddouri
  • 3,737
  • 5
  • 29
  • 51
0
votes
0 answers

Create a "Web Optimized" PDF using PoDoFo

I can create a PDF in my C++ app using PdfStreamedDocument object with no issue. I can also see that it has a function to check and see if the document is Linearized (web optimized). But I cannot find how to force the document that I'm creating to…
Sam
  • 2,473
  • 3
  • 18
  • 29
0
votes
0 answers

Podofo word spacing

I want to change the word spacing in a PDF text. I use podofo 0.10.0 for that. If you run the following sample, SetWordSpacing has no effect. PdfMemDocument document; auto& page =…
user21886923
0
votes
0 answers

podofocrop doesn't create new PDF

I did apt-get install ghostscript libpodofo-utils in Ubuntu and then podofocrop orig.pdf new.pdf 245.52 0.0 1290.48 1437.12 but new.pdf is not generated. Here's the output that libpodofo gives me: Usage: podofocrop input.pdf output.pdf This…
neubert
  • 15,947
  • 24
  • 120
  • 212
0
votes
0 answers

LNK2019 errors when using a static version of PoDoFo

Hеllо, I was wondering if I could request advice on the following issue. I am trying to include a static version of the PoDoFo library, but keep running up against a few LNK2019 errors. Below is an example of the error: LNK2019 unresolved external…
NDC
  • 21
  • 2
0
votes
1 answer

How can I read Chinese TEXT from a PDF file using PoDoFo's "podofotxtextract" (C++) sample

I am using PoDoFo 0.9.1 library to read a PDF file which contains Chinese characters on Win32 XP Chinese version OS. I found PoDoFo's sample project "podofotxtextract" can read PDF in English gracefully, however, when I opened a Chinese PDF file,…
chinloon
  • 53
  • 1
  • 3
0
votes
0 answers

C++ Podofo PDF table generation

To create tables for PDF documents. I'm working with podofo C++. Would someone kindly give me an example of code to generate tables in PDF? An example code which generates PDF using podofo c++ open source library , the pdf should include heading,…
0
votes
0 answers

Extract geometric objects (lines, circles,...) from a pdf using PDFMM

I have a PDF containing several geometric objects (mostly lines) in different sizes and color. I want to extract them in the following form, e.g. for lines: (startx, starty) (endx, endy) width color Optinal a "z" Position determining which object…
Peter
  • 1
0
votes
0 answers

Building PoDoFo but .lib file is not created

PoDoFo is a C++ library that is used to manipulate PDF files. I'm trying to use PoDoFo in one of my projects but I'm getting Linker errors because I do not have the .lib file. I'm following the instructions on the readme.html when you download from…
0
votes
0 answers

PoDoFo library and character with accent (ì, è, ...)

As the title, when I create the pdf, accented characters are not shown or appear this ì, how can I solve? I already tried with several encoding, but doesn't works. Thanks lot in advance PoDoFo::PdfFont* pFont = document->CreateFont("Liberation…
luna80
  • 173
  • 2
  • 12
0
votes
0 answers

Problems exctracting text with PoDoFo

I am new to PoDoFo and trying to extract the text content of a PDF file with it. I have essentially followed this and it works fine with some PDFs but not with others. That is, std::cout << str << "" prints nothing. I have tried to change…
Ontuvainen
  • 13
  • 2
0
votes
0 answers

link to anchor on current page using PODOFO in PDF

I am trying to use PODOFO in c++ to create a text in PDF. After clicking the text, it can move to a specific page/ area in the same PDF. My final goal is to create a table of content in PDF. The following code is what I am doing. #include…
ng2b30
  • 351
  • 6
  • 18
0
votes
0 answers

Building PoDoFo results in make errors

I have been trying to create a static library version of PoDoFo for API usage on my windows 10 computer. I was following the stack-overflow post: Building PoDoFo library using CMake and MinGW as instructions. I followed the instructions are created…
Nilp Amin
  • 1
  • 2
0
votes
1 answer

How to add PoDoFo external library to my C++ project in Qt Creator?

I am using Qt Creator, Qt6, C++ for my program. I would like to use the PoDoFo library but I have no knowledge of how to add the library/headers so that I can use it in my project and build it. I have downloaded the PoDoFo code, just can't find any…
Attitude12136
  • 47
  • 2
  • 9