Questions tagged [podofo]

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

85 questions
15
votes
1 answer

Include OpenSSL in a CMakeList.txt file

I have a question for people who work with CMakeList.txt in C++. I want to use Podofo project (a project to parse & create pdf). So my main function is simple as: #include #include int main() { PoDoFo::PdfMemDocument…
nodeover
  • 301
  • 1
  • 2
  • 11
13
votes
2 answers

PDF parsing in C++ (PoDoFo)

Hi so I'm trying to parse some text from some pdfs and I would like to use PoDoFo, now I have tried searching for examples of how to use PoDoFo to parse a pdf however all I can come up with is examples of how to create and write a pdf file which is…
csteifel
  • 2,854
  • 6
  • 35
  • 61
12
votes
2 answers

Copy Table of Contents from one PDF to another

You might find it as duplicate of Create a table of contents from a pdf file, but I didn't get any solution there. My scenario is like I am creating a PDF from existing PDF with some edits. That all works fine. My question is I want to add metadata,…
DivineDesert
  • 6,924
  • 1
  • 29
  • 61
10
votes
2 answers

Can I use C++ class members initialized in the initializer list, later in the list?

I am rewriting some code to eliminate global variables and made a class constructor/destructor handle cleanup of some third party library resources, but I am concerned about some code which initializes one member from another member in the class…
Kenny Ostrom
  • 5,639
  • 2
  • 21
  • 30
6
votes
1 answer

What's the best approach for modifying PDF interactive form fields on iOS?

I've been doing some head banging on this one and solicit your advice. I am building an app that as part of it's features is to present PDF forms; meaning display them, allow fields to be changed and save the modified PDF file back out. UIWebViews…
gbreen
  • 61
  • 3
6
votes
2 answers

Extract text from PDF document based on position c++

I am trying to extract a text from a PDF document based on it's coordinates, so I have came across two notions in the Adobe PDF Reference (chap. 5.3): Text positioning operators Text showing operators For now I am interested in Td & Tm positioning…
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
5
votes
2 answers

How can I use the PoDoFo library for annotating PDFs on iOS?

I would like to annotate PDFs within an iOS application. I came across the PoDoFo library, but I'm not sure how to use this in an iOS application. Is it possible to use this library to annotate PDFs on iOS? If so, how?
siva
  • 547
  • 5
  • 8
5
votes
3 answers

Preflight program for PDFs using PoDoFo or anything else open source?

I have to automate a preflight check on PDF documents. The preflight consists of: Detect the resolution of images in an existing document and change them to 300dpi if they are not already at that resolution. Detect the colorspace of images and if…
user961627
  • 12,379
  • 42
  • 136
  • 210
5
votes
1 answer

How do you create a PDF with Annots?

I am trying to generate a PDF in code that has Annotations such as Widgets and Links. I can generate the PDF and modify the document info and the MediaBox of the page, but I can't figure out how to add to the Annotations. I try to add it to the…
4
votes
2 answers

Copy only necessary objects from PDF file

I've got a huge PDF file with more than 100 pages and I want to separate them to single PDF files (containing only one page each). Problem is, that PoDoFo does not copy just the page, but the whole document because of the references (and so each of…
kocica
  • 6,412
  • 2
  • 14
  • 35
3
votes
2 answers

Building PoDoFo library using CMake and MinGW

I am trying to build PoDoFo Library on my Windows Platform (for use as an API). It is done using CMake. The ReadMe file says the following. Unfortunately I am new to CMake and I can't make out much from it. Building PoDoFo on Windows CMake 2.6.x is…
Abhishek Bansal
  • 12,589
  • 4
  • 31
  • 46
3
votes
2 answers

PoDoFo Extract text + coords from a pdf

I have been trying for a while to use the PoDoFo C++ library to extract text and lines (with their respective coordinates). But I have no way to do this. This is what I have so far: #include #include #include #include…
Dara Java
  • 2,410
  • 3
  • 27
  • 52
2
votes
1 answer

PoDoFo c++ PDF library, cyrilic characters

Sorry my English, i have a problem with cyrillic symbols in PDF. I use PoDoFo library version 0.9.7 with fontconfig in Windows and Linux. PdfMemDocument document; document.Load("anyfile.pdf", true); /***/ PdfFont *fontPtr = fontPtr =…
Depish
  • 131
  • 5
2
votes
2 answers

Do C/C++ compilers typically remove duplicate libraries?

I'm compiling a Static (added static after reading comments) C++ library PoDoFo and some of its dependencies are optional, such as libJPEG, libTiff and libPNG. Though, a lot of the libraries have an option to depend on one another as well. For…
2
votes
0 answers

Adding repetitive headers using the podofo library

Trying to add a text heading to a multi page PDF report created using the pofodo PDF library. Cant seem to find a function for doing this in the API documentation for pofodo. I'm trying to see if there is a function that can add a document wide…
Manzur
  • 21
  • 1
1
2 3 4 5 6