Re: [Podofo-users] Could someone tell me the encode type of HexString followed by Tj

2022-04-12 Thread Matthew Brincke via Podofo-users
On Tuesday, 12.04.2022 at 18:34 +0800 Alex wrote: > Hi, > >     When I opened a pdf file using podofobrowser.exe,if a pdfobject > has a stream object,podofobrowser.exe will show the content of the > stream as the following: > > > BT > /F2 10.56 Tf > 1 0 0 1 136.46 758.28 Tm > 0 g > 0 G >

Re: [Podofo-users] [RFC] pdfmm 0.9.20 released and offer to merge back to PoDoFo

2022-04-09 Thread Matthew Brincke via Podofo-users
On Friday, 08.04.2022 at 15:38 +0200 Dominik Seichter via Podofo-users wrote: > Hi Zyx, Hi Francesco, Hi Dominik, hi zyx, hi Francesco, > > I also wanted to continue this discussion. Sorry again for the long > delay. If you prefer, we could also have a phone/video chat > about these points (also

Re: [Podofo-users] Questions about Support Model Podofo A2308KMA3AM1EU

2022-03-05 Thread Matthew Brincke via Podofo-users
Hello Mr. Reuter, this mailing list is of libpodofo, a software programming library and associated software tools/examples for working with Portable Document Format files/data (therefore its name from the first two characters of each word written initial-capitalized) and has nothing to do with

Re: [Podofo-users] Releasing 0.9.7 ?

2019-11-05 Thread Matthew Brincke
> On 29 October 2019 at 13:24 Mattia Rizzolo wrote: > > Hello, Hello Mattia, hello all, > I believe it's high time for a new PoDoFo release. > It has been slightly more than one year since the last one was done. > Alright, there are still a few CVEs and other bugs opened, but many > have been

[Podofo-users] Special revision 2000: Past, Present and future plans for PoDoFo

2019-10-20 Thread Matthew Brincke
Hello all, I designate the special revision 2000 for documenting the past, present and future plans for PoDoFo. Please commit anything to svn until this has been discussed and a consensus reached. Please make proposals for inclusion right away (just answer this e-mail), I will be offline all the

Re: [Podofo-users] Bug when drawing text using truetype font with difference encoding loaded from pdf

2019-10-20 Thread Matthew Brincke
Hello Michal, hello all, > On 15 October 2019 at 19:00 Michal Sudolsky wrote: > > Hi, > How it looks with this bug? I'm sorry I did only look cursorily at the issue (yet): I'm no expert for fonts in PDF and for this reason, but also because other bugs caused crashes, output data loss in the

Re: [Podofo-users] PoDoFo browser

2019-09-06 Thread Matthew Brincke
Hello Pietro, hello all, > On 06 September 2019 at 19:33 Pietro Paolini > wrote: > > > Hi all, > > I am following the instruction to compile the PoDoFo browser from the page: > > http://podofo.sourceforge.net/download.html > the PoDoFoBrowser hasn't been changed/maintained for the whole

Re: [Podofo-users] Podofo rendering

2019-08-14 Thread Matthew Brincke
Hello zyx, hello all, > On 14 August 2019 at 08:59 zyx wrote: > > > On Tue, 2019-08-13 at 14:11 +0200, Matthew Brincke wrote: > > but Boost isn't searched for when configuring the podofo build (with > > cmake) because it wasn't added as even an optional depen

Re: [Podofo-users] Podofo rendering

2019-08-13 Thread Matthew Brincke
etro. Best regards, Matthew > On 13/08/2019 11:27, Pietro Paolini wrote: > > Hi Matthew, > > > > Thanks a lot for your answer, I am not bothered at all and I am  more > > than happy to stay on trunk - I just intended to flag this up. > > I've also found that the examp

Re: [Podofo-users] Podofo rendering

2019-08-13 Thread Matthew Brincke
Thanks, > P. Best regards, Matthew > > On 12/08/2019 23:36, Matthew Brincke wrote: > > Hello Pietro, hello all, > >> On 12 August 2019 at 23:24 Pietro Paolini > >> wrote: > >> > >> > >> Hi all, > >> > >> I've

Re: [Podofo-users] Podofo rendering

2019-08-12 Thread Matthew Brincke
Hello Pietro, hello all, > On 12 August 2019 at 23:24 Pietro Paolini > wrote: > > > Hi all, > > I've stumbled upon this library only a few days ago and I noticed that > the downloadable version from > > http://sourceforge.net/projects/podofo/files/podofo/0.9.6/podofo-0.9.6.tar.gz/download >

Re: [Podofo-users] PdfPage::DeleteAnnotation does not delete the annotation object as it should (full mail)

2019-04-06 Thread Matthew Brincke
Hello F.E., hello all, > On 03 April 2019 at 12:11 "F. E." wrote: > > Hello again, > I created two alternative patches for this issue, since the first one feels > rather ugly. With patch v2, I switched the PdfReference parameter to > call-by-value instead of call-by-reference. I'd like to

Re: [Podofo-users] [BRANCH] Moving source from root/src to root/src/podofo

2019-04-06 Thread Matthew Brincke
Hello Francesco, hello all, > On 06 April 2019 at 00:42 Francesco Pretto wrote: > > > Also Matthew: any comment on the proposed re-layout of the source code? > before, I had dreamt of getting rid of the root/podofo/ directory, but that was because of the wrapper headers in there. Because the

Re: [Podofo-users] [BRANCH] Moving source from root/src to root/src/podofo

2019-04-05 Thread Matthew Brincke
Hello zyx, hello Francesco, hello all, > On 06 April 2019 at 00:06 Matthew Brincke wrote: > > > Hello zyx, hello all, > > > On 05 April 2019 at 11:34 zyx wrote: > > > > > > On Fri, 2019-04-05 at 10:30 +0200, Francesco Pretto wrote: > > > Ok.

Re: [Podofo-users] [BRANCH] Moving source from root/src to root/src/podofo

2019-04-05 Thread Matthew Brincke
Hello zyx, hello all, > On 05 April 2019 at 11:34 zyx wrote: > > > On Fri, 2019-04-05 at 10:30 +0200, Francesco Pretto wrote: > > Ok. Now there are no other outstanding patches from my side and > > yesterday I merged a pending change from Michal Sudolsky. what about the post "[Podofo-users]

Re: [Podofo-users] Fwd: Better handling of xref entries shorter than 20 chars

2019-03-12 Thread Matthew Brincke
Hello F.E., hello all, > On 11 March 2019 at 09:52 "F. E." wrote: > > > I think "\n\r" combination is unnecessary. > On principal I agree. But without the patch, Podofo loads PDFs > with '\n\r' just fine and I don't want to change that without need. > Furthermore, the standard states 'if the

Re: [Podofo-users] Issue with Encoding dictionary

2019-02-24 Thread Matthew Brincke
Hello Christophe, hello all, > On 21 February 2019 at 22:03 BLANCHARD Christophe > wrote: > > > Hello All, > > > I’ve managed to fix my issue. Please find my proposed patch as attachment. thank you for the patch, Christophe. I've changed it slightly but it looked good before also, just

[Podofo-users] Test EncodingTest::testDifferencesEncoding() now properly fixed (was: Re: Bug when converting string to encoding with difference encoding)

2019-02-21 Thread Matthew Brincke
Hello Michal, hello all, > On 29 November 2018 at 17:26 Michal Sudolsky wrote: > > Function PdfEncodingDifference::ContainsUnicodeValue already gets its > unicodeValue parameter as big endian but it then treats it like machine > endian and swaps bytes then compares this against unicodeValues

[Podofo-users] (Security) Issue #39: Opinions about attached patch for it?

2019-01-29 Thread Matthew Brincke
Hello all, I'd like some opinions about the attached patch for solving issue #39 [1] in which I have opted against throwing an exception in order to avoid interrupting processing /Names arrays in PdfNamesTree::AddToDictionary(PdfObject*, PDFDictionary&) which would lose information. However, in

Re: [Podofo-users] [PATCH] EncryptTest: Fix buffer overflow in decrypted out buffer in TestEncrypt()

2019-01-27 Thread Matthew Brincke
Hello Francesco, hello all, > On 25 December 2018 at 21:04 Francesco Pretto wrote: > > According to OpenSSL 1.1.0 documentation[1], "the decrypted data buffer out > passed > to the EVP_DecryptUpdate() should have sufficient room for (inl + > cipher_block_size) > bytes". In TestEncrypt(),

[Podofo-users] PdfVariant: m_eDataType explained & Unknown sentinel value added

2019-01-24 Thread Matthew Brincke
Hi zyx, hello all, > On 24 January 2019 at 18:55 zyx wrote: > > > Hi, ... snip ... > > > @zyx: Are you still vetoing that change of Francesco's (making > > Unknown equal to 0xff in EPdfDataType)? > > My complain from the past was about the compiler warnings (as Francesco > pointed out

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

2019-01-24 Thread Matthew Brincke
Hi zyx, hello all, > On 24 January 2019 at 12:13 zyx wrote: > > > On Wed, 2019-01-23 at 20:09 +0100, Michal Sudolsky wrote: > > I am tempted to note that -1 is stored in 8-bit integer in exactly > > same way as 0xFF. > it seems to me (after reading the remainder of zyx' post) that I should

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

2019-01-23 Thread Matthew Brincke
Hi zyx, hello all, > On 23 January 2019 at 15:39 zyx wrote: > > > Hi, > > On Wed, 2019-01-23 at 13:35 +0100, Francesco Pretto wrote: > > > weird, neither my checkout has it, nor the trunk: > > > > I have ePdfDataType_Unknown = 0xff because I pushed for this change > > some time ago[1].

Re: [Podofo-users] [PATCH 1/5] is problematic (was: Re: [PATCH 2/5] PdfDictionary: Removed 5 unneeded lookups in AddKey and RemoveKey methods)

2019-01-22 Thread Matthew Brincke
Hello Francesco, hello all, > On 22 January 2019 at 23:16 Francesco Pretto wrote: > > > On Tue, 22 Jan 2019 at 22:27, Matthew Brincke wrote: > > > > I retract my acceptance of [PATCH 1/5] because I've found some > > posts [1] to the mailing list which show

[Podofo-users] [PATCH 1/5] is problematic (was: Re: [PATCH 2/5] PdfDictionary: Removed 5 unneeded lookups in AddKey and RemoveKey methods)

2019-01-22 Thread Matthew Brincke
Hello Francesco, hello all, > On 18 January 2019 at 15:05 Matthew Brincke wrote: > patch and the fix because I'd like to accept the first two > patches in this series today (commit them after testing with > different compilers on GNU/Linux). I retract my acceptance of [PATCH 1/5]

Re: [Podofo-users] [PATCH 2/5] PdfDictionary: Removed 5 unneeded lookups in AddKey and RemoveKey methods

2019-01-18 Thread Matthew Brincke
Hello Francesco, hello all, > On 18 January 2019 at 09:29 Francesco Pretto wrote: > > > On Fri, 18 Jan 2019 at 01:14, Matthew Brincke wrote: > > > > Hello Francesco, hello all, > > > > > On 14 January 2019 at 23:08 Francesco Pretto wrote: &

Re: [Podofo-users] [PATCH 2/5] PdfDictionary: Removed 5 unneeded lookups in AddKey and RemoveKey methods

2019-01-17 Thread Matthew Brincke
Hello Francesco, hello all, > On 14 January 2019 at 23:08 Francesco Pretto wrote: > > > From: Francesco Pretto > ---src/base/PdfDictionary.cpp | 17 - > 1 file changed, 8 insertions(+), 9 deletions(-) the lines your patch removes each contain an explicit or implicit lookup,

Re: [Podofo-users] Help related to signing PDF document

2019-01-13 Thread Matthew Brincke
Hi Susheela, hello all, > On 13 January 2019 at 19:08 Susheela S wrote: > > Hi, > I have tried to sign PDF document using latest version of PoDoFo > 0.9.6 and openssl has been used for reading the certificate. I > have attached the .cpp file which has the code. The PDF file gets > created, but

[Podofo-users] Recursion guard against issues 15 (CVE-2018-8002) & 25

2018-11-23 Thread Matthew Brincke
Hello all, what do you think about Dominik Seichter's suggestion [1] to extract PdfRecursionGuard to its own file then to fix recursion issues in other places, namely CVE-2018-8002 [2] (I'm of the opinion that fixing a CVE should take some precedence over supporting everything that's, at least

Re: [Podofo-users] Patch to handle indirect ID in trailer

2018-10-31 Thread Matthew Brincke
Hello Clayton, hello zyx, hello all, > On 30 October 2018 at 18:34 Clayton Wheeler wrote: > ... snip ... > the typo in that comment, but I rewrote it after a closer reading of section > 7.5.5 anyway; it implies the ID can be indirect when a PDF is unencrypted. > what the patch doesn't do is

Re: [Podofo-users] GetFilteredCopy throws exception with empty unencoded stream

2018-10-31 Thread Matthew Brincke
Hello Michal, hello zyx, hello all, > On 29 October 2018 at 16:39 Michal Sudolsky wrote: > > > I just meant there are other places where I can call function with NULL > buffer and non-zero length to make crash for example "PdfImage::LoadFromData". IMHO all these places should be fixed

Re: [Podofo-users] Password protected document

2018-09-05 Thread Matthew Brincke
Hello Christophe, hello all, > On 03 September 2018 at 17:49 BLANCHARD Christophe > wrote: > Hello all, > > I'm trying to read attached password-protected (password is 'password') am I the only one to have *not* received any attachment with that email, or has it been sent to the list with the

[Podofo-users] Untracked CVE issues now fixed (was: Re: CVE confusion, also in Debian (was: Re: Next PoDoFo Release 0.9.6))

2018-08-24 Thread Matthew Brincke
i > On 14 June 2018 at 01:37 Matthew Brincke wrote: > > ... snip ... > For the new info, please see my addition below (bad news). > > On 12 June 2018 at 22:21 Matthew Brincke wrote: > > > > > > Hello Mattia, hello all, > > > On 12 June 2018 at 16:25 Ma

Re: [Podofo-users] 0.9.6 fails to link a test with -DPODOFO_HAVE_GCC_SYMBOL_VISIBILITY

2018-07-30 Thread Matthew Brincke
-1 I don't think any more classes should be publicized, internals of PoDoFo should rather be protected from users who might be tempted to rely on them. Hello zyx, hello Mattia, hello all, > On 30 July 2018 at 11:03 zyx wrote: > > > On Sun, 2018-07-29 at 19:45 +0200, Mattia Rizzolo wrote: > >

Re: [Podofo-users] Fwd: Re: CVE confusion, also in Debian (was: Re: Next PoDoFo Release 0.9.6)

2018-07-13 Thread Matthew Brincke
fter a while. > Not to mention, I fear the CVEs are going to keep coming... > > On Thu, Jul 12, 2018 at 3:16 PM, Matthew Brincke wrote: > > > firstly I apologize (especially in case the delay in reaction > > > on my part is the reason PoDoFo 0.9.6 was released with CVEs > &g

Re: [Podofo-users] Windows build on Podofo 0.9.5

2018-07-13 Thread Matthew Brincke
Hello Patrice, hello all, > On 13 July 2018 at 10:48 Patrice Guérin wrote: > > Hello, > > My name is Patrice and I'm new with Podofo. > I was able to build Podofo 0.9.5 on Linux Debian 7 without problem but it's > a little bit more complicated on Windows with Visual Studio 2013. >

[Podofo-users] Fwd: Re: CVE confusion, also in Debian (was: Re: Next PoDoFo Release 0.9.6)

2018-07-12 Thread Matthew Brincke
rds, mabri -- Original Message ------ From: Matthew Brincke To: mat...@mapreri.org Date: 14 June 2018 at 01:37 CEST Subject: Re: [Podofo-users] CVE confusion, also in Debian (was: Re: Next PoDoFo Release 0.9.6) Hello Mattia, I'm full-quoting my previous email because it was rejected by the l

Re: [Podofo-users] Help needed for MinGw

2018-07-04 Thread Matthew Brincke
[ corrections in quoted text ] Hello Gilles, hello all, > On 04 July 2018 at 08:00 Gilles Maire wrote: > > > Hello, > > I developped chordV on sourceforge > https://sourceforge.net/projects/chordV using libpodofo and Qt5 > > All is fine on Linux machine, and I try to install podofo on Mingw

Re: [Podofo-users] PdfPage DeleteAnnotation

2018-06-14 Thread Matthew Brincke
Hello Cory, hello all, > On 14 June 2018 at 22:41 Cory Mickelson wrote: > > > Please accept this patch to fix PdfPage DeleteAnnotation. I've added a I have the following objections against accepting your new patch: 1. You have changed pItem from an address on the heap to a stack-allocated

[Podofo-users] CVE confusion, also in Debian (was: Re: Next PoDoFo Release 0.9.6)

2018-06-12 Thread Matthew Brincke
Hello Dominik, hello all, > On 26 January 2018 at 23:35 Matthew Brincke wrote: > > > [ Left Dominik in To to help him follow this thread, fixed text typos ] > > Hello Dominik, hello all, > > > Dominik Seichter via Podofo-users has written on 26 January 20

Re: [Podofo-users] [PATCH 13/13] PdfDictionary: Added support for range iteration

2018-06-10 Thread Matthew Brincke
Hello Francesco, hello all, > On 22 February 2018 at 12:21 Francesco Pretto wrote: > > > Also added a convenience GetSize() method > --- > src/base/PdfDictionary.cpp | 10 ++ > src/base/PdfDictionary.h | 16 +++- > 2 files changed, 25 insertions(+), 1 deletion(-) >

Re: [Podofo-users] image extract

2018-05-26 Thread Matthew Brincke
Hello Joerg, hello all, > On 22 May 2018 at 12:56 Joerg Sonnenberger wrote: > > > 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

Re: [Podofo-users] PoDoFo PdfString::Write buffer overflow

2018-05-18 Thread Matthew Brincke
Hello Mark, hello all, > On 02 May 2018 at 10:20 Mark Rogers wrote: > > > Hi > > That sounds good. > > > if( pEncrypt && m_buffer.GetSize() && IsValid() ) > > As IsValid() contains only a NULL check on the buffer in m_buffer, > > the size check

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

2018-05-15 Thread Matthew Brincke
Hello Georg, hello all, > On 10 May 2018 at 19:28 Georg Funk wrote: > > > Hi Joerg, > > thanks for this hint. > > I thought maybe I'm misusing PdfObject::Reference() and > PdfObject::GetReference() in my code This could explain the null > pointer. > that could also

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

2018-05-10 Thread Matthew Brincke
[typos fixed and code re-wrapped in quote] Hello Georg, hello all, > On 10 May 2018 at 16:14 Georg Funk wrote: > > > Dear developers, > > I'm getting a segmentation fault in the following code snippet when > resolving IsReference()): > > if

Re: [Podofo-users] PoDoFo PdfString::Write buffer overflow

2018-05-02 Thread Matthew Brincke
Hello all, > On 01 May 2018 at 00:54 Matthew Brincke <ma...@mailbox.org> wrote: > > > Hello Mark, hello all, > > On 20 April 2018 at 00:09 Mark Rogers <mark.rog...@powermapper.com> wrote: > > > > > > Hi > > > > > >

Re: [Podofo-users] PoDoFo PdfString::Write buffer overflow

2018-04-30 Thread Matthew Brincke
Hello Mark, hello all, > On 20 April 2018 at 00:09 Mark Rogers wrote: > > > Hi > > > This code from PdfString::Write has a buffer overflow – it checks > buffer.GetSize() > 0 then sets nInputBufferLen=GetSize()-2 which is passed > to new[nInputBufferLen] and

Re: [Podofo-users] [PATCH 10/13] PdfVariant: Added SetString method

2018-04-27 Thread Matthew Brincke
Hello Francesco, hello all, On 22 February 2018 at 12:21 Francesco Pretto wrote: > --- > src/base/PdfVariant.h | 25 + > 1 file changed, 25 insertions(+) the patch looks good except for the fact I had to massage the white-space to get it to apply as a patch (without fuzz),

Re: [Podofo-users] PDF CVE Security Research

2018-04-19 Thread Matthew Brincke
Hello Mark, hello all, > On 19 April 2018 at 08:45 Mark Rogers wrote: > Hi > This will be of interest to anyone testing PoDoFo or reviewing submitted > patches. It’s an analysis of 122 PDF CVEs found across a number of PDF > products presented at the Blackhat

Re: [Podofo-users] [PATCH] PoFoFo: fix CVE-2018-5296 by reducing limit in s_nMaxObjects

2018-04-16 Thread Matthew Brincke
Hello Mark, hello all, > On 15 April 2018 at 22:06 Mark Rogers wrote: > > > Hi > > > Here’s a simple patch for CVE-2018-5296 – it reduces the limit returned > by GetMaxObjectCount from std::numeric_limits::max() to 8,388,607 which > is the limit for for the

Re: [Podofo-users] CVE-2017-5855 and CVE-2017-6844

2018-04-16 Thread Matthew Brincke
Hello Mark, hello all, > On 15 April 2018 at 18:32 Mark Rogers wrote: > > > Hi > > > I’ve been trying to write unit tests for CVE-2017-5855 and CVE-2017-6844, and > now think both are false positives due to a bug in Address Sanitizer > triggered > by large

Re: [Podofo-users] PoDoFo 0.9.6-rc1 ready for download

2018-04-08 Thread Matthew Brincke
Hello Francesco, hello all, > On 08 April 2018 at 21:16 Francesco Pretto <cez...@gmail.com> wrote: > > > On 8 April 2018 at 21:06, Matthew Brincke <ma...@mailbox.org> wrote: > > > > Could you please consider the following: I don't think the project sho

Re: [Podofo-users] PoDoFo 0.9.6-rc1 ready for download

2018-04-08 Thread Matthew Brincke
Hello Dominik, hello all, > On 08 April 2018 at 14:12 Dominik Seichter via Podofo-users > wrote: > > > Hi everybody, >   > The first release candidate for PoDoFo 0.9.6 can be downloaded from here: >

Re: [Podofo-users] Justify text

2018-03-13 Thread Matthew Brincke
Hello Luis, hello all, > On 13 March 2018 at 00:49 Luis Otavio wrote: > > > Since PoDoFo seems to lack the ability to print multi line text into the > Justified format, and I am a newbie on PoDoFo > > Id like the help of you guys to get a few information > ...

Re: [Podofo-users] Patch for GetFromResources to load colorspace

2018-03-11 Thread Matthew Brincke
Hello Christophe, hello all, > On 10 February 2018 at 21:44 BLANCHARD Christophe > wrote: > > > Hello all, > > This patch to make GetFromResources function supporting ColorSpace that can > be an array: > > PdfObject* PdfPage::GetFromResources( const PdfName &

Re: [Podofo-users] Failed to build podofo on Manjaro Linux

2018-03-09 Thread Matthew Brincke
Hello, > On 09 March 2018 at 16:04 張修銘 wrote: > > > Hello, > I downloaded snapshot of podofo from SourceForge and tried > to build it on Manjaro Linux, but I encountered an error. Here > is part of the error message: > > [ 66%] Linking CXX executable podofocolor that

Re: [Podofo-users] watermark

2018-03-06 Thread Matthew Brincke
Hello ChunHsia Tang, hello all, > On 21 February 2018 at 10:16 chunhsia_t...@mazak.co.jp wrote: > > hi, I'm sorry I'm replying only now, I just got your email from the mailing list (approved there: Tue, 06 Mar 2018 01:07:23 +) as there was an outage/reliability problem at

[Podofo-users] Resend: Re: Abolition of old-style casts, dynamic_cast intro request

2018-03-05 Thread Matthew Brincke
Hello all, this is a resend because of a SourceForge.net mailing list outage when it was originally (re)sent (I received an error message for that in email yesterday, March 4, 09:21 CET). -- Original Message -- From: Matthew Brincke <ma...@mailbox.org> To: zyx <z.

[Podofo-users] Patch review/mailing list unreliability (was: Re: Abolition of old-style casts, dynamic_cast intro request)

2018-03-01 Thread Matthew Brincke
Hello zyx, hello all, > On 01 March 2018 at 09:03 zyx <z...@gmx.us> wrote: > > > On Wed, 2018-02-28 at 22:54 +0100, Matthew Brincke wrote: > > I hope I hadn't promised to review more than one patch > > Hi, > well, I understood (and hoped) your statemen

[Podofo-users] Fwd: Re: [PATCH 05/13] PdfPagesTree::InsertPage: Fix "atIndex" is really a 0-based index

2018-02-28 Thread Matthew Brincke
Hello zyx, hello Francesco, hello all, this is a resend of the email content (with main headers) below. I'm sorry that e-mail didn't reach (all of) you originally. Best regards, mabri -- Original Message -- From: Matthew Brincke <ma...@mailbox.org> To: Francesco Prett

Re: [Podofo-users] Accessing the images of one page?

2018-02-27 Thread Matthew Brincke
Hello Dmitry, hello Olivier, hello all, > On 20 February 2018 at 19:50 Dmitry Salychev wrote: > > > Hi, Olivier. > > First of all, you've to know what kind of image you're going to access. They > usually can be stored in a PDF file two ways: XObject image or

Re: [Podofo-users] Abolition of old-style casts, dynamic_cast intro request

2018-02-27 Thread Matthew Brincke
Hello Francesco, hello all, > On 27 February 2018 at 22:48 Francesco Pretto <cez...@gmail.com> wrote: > > > On 27 February 2018 at 22:22, Matthew Brincke <ma...@mailbox.org> wrote: > > I'd like > > to make its code more C++-like by removing those > > and

Re: [Podofo-users] [PATCH 06/13] PdfAnnotation: Removed duplicated set rect on constructor

2018-02-23 Thread Matthew Brincke
Hello Francesco, hello all, > On 22 February 2018 at 12:20 Francesco Pretto wrote: > > > --- > src/doc/PdfAnnotation.cpp | 4 > 1 file changed, 4 deletions(-) > > diff --git a/src/doc/PdfAnnotation.cpp b/src/doc/PdfAnnotation.cpp > index a02f05d..f95e82c 100644 > ---

Re: [Podofo-users] [PATCH 05/13] PdfPagesTree::InsertPage: Fix "atIndex" is really a 0-based index

2018-02-22 Thread Matthew Brincke
Hello Francesco, hello all, > On 23 February 2018 at 01:05 Francesco Pretto <cez...@gmail.com> wrote: > > > On 23 February 2018 at 00:13, Matthew Brincke <ma...@mailbox.org> wrote: > > where did it crash? What kind of crash was it, please? I've looked in > &g

Re: [Podofo-users] [PATCH 03/13] PdfPainter: Removed unneed cast

2018-02-22 Thread Matthew Brincke
Hello Francesco, hello all, > On 22 February 2018 at 12:20 Francesco Pretto wrote: > > > PdfImage is a PdfXObject > --- > src/doc/PdfPainter.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/doc/PdfPainter.cpp b/src/doc/PdfPainter.cpp >

Re: [Podofo-users] [PATCH 05/13] PdfPagesTree::InsertPage: Fix "atIndex" is really a 0-based index

2018-02-22 Thread Matthew Brincke
Hello Francesco, hello all, > On 22 February 2018 at 12:20 Francesco Pretto wrote: > > > This is also specified in the API documentation. Without the fix > there was a crash trying to insert page at index 0 where did it crash? What kind of crash was it, please? I've looked in

Re: [Podofo-users] Watermarks?

2018-02-22 Thread Matthew Brincke
Hello Olivier, hello all, On 22 February 2018 at 17:54 Olivier Mascia wrote: > > > Dear all, > > How about watermarking pages? > Either with text, images or PDF pages? > I'm no expert for "watermarking", especially about securing/hardening against removal of such a watermark

Re: [Podofo-users] BUG: Erase method from PdfOutlineItem sometimes segfaults

2018-02-11 Thread Matthew Brincke
[grammar fix in quoted text ] > zyx has written on 28 April 2017 at 21:51: > > > On Tue, 2017-04-25 at 00:47 +0200, Matthias Brinke wrote: > > The patch and the sources for the test programs are attached here. > > Hi, Hello zyx, hello Dominik, hello all, > somewhat scare me. The part about

Re: [Podofo-users] Patch replaced: Wannabe-namespaced internal function converted to private method

2018-02-10 Thread Matthew Brincke
an exception and losing info about them from the input. I'm thankfully looking forward to your answer in time. Best regards, mabri > Matthew Brincke <ma...@mailbox.org> wrote on 26 January 2018 at 18:08: > > > Hello zyx, hello all, > > > zyx <z...@gmx.us> has wr

[Podofo-users] test/unit/podofo-test EncodingTest (assertions fixed, 1 test still fails)

2018-02-10 Thread Matthew Brincke
Hello all, after fixing the CPPUNIT_ASSERT_EQUAL and CPPUNIT_ASSERT_EQUAL_MESSAGE assertions in EncodingTest.cpp in svn r1884 [1], many of which had the "expected" and "actual" parameters swapped, one test still fails: the last assertion in EncodingTest::testDifferencesEncoding has "Expected: 0 -

Re: [Podofo-users] patch for CVE-2017-8054

2018-02-08 Thread Matthew Brincke
Hello zyx, hello all, > zyx <z...@gmx.us> has written on 8 February 2018 at 10:32: > > > On Thu, 2018-02-08 at 00:13 +0100, Matthew Brincke wrote: > > If nobody beats me for the time to the commit, it will be fixed > > again from svn r1882 on: http://sour

Re: [Podofo-users] patch for CVE-2017-8054

2018-02-07 Thread Matthew Brincke
Hello all, > Matthew Brincke <ma...@mailbox.org> has written on 8 February 2018 at 00:58: > > > Hello zyx, hello all, > > Matthew Brincke <ma...@mailbox.org> has written on 8 February 2018 at 00:13: > > > > > > Hello zyx, hello all, > > &g

Re: [Podofo-users] patch for CVE-2017-8054

2018-02-07 Thread Matthew Brincke
Hello zyx, hello all, > Matthew Brincke <ma...@mailbox.org> has written on 8 February 2018 at 00:13: > > > Hello zyx, hello all, > > zyx <z...@gmx.us> has written on 4 February 2018 at 16:10: > > > > > > On Fri, 2018-01-26 at 07:34 +0100, zyx w

Re: [Podofo-users] patch for CVE-2017-8054

2018-02-07 Thread Matthew Brincke
Hello zyx, hello all, > zyx has written on 4 February 2018 at 16:10: > > > On Fri, 2018-01-26 at 07:34 +0100, zyx wrote: > > I see. It looks like I did something wrong when testing the change. > > When trying once again now I can confirm what you see, the change > > does > > fix

Re: [Podofo-users] integer overflow in PdfObjectStreamParserObject::ReadObjectsFromStream (src/base/PdfObjectStreamParserObject.cpp)

2018-02-01 Thread Matthew Brincke
Hello zyx, hello all, > zyx has written on 14 January 2018 at 13:34: > > > On Thu, 2018-01-11 at 16:59 -0500, Probe Fuzzer wrote: > > src/base/PdfObjectStreamParserObject.cpp:99:30: runtime error: signed > > integer overflow: 94 + 9223372036854775807 cannot be represented in > >

Re: [Podofo-users] Next PoDoFo Release 0.9.6

2018-01-31 Thread Matthew Brincke
[ grammar fix in quoted text ] Hello Dominik, hello all, Dominik Seichter <domseich...@googlemail.com> wrote on 27 January 2018, 13:23: > > > Hi Matthew et al., > > > On Fri, Jan 26, 2018 at 11:35 PM, Matthew Brincke <ma...@mailbox.org> wrote: > >>

Re: [Podofo-users] Integer Overflow in PdfXRefStreamParserObject::ParseStream

2018-01-27 Thread Matthew Brincke
Hello zyx, hello all, > zyx has written on 14 January 2018 at 11:55: > > > On Sat, 2018-01-06 at 09:25 -0500, Probe Fuzzer wrote: > > we found that on latest version of PoDoFo (RELEASE_0.9.5_rc1), > > Hi, > what is the RELEASE_0.9.5_rc1, please? The "rc1" suffix suggests

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

2018-01-27 Thread Matthew Brincke
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 only support the JPEG "encoding" (PDF standard: filter) yet. I don't know if any of the others

Re: [Podofo-users] Next PoDoFo Release 0.9.6

2018-01-26 Thread Matthew Brincke
[ Left Dominik in To to help him follow this thread, fixed text typos ] Hello Dominik, hello all, > Dominik Seichter via Podofo-users has written on 26 January 2018 at 17:37: > > > Hi Mattia, >   > Thanks for the good summary! Let me comment on the open issues. >   > Unfixed security issues:

Re: [Podofo-users] Patch replaced: Wannabe-namespaced internal function converted to private method

2018-01-26 Thread Matthew Brincke
Hello zyx, hello all, > zyx <z...@gmx.us> has written on 14 January 2018 at 11:40: > > > On Thu, 2018-01-04 at 00:59 +0100, Matthew Brincke wrote: > > > the internal function name PODOFO_Base14FontDef_FindBuiltinData > > > looks like it should be in a n

Re: [Podofo-users] patch for CVE-2017-8054

2018-01-25 Thread Matthew Brincke
Hello zyx, hello Mattia, hello all, > zyx has written on 14 January 2018 at 11:23: > > > On Wed, 2017-12-27 at 09:16 +0100, Mattia Rizzolo wrote: > > Somebody attached to the Debian bug http://bugs.debian.org/860995 a > > patch for CVE-2017-8054. > > Hi, > thanks for the

Re: [Podofo-users] Parse error on Chromium generated PDFs

2018-01-16 Thread Matthew Brincke
Hello zyx, hello all, > zyx has written on 14 January 2018 at 15:42: > > > On Wed, 2017-12-06 at 18:34 +0100, le...@free.fr wrote: > > After some digging, Chromium / Skia do not store annotations as > > references, but directly as dictionnary under /Annots. > > Here is a simple

Re: [Podofo-users] Fix for the "could avoid useless dependency" Debian build warning

2018-01-16 Thread Matthew Brincke
Hello all, hello Mattia, hello zyx, > Mattia Rizzolo has written on 14 January 2018 at 13:34: > > > On Sun, Jan 14, 2018 at 01:18:58PM +0100, zyx wrote: > > could you provide the exact warning you are referring to and in which > > stage (some context) it had been written, please? I do not

[Podofo-users] Fix for the "could avoid useless dependency" Debian build warning

2018-01-09 Thread Matthew Brincke
Hello all, the patch for that is attached, please accept. It's made against version 0.9.5, but to parts of CMakeLists.txt files which haven't been changed there (& context) since then AFAIK. I've build-tested with sbuild into an (up-to-date, minimal except for GNU autotools, maybe that's needed

Re: [Podofo-users] [no-feature fix] Empty decoded stream of CCITTFaxDecode decoder

2018-01-07 Thread Matthew Brincke
-to-date) chroot, I couldn't run-test it for lack of a suitable input file or tool to generate one (netpbm is so old even in Debian sid) ;-(. Best regards, mabri > Matthew Brincke <ma...@mailbox.org> has written on 16 November 2017 at 16:59: > > > Hello Luke, hello all, >

[Podofo-users] Wannabe-namespaced internal function converted to private method

2018-01-03 Thread Matthew Brincke
Hello all, the internal function name PODOFO_Base14FontDef_FindBuiltinData looks like it should be in a namespace and a class IMHO, therefore I've converted it to a private method with access only from PdfFontFactory. I've also implemented a wrapper method IsBase14Font() to give the class

Re: [Podofo-users] How to extract embedded file from pdf

2018-01-01 Thread Matthew Brincke
in the address: podofo-users AT list.sourceforge.net Best regards, mabri -- Original message -- From: David Swank <dsw...@tslusa.biz> To: Matthew Brincke <ma...@mailbox.org> Date: Sat, 30 Dec 2017 07:19:17 -0500 Subject: Re: [Podofo-users] How to extract embedded f

Re: [Podofo-users] How to extract embedded file from pdf

2017-12-28 Thread Matthew Brincke
Hello David, hello all, > David Swank has written on 27 Dezember 2017 at 22:47: > > Environment Msys on Win7.  Qt 5.9.2, MinGw 7.2.0, PoDoFo .0.9.5.0 > I am able to Attach my csv files into a pdf just fine. > Now I am attempting to retrieve the attachments so that i

Re: [Podofo-users] Next release ? Many CVE's

2017-12-26 Thread Matthew Brincke
Hello Mattia, hello zyx, hello all, > Mattia Rizzolo has written on 8 December 2017 at 17:38: > > > On Thu, Dec 07, 2017 at 09:57:46AM -0500, Peter Linnell wrote: > > As I maintain Podofo for openSUSE, there are now a fair amount of CVE's > > against Podofo with fixes in trunk. I'm wondering

Re: [Podofo-users] MRC compression support

2017-11-19 Thread Matthew Brincke
age pointers only). Best regards, mabri > > 18.11.2017 14:47, Matthew Brincke пишет: > > Hello all, > > > >> zamazan4ik has written on 18 November 2017 at 00:18: > >> > >> Hello, > >> > >> Has PoDoFo library support for MRC compress

Re: [Podofo-users] MRC compression support

2017-11-18 Thread Matthew Brincke
Hello all, > zamazan4ik has written on 18 November 2017 at 00:18: > > Hello, > > Has PoDoFo library support for MRC compression? Are there segmentator in > the library? Or maybe are there some stuff for writing different layers > with different compression algorithms? > the PoDoFo library

Re: [Podofo-users] Empty decoded stream of CCITTFaxDecode decoder

2017-11-16 Thread Matthew Brincke
Hello Luke, hello all, > Luke Kennedy has written on 9 August 2017 at 13:10: > > Hi all, > > As mentioned in further details here  > https://stackoverflow.com/questions/45548467/empty-decoded-stream-of-ccittfaxdecode-decoder-using-podofo > > … we’ve hit an issue with

Re: [Podofo-users] podofo-0.9.5 for fedora25

2017-11-13 Thread Matthew Brincke
Hello Alex, hello all, > Alex has written on 13 November 2017 at 01:18: > > > Hi, does anyone have a working version of podofo-0.9.5 for fedora25? > It ships with 0.9.1, and 0.9.5 doesn't easily compile: > > Found cppunit. Unit tests will be built. > -- Found OpenSSL:

Re: [Podofo-users] ABI fix for the fix CVE-2017-5852

2017-10-26 Thread Matthew Brincke
Hello Mattia, > Mattia Rizzolo has written on 23. Oktober 2017 at 11:10: > > On Sun, Oct 22, 2017 at 05:20:31PM +0200, Matthew Brincke wrote: > > Debian bug 854600 [2], I wonder why no one answered to the last post ...) > > My fault. > TBH, I totally forgot of that. I s

Re: [Podofo-users] License header missing in some files (was: Re: podofosign compile errors under MSVC)

2017-10-26 Thread Matthew Brincke
Hi zyx, > zyx <z...@gmx.us> has written on 23 Oktober 2017 at 10:14: > > > On Sun, 2017-10-22 at 17:44 +0200, Matthew Brincke wrote: > > Can I just send a patch to add the copyright & GNU LGPL license > > headers (as it's hopefully understood that all t

[Podofo-users] License header missing in some files (was: Re: podofosign compile errors under MSVC)

2017-10-22 Thread Matthew Brincke
Hello all, > Peter Petrov has written on 1 March 2017 at 09:29: > > Dear zyx, > > Thank you for your patch! > > Just off-topic, I noticed that this file (src/base/PdfCompilerCompatPrivate.h) > > doesn't contain GNU Library General Public License copyright header. > > Also

Re: [Podofo-users] ABI fix for the fix CVE-2017-5852

2017-10-22 Thread Matthew Brincke
Hello zyx, hello all, > zyx has written on 22 October 2017 at 15:34: > > On 21.10.2017 0:59, Matthew Brincke wrote: > > attached is a patch against trunk r1860 (diff -up in svn format) for > > fixing the ABI (changing it back to the 0.9.5 state for t

[Podofo-users] ABI fix for the fix CVE-2017-5852

2017-10-20 Thread Matthew Brincke
Hello all, attached is a patch against trunk r1860 (diff -up in svn format) for fixing the ABI (changing it back to the 0.9.5 state for the method PdfPage::GetInheritedKeyFromObject() after the fix for CVE-2017-5852). I'm sorry to not have tested it because the security policy of the system I'm

Re: [Podofo-users] Podofocolor error

2017-09-30 Thread Matthew Brincke
Hello Matt, hello all, currently on encountering an unsupported color space, the information about it is discarded, so no output file can be produced in that case. I don't have time to rectify that currently, sorry. Best regards, mabri > Matt S Rinc has written on 26. Juli 2017

Re: [Podofo-users] Signing encrypted pdfs

2017-09-30 Thread Matthew Brincke
Hello all, > "F. E." has written on 1 August 2017 at 15:00: > > Hello dear podofo users, > > I want to sign an already encrypted pdf using podofo, but I don't get it > to work: ... snip ... > 3.) Ok, so I thought, maybe I've got to set the security options again > after

  1   2   >