[Podofo-users] Trivial cleanup patch

2016-04-13 Thread Joerg Sonnenberger
Hi, the attached patch removes left-over duplicated code from Windows 64bit cleanup. Joerg /*** * Copyright (C) 2005 by Dominik Seichter* * domseich...@web.de

Re: [Podofo-users] Fix r1810 ABI mess

2017-07-20 Thread Joerg Sonnenberger
On Thu, Jul 20, 2017 at 02:17:36PM +0200, zyx wrote: > Well, every release has bumped soname version, thus I do not know what > silence you are talking about. Old: PDFMemDocument::Load(const char *); PdfMemDocument::Load(const char *, long); New: PDFMemDocument::Load(const char *, bool = false);

Re: [Podofo-users] Fix r1810 ABI mess

2017-07-20 Thread Joerg Sonnenberger
On Thu, Jul 20, 2017 at 05:17:01PM +0200, zyx wrote: > Hi, > > On Thu, 2017-07-20 at 15:30 +0200, Joerg Sonnenberger wrote: > > Passing anything to Load() which was not explicit a long, i.e. > > std::string::size() would result in the former method be choosen... &

Re: [Podofo-users] get dictionary, delayed load throws error

2017-09-28 Thread Joerg Sonnenberger
On Tue, Sep 26, 2017 at 04:58:20PM -0700, Cory Mickelson wrote: > When I try to get a dictionary object ( any dictionary object, my initial > work was trying to get the acroform dictionary, but couldnt' so I have been > trying to just get any dictionary ) it throws a PdfError invalid datatype.

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Joerg Sonnenberger
On Thu, May 10, 2018 at 02:14:18PM +, Georg Funk wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x55ba2342486e in PoDoFo::PdfVariant::DelayedLoad (this=0x0) at > /usr/local/include/podofo/base/PdfVariant.h:545 > 545 if( !m_bDelayedLoadDone) > > Have you any idea for

Re: [Podofo-users] build error

2018-05-15 Thread Joerg Sonnenberger
On Tue, May 15, 2018 at 12:02:30PM +0200, M. Froese wrote: > cmake -G "Visual Studio 15 2017" .\src > -DCMAKE_INCLUDE_PATH="%FTDIR%\include;%JPEGDIR%\include;%JPEGDIR%;%ZLIBDIR%\include" This tells cmake to configure the src directory, not the current directory. Joerg

Re: [Podofo-users] image extract

2018-05-22 Thread Joerg Sonnenberger
On Mon, May 21, 2018 at 03:15:44PM +0200, M. Froese wrote: > i think the imageextract tool is very outdated. i tried it with a pdf that i > created from a single jpg (see attachment), resulting in a distorted version > of that jpg. It works perfectly fine here with the attached document. Joerg

Re: [Podofo-users] image extract

2018-05-22 Thread Joerg Sonnenberger
On Tue, May 22, 2018 at 12:48:50PM +0200, M. Froese wrote: > thank you joerg, so what might be wrong with my podofo build? the resulting > image is included in the attachment. Windows problem. The file is not written as binary, so \n gets messed up. Joerg

Re: [Podofo-users] Uncontrolled memory allocation in PdfParser::ReadXRefSubsection (src/base/PdfParser.cpp)

2018-01-14 Thread Joerg Sonnenberger
On Sun, Jan 14, 2018 at 12:48:31PM +0100, zyx wrote: > I'm not sure it's a problem at all, it's just the behavior of the > AddressSanitizer, as is written above. Yes and no. I agree that it is not a bug, but it is a QoI issue. There should be a reasonable limit at hand to avoid wasting resources

Re: [Podofo-users] Undefined behavior (memcpy with NULL pointer) in PdfMemoryOutputStream::Write (src/base/PdfOutputStream.cpp)

2018-01-14 Thread Joerg Sonnenberger
On Sun, Jan 14, 2018 at 01:37:11PM +0100, zyx wrote: > On Thu, 2018-01-11 at 17:00 -0500, Probe Fuzzer wrote: > > To reproduce the issue, compile podofo with UBSAN "- > > fsanitize=undefined", > > then execute: podofoimgextract $POC OUTPUT_DIR > > Hi, > similarly as with your message about

Re: [Podofo-users] Which image encoding does support PoDoFo library?

2018-01-27 Thread Joerg Sonnenberger
On Sun, Jan 28, 2018 at 12:05:46AM +0100, Matthew Brincke wrote: > Hello Alexander, hello all, > > Alexander Zaitsev has written on 27 January 2018 at > > 16:51: > > > > > > Hello, > > > > Does PoDoFo support JPEG2000/JPEG and Jbig2 encodings? > > > > > > PoDoFo does

Re: [Podofo-users] [PATCH 0/1] More flexibility when using PoDoFo as a static library

2018-02-23 Thread Joerg Sonnenberger
On Fri, Feb 23, 2018 at 08:31:31AM +0100, zyx wrote: > On Thu, 2018-02-22 at 13:05 +0100, Francesco Pretto wrote: > > The current patch convert headers to really use > > relative paths, allowing to use podofo with #include > > notation. > > Hi, > you should discuss such invasive changes

Re: [Podofo-users] PDF digital signature performance

2017-12-21 Thread Joerg Sonnenberger
On Thu, Dec 21, 2017 at 11:29:45AM +0100, zyx wrote: > Looking into the code, into podofosign.cpp, the sign_with_signer() uses > 65535 bytes large buffer as its starting size (it makes it smaller when it > fails to allocated that memory). That makes approximately 480 read and write > operations

Re: [Podofo-users] Podofo Merge Combine 2 Pages

2018-09-07 Thread Joerg Sonnenberger
Hello Christian, the language of this list is English. Now to your question about merging pages: I don't think this is implemented in PoDoFo right now. The general idea would be to wrap the content stream of the first page with a push/pop command (q/Q) and append the content stream of the second

Re: [Podofo-users] [PATCH 1/5] PdfVariant: m_eDataType is really a EPdfDataType

2019-01-23 Thread Joerg Sonnenberger
On Wed, Jan 23, 2019 at 12:28:59PM +0100, Francesco Pretto wrote: > On Wed, 23 Jan 2019 at 12:18, Joerg Sonnenberger wrote: > > > > On Mon, Jan 14, 2019 at 11:08:03PM +0100, Francesco Pretto wrote: > > > > > > From: Francesco Pretto > > > > > &

Re: [Podofo-users] [PATCH 1/5] PdfVariant: m_eDataType is really a EPdfDataType

2019-01-23 Thread Joerg Sonnenberger
On Mon, Jan 14, 2019 at 11:08:03PM +0100, Francesco Pretto wrote: > > From: Francesco Pretto > > Fixes warnings in linux since the maximum value of EPdfDataType is 255 Please don't do this and look at the history of the code. This chance is intentional for pre-C++11 compat. Joerg

Re: [Podofo-users] Helvetica Bold

2021-02-24 Thread Joerg Sonnenberger
On Wed, Feb 24, 2021 at 01:12:19PM +0100, Christian Sakowski wrote: > Hi, > > when calling the code: > > result = doc->CreateFont("Helvetica", true, false); > > i got Helvetica Standard and not bold. > > When i look into result, i see, that the flag_isBase14 is not set. But it is > a

Re: [Podofo-users] PDF page rasterization with PoDoFo

2021-12-09 Thread Joerg Sonnenberger
On Fri, Dec 10, 2021 at 12:05:13AM +0300, Alexander Salieff via Podofo-users wrote: > > Hello! >   > Can I rasterize a PDF document page to a file or to a memory buffer using > PoDoFo? > I looked through the API documentation but didn't find it there. That would be more a job for Poppler or

Re: [Podofo-users] [PROPOSAL] Relicense PoDoFo to Mozilla Public License 2.0

2022-02-17 Thread Joerg Sonnenberger
Am Thu, Feb 17, 2022 at 12:38:55PM +0100 schrieb Mattia Rizzolo: > > I suggest he should name the people that contributed most to PoDoFo > > and that should take part in this decision. > > I'll defer to who better knows Copyright laws and stuff, but from what I > concerned, the people that needs

Re: [Podofo-users] UB in Big2Little

2022-02-04 Thread Joerg Sonnenberger
Am Fri, Feb 04, 2022 at 08:59:52PM +0100 schrieb Michal Sudolsky: > Actually that patch is not correct. Here we want to reinterpret bits but > static_cast here will perform modulo 2^N arithmetics (which is > coincidentally the "same" thing on two's complement architectures). One's complement