Re: [Podofo-users] Missing HTML API documentation for several public classes

2015-08-17 Thread Matthew Brincke
- From: zyx z...@litepdf.cz To: podofo-users@lists.sourceforge.net CC: Date: 18:27 Donnerstag, 6.August 2015 Subject: Re: [Podofo-users] Missing HTML API documentation for several public classes On Mon, 2015-08-03 at 23:19 +, Matthew Brincke wrote: please correct the typo in the patch

[Podofo-users] PdfStream and PdfFilter documentation fixes

2015-08-21 Thread Matthew Brincke
Hi all, I have attached a patch with clarifications, formatting and typo fixes to PdfStream.h and PdfFilter.h (please review them, if accepted, please apply). I only post this late because I had problems with my Internet access, I'm sorry. Best regards, mabriIndex: src/base/PdfStream.h

Re: [Podofo-users] patch replacement: PdfStream and PdfFilter documentation fixes

2015-08-24 Thread Matthew Brincke
: Matthew Brincke mabr...@ymail.com To: podofo-users@lists.sourceforge.net podofo-users@lists.sourceforge.net CC: Date: Saturday 22 August 2015, 2:02 am Subject: [Podofo-users] PdfStream and PdfFilter documentation fixes Hi all, I have attached a patch with clarifications, formatting and typo

[Podofo-users] Missing HTML API documentation for several public classes

2015-08-03 Thread Matthew Brincke
Hello all, I haven't found any public API documentation for the classes PdfArray, PdfDictionary and PdfImmediateWriter in the online documentation. I hope these classes are in the public API of PoDoFo (at least I haven't found anything to the contrary, not even in the extensive doc comment on the

Re: [Podofo-users] GetGlyphID in PoDoFo

2015-10-22 Thread Matthew Brincke
Hi, I don't have much time as I have to study and write a report for it, so please don't expect further reply or testing from me. That said, I do see some issues with your code: (a) The use of the old-style cast (long)individual_character (b) You assume that that 8-bit unit (byte) of the string

[Podofo-users] proposed workaround for your build issue (was: (no subject))

2015-11-10 Thread Matthew Brincke
Hi, the workaround is attached. Please tell me what you think of it. (I needed another one that will be in the next e-mail to ease reviewing). I build-tested it, not anything else. From: Svetlana Watkins To:

Re: [Podofo-users] MinGW-w64 cross-build problem: windres not taking compiler options

2015-11-14 Thread Matthew Brincke
Win32 work with cmake 3.2.2 on GNU/Linux in the near future (I have time now). Best regards, mabri From: Svetlana Watkins <svetlana.watk...@gmail.com> To: Matthew Brincke <mabr...@ymail.com> CC: "podofo-users@lists.sourceforge.net" <podofo-us

[Podofo-users] MinGW-w64 cross-build problem: windres not taking compiler options

2015-11-10 Thread Matthew Brincke
Hi all, a cross-build to Win32 on GNU/Linux using MinGW-w64 version 4.0.2-5 (i686-w64-mingw32-g++ (GCC) 4.9.2) breaks for me because of i686-w64-mingw32-windres not accepting the compiler arguments (-std and -W ones). Could anyone please help me (and possibly others like Svetlana Watkins) resolve

[Podofo-users] workaround for typedef conflict between Win32 and libjpeg headers

2015-11-10 Thread Matthew Brincke
Hi all, the proposed workaround (which I needed to get the library source code built with a MinGW-w64 cross-compiler from GNU/Linux) is attached, please review it and if accepted, please apply it (separately) to the public repository, otherwise please tell me why not. Best regards, mabri Index:

Re: [Podofo-users] tidying up PdfString documentation around deactivated lines before/affecting ToUnicode()

2015-11-04 Thread Matthew Brincke
mentation around deactivated lines before/affecting ToUnicode() On Tue, 2015-11-03 at 23:20 +, Matthew Brincke wrote: > I have attached a patch as per the subject to this e-mail. Hi, I wouldn't do this change. Adding TODO is something I'd not accept. Furthermore, the change is simply voi

[Podofo-users] typo fixes and clarification for FAQ list

2015-11-03 Thread Matthew Brincke
Hi all, I have attached a patch as per the subject to this e-mail. Please review it and if accepted, please apply it (separately) to the public repository, otherwise please tell me why not. Best regards, mabriIndex: FAQ.html ===

Re: [Podofo-users] Enabling C++98 Standard build also on Win32

2015-11-03 Thread Matthew Brincke
Hi all, please disregard the earlier post this belongs to (same Subject after the Re:). There I inadvertently left in some lines of a try to get a base-only build (with which I failed :-(, I'm no CMake expert, could you please help? I have attached a patch as per the subject to this e-mail. The

[Podofo-users] tidying up PdfString documentation around deactivated lines before/affecting ToUnicode()

2015-11-03 Thread Matthew Brincke
Hi all, I have attached a patch as per the subject to this e-mail. Please review it and if accepted, please apply it (separately) to the public repository, otherwise please tell me why not. Best regards, mabriIndex: src/base/PdfString.cpp

Re: [Podofo-users] unreachable-code and robustness fixes in PdfPagesTree::GetPageNode()

2015-10-16 Thread Matthew Brincke
PdfPagesTree::GetPageNode() On Sun, 2015-10-04 at 15:53 +, Matthew Brincke wrote: > You don't rely on outcome of a method call which has invalid > parameters, do you? Hi, maybe I'm missing something here, but I rather ask before committing your patch: If I apply it on top of revisio

Re: [Podofo-users] Integer-type querying fixes for CMakeLists.txt

2015-10-09 Thread Matthew Brincke
) patch has probably no effect on the type used (untested). Best regards, mabri - Original Message - From: Matthew Brincke <mabr...@ymail.com> To: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> CC: Sent: 20:35 Friday, 9 October 2015 Subject:

[Podofo-users] Integer-type querying fixes for CMakeLists.txt

2015-10-09 Thread Matthew Brincke
Hi all, I've attached a patch which should fix 64-bit integer type querying for compilers which neither have stdint.h (C99 types) nor BaseTsd.h (types introduced for 64-bit Windows). Sorry for not having tested it because I didn't want to submit personal and employer info to get a download link

[Podofo-users] Getting rid of non-standard Win32 specifics for timezone (AFAIK bug-compatible)

2015-09-30 Thread Matthew Brincke
Hello all, the attached patch does what it says in the title. Please review, if accepted, please apply, otherwise, please tell me why not. Some people may rely on PdfDate not supporting DST. Best regards, mabri Getting rid of non-standard Win32 specifics for timezone (AFAIK bug-compatible)

Re: [Podofo-users] Getting rid of non-standard Win32 specifics for timezone (AFAIK bug-compatible)

2015-10-01 Thread Matthew Brincke
- Original Message - From: zyx <z...@litepdf.cz> To: podofo-users@lists.sourceforge.net CC: Sent: 7:36 Donnerstag, 1.Oktober 2015 Subject: Re: [Podofo-users] Getting rid of non-standard Win32 specifics for timezone (AFAIK bug-compatible) On Wed, 2015-09-30 at 23:59 +, Matthew B

[Podofo-users] Method signature clarification for PdfFontFactory::CreateBase14Font()

2015-10-01 Thread Matthew Brincke
Hi all, attached to this e-mail is a patch which clarifies the parameters of PdfFontFactory::CreateBase14Font() in an effort to prepare the method for being documented (I'll do that too when I can just svn update to get this one). Please review this patch, if accepted, please apply it separately

Re: [Podofo-users] unreachable-code and robustness fixes in PdfPagesTree::GetPageNode()

2015-10-04 Thread Matthew Brincke
users@lists.sourceforge.net CC: Sent: 19:54 Friday, 2 October 2015 Subject: Re: [Podofo-users] unreachable-code and robustness fixes in PdfPagesTree::GetPageNode() On Sat, 2015-09-19 at 00:05 +, Matthew Brincke wrote: So I hope that the patch now makes the method so robust that you'll ac

Re: [Podofo-users] unreachable-code and robustness fixes in PdfPagesTree::GetPageNode()

2015-09-18 Thread Matthew Brincke
ory. Best regards, mabri - Original Message - From: zyx <z...@litepdf.cz> To: podofo-users@lists.sourceforge.net CC: Sent: 21:03, Tuesday, 1 September 2015 Subject: Re: [Podofo-users] unreachable-code and robustness fixes in PdfPagesTree::GetPageNode() On Wed, 2015-08-26 at 15:5

Re: [Podofo-users] Glyph Names? (PoDoFo::PdfFontMetrics::GetGlyphWidth)

2015-09-24 Thread Matthew Brincke
Hi, (my webmailer is to blame for the top-post, sorry) with the method  | virtual long PoDoFo::PdfFontMetrics::GetGlyphId | ( | long  | lUnicode | ) | const | you can get the Glyph ID for a given Unicode character value, according to the documentation (are you using the newest PoDoFo?Getting it

Re: [Podofo-users] Prohibit instantiation of factories (all methods static)

2015-11-29 Thread Matthew Brincke
tories (all methods static) On Fri, 2015-11-20 at 23:41 +, Matthew Brincke wrote: > a patch for that mentioned in the subject > is attached to this e-mail. Hi, what am I missing here? Those are just default constructors, created by the compiler; except of the one added to the priv

[Podofo-users] Fixing examples cross-build to Win32 from GNU/Linux

2015-12-05 Thread Matthew Brincke
Hi all, I contribute the attached patch for achieving what's in the subject. It's made to the current svn revision, please apply it before any older unapplied patch. I come around to zyx' discussion position, please see next e-mail. Best regards, mabri Index: CMakeLists.txt

Re: [Podofo-users] Configuring incomplete error while building PoDoFo for Microsoft Visual C++ 2008

2016-01-06 Thread Matthew Brincke
Hi, as I see from the error log (I have snipped it below, instead attached it, which you should have done, I hope I got it into its original form) you have tried to build PoDoFo without libpng. I know that in the documentation it still says it's optional, but I've seen it myself this part isn't

Re: [Podofo-users] Help required in installing Podofo into MAC system

2016-01-06 Thread Matthew Brincke
Hi, I see from the attachment (AFAIK it's better received on this list to attach error logs etc. as text instead of image) that FreeType wasn't found. That library is a required dependency (AFAIK also on MacOS X, still, I don't use a Mac and hope/d someone who does will help you if I'll fail to

[Podofo-users] Public API method names typo fixes & clarifications

2015-12-22 Thread Matthew Brincke
Hi all, this is the surprise I promised to you: because of health reasons I didn't get to it earlier (I'm sorry). In addition to the typo fixes and clarifications, e.g. about methods being getters (isn't that also in the PoDoFo CodingStyle?) I also fixed typos and some formatting in attribute

Re: [Podofo-users] Public API method names typo fixes & clarifications (now part 2)

2015-12-23 Thread Matthew Brincke
this is acceptable to you. Could you please apply/commit these changes before Christmas, or is the time too short for that? If so, I'm sorry, no problem. I wish you a merry Christmas (if you celebrate it or are Christian). Best regards, mabri - Original Message - From: Matthew Brincke <m

Re: [Podofo-users] Bug in GetMultiLineTextAsLines

2015-11-26 Thread Matthew Brincke
Hi, even though I'm not Christian Sakowski, I can do that conversion to a patch too, right ;-) ? I herewith disclaim all authorship and copyright in the code change described by the patch file attached to this e-mail, I only assume the transformation from what Christian Sakowski posted on this

Re: [Podofo-users] Prohibit instantiation of factories (all methods static)

2015-11-30 Thread Matthew Brincke
ovember, 2015 10:07 Uhr On Sun, 2015-11-29 at 23:16 +, Matthew Brincke wrote: > I have left off the implementation to also prevent it from > being instantiated from the inside (as IMHO there's really > no need to exist for any such instances).     Hi, yes, I understand

[Podofo-users] Fixes for FAQ dead/misleading links and typos

2015-11-19 Thread Matthew Brincke
Hi all, the patch containing the fixes mentioned in the title is attached to this e-mail. Please review and if accepted, please commit (separately) to the public repository, otherwise please tell me on-list why not. Best regards, mabri Index: FAQ.html

Re: [Podofo-users] MinGW-w64 cross-build problem: windres not taking compiler options

2015-11-19 Thread Matthew Brincke
-build problem: windres not taking compiler options On Sat, 2015-11-14 at 11:42 +, Matthew Brincke wrote: > @Reviewers/Committers: Could you please review the patches used by > Svetlana Watkins, and if accepted commit them (separately) to the > public repository, otherwise please tell me

Re: [Podofo-users] tidying up PdfString documentation around deactivated lines before/affecting ToUnicode()

2015-11-19 Thread Matthew Brincke
ge.net Sent: 7:19 Thursday, 5 November 2015 Subject: Re: [Podofo-users] tidying up PdfString documentation around deactivated lines before/affecting ToUnicode() On Wed, 2015-11-04 at 23:54 +, Matthew Brincke wrote: > So could you please accept this documentation patch, > or otherwise tel

[Podofo-users] Solving my cmake 3.2 build problems

2015-11-21 Thread Matthew Brincke
Hi all, a patch for that mentioned in the subject is attached to this e-mail. Please review, and if accepted, please commit (separately) to the public repository, otherwise please tell me on-list why not. It is build-tested without problems. Best regards, mabri Index:

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

2016-06-08 Thread Matthew Brincke
-users@lists.sourceforge.net Sent: Wednesday, 8 June 2016, 07:01 UTC Subject: Re: [Podofo-users] BUG: Erase method from PdfOutlineItem sometimes segfaults On Wed, 2016-06-08 at 00:01 +, Matthew Brincke wrote: > I intend to fix PdfOutlineItem::InsertChild() in time for the > impending release, so t

Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts)

2016-06-12 Thread Matthew Brincke
env) and commit. Best regards, mabri - Original Message - From: Matthew Brincke <mabr...@ymail.com> To: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> Sent: Friday, 10 June 2016, 16:12 UTC Subject: Re: [Podofo-users] Public API m

Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts)

2016-06-10 Thread Matthew Brincke
sage - From: Matthew Brincke <mabr...@ymail.com> To: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> Sent: Thursday, 9 June 2016, 21:35 UTC Subject: Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts) Hi a

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

2016-06-10 Thread Matthew Brincke
cleanly (only) then. Best regards, mabri - Original Message - From: Matthew Brincke <mabr...@ymail.com> To: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> Sent: Wednesday, 8 June, 2016, 12:34 UTC Subject: Re: [Podofo-users] BUG: Erase meth

Re: [Podofo-users] PoDoFo Webpage Updated

2016-06-10 Thread Matthew Brincke
Hi Dominik, the date given on the webpage contains a typo, the release happened on 8th June, not 6th June. The word "ware" is also a typo and should be "we". Could you please upload and link the svn log to the words "svn log" there, for the benefit of people wishing a searchable text form of

Re: [Podofo-users] podofo impose

2016-06-09 Thread Matthew Brincke
regards, mabri - Original Message - From: TIEN NGUYEN <tien.ngu...@konicaminolta.com> To: Matthew Brincke <mabr...@ymail.com>; "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> Sent: Thursday, 12 May 2016, 0:55 UTC Betreff: RE: [Podof

Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts)

2016-06-09 Thread Matthew Brincke
On Mon, Feb 1, 2016 at 10:07 AM, zyx <z...@litepdf.cz> wrote: On Sun, 2016-01-31 at 23:58 +, Matthew Brincke wrote: >> I read your other e-mail about a build error, AFAIK I have corrected it with >> the patch attached to this e-mail to be applied in addition to the both >

[Podofo-users] Preventing Win32 header clash with OpenSSL (was: Re: Building error PoDoFo)

2016-06-14 Thread Matthew Brincke
Hi all, IMHO the fix for this should be minimally invasive, like in the patch I've attached. I discovered I only needed to define NOCRYPT before PdfDefinesPrivate.h is included in PdfEncrypt.cpp, which is the only place where OpenSSL headers are included. I wrote it so that no other include is,

Re: [Podofo-users] Preventing Win32 header clash with OpenSSL (was: Re: Building error PoDoFo)

2016-06-14 Thread Matthew Brincke
by yourself? >Thanks, > Dominik Best regards, mabri On Tue, Jun 14, 2016 at 6:30 PM, Matthew Brincke <mabr...@ymail.com> wrote: Hi all, > >IMHO the fix for this should be minimally invasive, like in >the patch I've attached. I discovered I only needed to define >NOCRYPT be

Re: [Podofo-users] Preventing Win32 header clash with OpenSSL (was: Re: Building error PoDoFo)

2016-06-15 Thread Matthew Brincke
bug and avoid sending posts containing HTML to the list? >Thanks and best regards, > Dominik Best regards, mabri On Tue, Jun 14, 2016 at 10:16 PM, Matthew Brincke <mabr...@ymail.com> wrote: On Tue, 2016-06-14, 19:30 +, Dominik Seichter wrote: >>Hi Mabri,

Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts)

2016-06-15 Thread Matthew Brincke
, but according to the list server the whole message had 53692 bytes with a limit of 40 KB and was held therefore (I cancelled it). Go figure??! (expand-encoding?) On Mon, Jun 13, 2016 at 1:37 AM, Matthew Brincke wrote: Hi all, > >the documentation patch [...] contains typo fixes and

[Podofo-users] Build issue: Header collision between libjpeg (not turbojpeg) and the Win32 API

2016-06-01 Thread Matthew Brincke
Hi all, attached to this e-mail is a patch to fix the header collision. I'm sorry, because I have a tight deadline in studies (I need to do some scientific writing to be eligible for the degree), so I couldn't test (except with libturbojpeg, but there was no collision). With libjpeg (from IJG, at

Re: [Podofo-users] PoDoFo Webpage Updated

2016-06-14 Thread Matthew Brincke
rt" page (it's forum_name= instead of forum= there) and remove, or better reformulate, the section about the bug- tracker as isn't a working one for PoDoFo currently AFAIK. >Best regards, > Dominik P.S. I've sent you a direct e-mail. Please read and consider it. On Sat, Jun 11, 2016 at 1:38

Re: [Podofo-users] How to display a buffered PDF in a MFC window by using PODOFO?

2016-02-10 Thread Matthew Brincke
Hi, as can be read in the README of PoDoFo (URL http://sf.net/p/podofo/code/HEAD/tree/podofo/trunk/README.htmlto the current revision) it does no rendering, and AFAIK none is planned either.So if you accept copylefted software (GNU GPL'd in this case) you should look tothe poppler library, URL

Re: [Podofo-users] Public API method names typo fixes & clarifications (now both parts)

2016-01-31 Thread Matthew Brincke
To: podofo-users@lists.sourceforge.net Date: Friday, 15 January, 2016 18:22 On Wed, 2015-12-23 at 22:46 +0000, Matthew Brincke wrote: > attached to this e-mail is the second part of the API > changes     Hi, any API change is a pita. While it can be nice to have properly named functi

Re: [Podofo-users] Help Required to compile Podofo for Android

2016-01-31 Thread Matthew Brincke
Hi, did you know about this guide: http://kvurd.com/blog/compiling-a-cpp-library-for-android-with-android-studio/ ? Please note, though, that PoDoFo doesn't use configure (from autotools) any more, it uses cmake. So you'd have to use a toolchain file and CMake variables (maybe even instead of

Re: [Podofo-users] TTC Font Support

2016-02-17 Thread Matthew Brincke
Jaseem Ali K T wrote on Wednesday, 17 February 2016, 06:57 UTC: > Hi > > Thanks for the reply. > > I am not much familiar with release cycles and related info about PoDoFo. It > would > be very helpful if you can provide a date (maximum (and minimum :) ) no. of > days

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Matthew Brincke
On Thursday, 18 February 2016, 17:23 UTC, zyx wrote: > On Thu, 2016-02-18 at 16:43 +, Leonard Rosenthol wrote: >> In order to access system fonts, you will need to write a bunch of >> Mac-Specific platform code (similar to what exists for Win, IIRC). >> The code used to exist in PoDoFo,

Re: [Podofo-users] My Previous code is not working

2016-02-10 Thread Matthew Brincke
Hi Balbir Kumar, please give full version (if from a version control repository, also revision)numbers and the distribution/repository/download link you got the librariesfrom, otherwise it's AFAIK next to impossible to properly help you. Why did you do something with the Tf operator, and what is

Re: [Podofo-users] Getting PdfVariant more DRY with const_cast

2016-03-19 Thread Matthew Brincke
On Thu, 2016-02-18 at 08:36 +, zyx wrote: > On Wed, 2016-02-17 at 23:32 +0000, Matthew Brincke wrote: >> the attached is for removing some duplications in PdfVariant >> with the help of const_cast. > >Hi, Hi, sorry for the long (almost a month of 30 days) delay

[Podofo-users] little oversight in PdfString: little-endian UTF-16 Unicode handling

2016-03-21 Thread Matthew Brincke
Hi all, I've found a little oversight in PdfString::Init()'s little-endian UTF-16 Unicode handling. I have attached a patch for it. It's so simple I hope it's OK to not have tested it (I've still got little opportunity for it, sorry). Please review and if accepted, please commit it separately to

Re: [Podofo-users] Destination with Pdf Name object

2016-04-24 Thread Matthew Brincke
nvincing reasons for that being no bug. To give you time for this I'll tend to another PoDoFo issue first, I hope today. Best regards, mabri - Original Message - From: Jaseem Ali K T <jaseemal...@hcl.com> To: Matthew Brincke <mabr...@ymail.com>; "podofo-users@lists.sourceforge.

[Podofo-users] Abolishing no-longer-useful CMake module from PoDoFo

2016-04-26 Thread Matthew Brincke
Hi PoDoFo developers, I have attached a patch to this e-mail to abolish a CMake module from PoDoFo which was used for CMake 2.4 to get a functionality of CMake 2.5, but as the trunk/CMakeLists.txt specifies CMake 2.6 as minimum version, the module is no longer useful. It is

Re: [Podofo-users] Patches for font encoding and digital signatures

2016-04-26 Thread Matthew Brincke
ok. My mistake, sorry. J. Rokos On Thu, Apr 21, 2016 at 5:07 PM, zyx <z...@litepdf.cz> wrote: On Wed, 2016-04-20 at 16:07 +0000, Matthew Brincke wrote: >> There are some bad spelling mistakes in it ("Cerifiacion" instead of >> the correct "Certification"), s

[Podofo-users] PNG library-finding fix for build system

2016-04-26 Thread Matthew Brincke
Hi PoDoFo developers, I have found a problem which causes libpng not to be found even if it's available: the module FindPNG.cmake of the system cmake (I have version 3.0.2 here) seems to include the system FindZLIB.cmake only, even with CMAKE_MODULE_PATH set and CMP0017 policy set to NEW (as is

Re: [Podofo-users] Destination with Pdf Name object

2016-04-29 Thread Matthew Brincke
On Sun, Apr 24, 2016, 15:57 UTC, I (mabri) wrote: > Associating a string with a destination and writing it into a document > (of at least version PDF 1.2) is done by the (abstract base class) method > PdfDocument::AddNamedDestination(const PdfDestination & rDest,

Re: [Podofo-users] [Fwd: [Podofo-svn] ttc-Font support Patch]

2016-04-29 Thread Matthew Brincke
Hi, please find a formatting (mostly detabification, I'm not sure about what I did to the "if" on lines 176 and 208) fix to r1716 and a TIFF warnings fix to r1715 attached, review, apply and commit them separately to the public repository (I was astounded that you, Dominik, accepted the patches

Re: [Podofo-users] Destination with Pdf Name object

2016-04-21 Thread Matthew Brincke
Hi Ali, hi PoDoFo developers, in the documentation for the PoDoFo class PdfDestination I haven't seen string support either. Where did you get that from, please? With a better understanding of this I might be able to produce a patch to add what you require (I'm sorry for answering so late), so

Re: [Podofo-users] PoDoFo 0.9.4 Release planned for June 1st

2016-04-21 Thread Matthew Brincke
On 2016-04-18 18:54:44 +, Dominik Seichter wrote: > Hello, Hello Dominik, hello zyx, > Zyx approached me and we agreed to plan a new release of PoDoFo. > I plan to introduce a code freeze starting on May 18th and package > a new release of PoDoFo with version 0.9.4 on June 1st 2016. >

[Podofo-users] Getting rid of warnings about printf()/sscanf() format strings

2016-04-21 Thread Matthew Brincke
Hi all, I'd like to submit a patch for that (-Wformat= warnings), but I think I should ask you about the course to take: correct the format strings (I'd omit those concerning pdf_long values, that's another matter, I think, because AFAIK pdf_long is deprecated/should be removed anyway, in a

[Podofo-users] Explanation for my PdfDestination bugfix of the replied-to e-mail (was: Re: Destination with Pdf Name object)

2016-04-29 Thread Matthew Brincke
On Sun, Apr 24, 2016, 15:57 UTC, I (mabri) wrote: > Associating a string with a destination and writing it into a document > (of at least version PDF 1.2) is done by the (abstract base class) method > PdfDocument::AddNamedDestination(const PdfDestination & rDest,

Re: [Podofo-users] Trivial cleanup patch (from Joerg Sonnenberger)

2016-04-29 Thread Matthew Brincke
Hi, I have converted the patch to "svn diff" format and attached the result to this e-mail. Of course it remains the patch of Jörg Sonnenberger. Could you (a PoDoFo committer) please apply and commit it for him? Please mention in the commit message it removes duplicate code in PdfVariant from

Re: [Podofo-users] Outline erase method causes segmentation fault

2016-04-30 Thread Matthew Brincke
Hi, please find my proposed fix attached, review it and if you are a PoDoFo committer, please accept and commit it (filename gives hint for message) separately to to the public repository. I have added reference counting to avoid deleting objects which are still in the data structure. Best

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

2016-05-23 Thread Matthew Brincke
On Mon, 2016-05-23 at 13:58 +, zyx wrote: > On Mon, 2016-05-09 at 15:25 +0000, Matthew Brincke wrote:>> -if( m_pPrev > && m_pNext ) >> +if( m_pPrev ) >> { >> -m_pPrev->SetNext( m_pNext ); >> +m_pPrev->SetN

Re: [Podofo-users] Code/Feature Freeze - PoDoFo 0.9.4 Release planned for June 1st

2016-05-18 Thread Matthew Brincke
On Wed, 2016-05-18 at 14:24 +, Dominik Seichter wrote: > Hello everyone, > > As announced previously, there will be a code freeze in place on PoDoFo > Repository FROM NOW ON. This is to be understood as a > feature freeze and also only critical bugs or build issues should be fixed > from

Re: [Podofo-users] podofo impose

2016-05-11 Thread Matthew Brincke
Dear Tien, in order to properly help you, we need some additional information: Which version of PoDoFo do you use (if you got it from svn, please also give the revision)? Which operating system (and version, if applicable also distribution)? Which imposition plan did you get the problem with? If

Re: [Podofo-users] SetPageWidth and SetPageHeight

2016-05-17 Thread Matthew Brincke
On Thu, 2016-03-24, 13:26 +, Jaseem Ali K T wrote: > Hi all > > While PoDoFo’s get function subtract the left and bottom values to give the > actual > height and width, PoDoFo set functions do not add them while setting the > values. Hi all, > So if a page has value other than zero

Re: [Podofo-users] Destination with Pdf Name object

2016-05-17 Thread Matthew Brincke
On Wed, 2016-04-27, 17:47 +, Jaseem Ali K T wrote: > Hi mabri, >> What I want is to read destinations(bookmarks) from PDF documents. > Though I would prefer later PDF versions to be my input (later than 1.2), > I guess even later PDF version could be produced with backward compatibility >

Re: [Podofo-users] Underflows in PdfString::GetLength, PdfString::GetUnicodeLength, PdfString::GetCharacterLength

2016-05-17 Thread Matthew Brincke
On Sun, 2016-05-08 at 17:46 +, zyx wrote: > On Sat, 2016-05-07 at 09:29 -0500, Mark Rogers wrote:>> Is the behaviour in > PdfString intentional or should it be patched as >> below? > Hi, > (mostly :) ) no bug is intentional, one change had been done in > revision 610 and one at

Re: [Podofo-users] Patch for TTF font character spacing

2016-05-06 Thread Matthew Brincke
On Wed, 2016-05-04 at 17:00 +, zyx wrote: > On Fri, 2016-04-29 at 15:22 +0200, Josef Rokos wrote: >> in attachment is patch for correct character spacing when using >> TrueType fonts. Method PdfFontSimple::Init has generated array of >> widths but for first 255 glyphs in font regardless of

Re: [Podofo-users] Patches for font encoding and digital signatures

2016-04-20 Thread Matthew Brincke
Hi zyx, hi Josef, On Sun, 2016-04-17 at 19:42 +0200, zyx wrote: > On Fri, 2016-04-15 at 11:03 +0200, Josef Rokos wrote:>> In > signature_field.patch I added support for PDF document >> certification and filling "Location" attribute in signature details. > > Hi, > thanks for the patches.

Re: [Podofo-users] Get Object from Reference is PdfArray?

2016-04-20 Thread Matthew Brincke
Hi Tom, the references in the PdfArray are stored as PdfReference instances, so to get to the objects (PdfObject instances) referenced, you need to do the following (more details in the documentation): // I assume my_pdf_doc to be of type PdfMemDocument // put the following line instead of your

Re: [Podofo-users] Get Object from Reference is PdfArray?

2016-04-20 Thread Matthew Brincke
Hi Tom, I'm so sorry, I should have double-checked before sending: my_pdf_object needs to be a pointer, not a reference type, but the rest is correct: The references in the PdfArray are stored as PdfReference instances, soto get to the objects (PdfObject instances) referenced, you need to do

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

2016-07-14 Thread Matthew Brincke
, mabri - Original Message - From: zyx <z...@litepdf.cz> To: podofo-users@lists.sourceforge.net Sent: Wednesday, 13 July 2016, 17:30 UTC Subject: Re: [Podofo-users] BUG: Erase method from PdfOutlineItem sometimes segfaults On Fri, 2016-06-10 at 23:30 +, Matthew Brincke wrot

Re: [Podofo-users] Pdf with more than one page

2016-06-30 Thread Matthew Brincke
Hi, AFAIK podofoimpose doesn't support more than one file as input, so please use podofomerge (or another PDF document merging tool) first, and then use podofoimpose to impose the pages of the merged document onto the output PDF document. Best regards, mabri

Re: [Podofo-users] MultiLineText Improvements

2016-06-30 Thread Matthew Brincke
Hi all, I don't think the patch should be applied as-is, because it has a wrong indentation length (AFAICS 7 spaces, but the CodingStyle says 4 spaces), very long lines and I think the two changes (the former one and the new) should be committed separately, as they're two distinct logical

Re: [Podofo-users] reading polish characters using PoDoFo

2017-02-11 Thread Matthew Brincke
Hi all, hello Etienne, I'd like to give some comments about the patches: - PdfEncoding::GetUnicodeValue() is protected, yes, but the parameter name "value" is missing (it looks in the header file as if it's unused). - The loop in the method is (at least) strongly recommended to be a "while"

Re: [Podofo-users] 0.9.5 regression, pdfImage.GetObject()->GetDictionary() throws exception

2017-02-10 Thread Matthew Brincke
Hi all, I'm not using my Yahoo account anymore, also because of the break-in. > Sandro Mani has written on February 10, 2017 at 14:37: > On 08.02.2017 11:21, Sandro Mani wrote: > > > > > > However I can't reproduce it with the static library though, so it is > >

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

2017-03-01 Thread Matthew Brincke
Hi zyx, hi all, Matthew Brincke <ma...@mailbox.org> has written on 28 February 2017 at 00:27: > > Hi zyx, hi all, > > I'm very sorry to have overlooked that problem with the check > for an item being in the same tree already. > I'm still interested in fixi

Re: [Podofo-users] CVE fix proposal

2017-02-28 Thread Matthew Brincke
Hi zyx, hi all, > zyx <z...@litepdf.cz> has written on 28 February 2017 at 08:38: > > > On Tue, 2017-02-28 at 00:14 +0100, Matthew Brincke wrote: > > I haven't completed testing yet > > Hi, > thanks for the patch. Just from a quick read of the proposed ch

[Podofo-users] Stack Overflow in PoDoFo::PdfParser::ReadXRefStreamContents()

2017-02-28 Thread Matthew Brincke
Hi all, I'm not replying because my mailer didn't let me (also I didn't receive the mail to reply to it). That looks like it should be handled by TCO (tail-call optimization) but the call to PoDoFo::PdfParser::ReadXRefContents() is in an exception-handling try block. Maybe there is some way

[Podofo-users] CVE fix proposal

2017-02-27 Thread Matthew Brincke
Hi all, attached to the e-mail is a patch which I propose to fix CVE-2017-5853 and maybe also CVE-2017-5855. I haven't completed testing yet, but I have also already seen by running some test code, also attached, that my patch catches the bogus xref subsection start in the reproducer PDF

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

2017-02-27 Thread Matthew Brincke
on such until then. Best regards, mabri > zyx <z...@litepdf.cz> has written on 26 February 2017 at 19:59: > > On Sat, 2016-07-16 at 20:44 +0200, zyx wrote: > > > On Thu, 2016-07-14 at 23:58 +, Matthew Brincke wrote: > > > > > I haven't changed the ch

Re: [Podofo-users] Issues running cmake podofobrowser

2016-08-31 Thread Matthew Brincke
Hi all, is podofobrowser really supposed to still build (and run) correctly with the current PoDoFo version? I know it needs Qt 4 ... I haven't been posting for the last 1.5 months because I've had much to do for studies and high load at my job, I'd like to post a patch which really corrects the

Re: [Podofo-users] CVE fix proposal

2017-04-09 Thread Matthew Brincke
the graphics stack from being accessed when empty, throwing an exception then.) What I mentioned about GCC 5.2.1 UBSan is also still true. Best regards, mabri Matthew Brincke <ma...@mailbox.org> has written on 9 April 2017 at 23:17: > > Hi zyx, hi all, > > I've re

Re: [Podofo-users] CVE fix proposal

2017-04-09 Thread Matthew Brincke
me, please). I, like Mark, also haven't tested if it actually fixes CVE-2017-5855, if it wouldn't, please still accept it for fixing the other two.) Best regards, mabri zyx <z...@litepdf.cz> has written on 9 April 2017 at 13:33: > > On Sat, 2017-04-08 at 18:32 +0200, Matthew B

Re: [Podofo-users] Mac ".dfont" support

2017-04-09 Thread Matthew Brincke
Hi all, that old code in src/doc/PdfFontMetrics.cpp uses the MacOS X Carbon Resource Manager, which is deprecated in MacOS X 10.8 as part of Carbon Core, subframework of Core Services. Please see:

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

2017-03-11 Thread Matthew Brincke
Hi all, zyx <z...@litepdf.cz> has written on 2 March 2017 at 07:48: > On Thu, 2017-03-02 at 00:00 +0100, Matthew Brincke wrote: > > > I'm sorry that have only build-tested it a bit yet, still I'm submitting > > the patch to PdfOutlineItem to correct memory management

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

2017-03-11 Thread Matthew Brincke
due to security policy). I don't know if I'll have time to work on those, if I'm not posting next week or so, could you please take it up from there? Best regards, mabri > Matthew Brincke <ma...@mailbox.org> has written on 12  March 2017 at 00:38: Hi all, zyx <z...@litepdf.cz> h

Re: [Podofo-users] Appending PDF: Embedded files of appended file not accessible in result pdf

2017-03-11 Thread Matthew Brincke
Hi F. E., hi all, yes, I think (AFAIK) that the references in the name trees from the appended doc need to be corrected for the appended-to one. Best regards, mabri > "F. E." has written on 9 March 2017 at 15:25: > > I digged into the podofo source code a bit and found

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

2017-03-12 Thread Matthew Brincke
in my patch. Best regards, mabri P.S. Please disregard the foreign language in my last post, that was through using some "quick answer" feature in a mis-configured mail client, it's corrected here. > Matthew Brincke <ma...@mailbox.org> has written on 13 March 2017 at 00:00:

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

2017-03-12 Thread Matthew Brincke
Hi all, I found now that PdfOutlines.cpp lines 82 and 90 are highly suspect memory leaks, not anywhere I touched. Best regards, mabri > Matthew Brincke <ma...@mailbox.org> hat am 12. März 2017 um 00:48 geschrieben: > > > Hi all, > > one addendum: that's what I've come u

Re: [Podofo-users] PDF FileSpec

2017-03-01 Thread Matthew Brincke
Hi zyx, hi all, zyx has written on 16 February 2017 at 18:56: > > On Thu, 2017-02-02 at 08:49 +0300, Nikita Shlyapnikov wrote: > > > Dots should not be replaced in the strings stored in the "F" key of > > a FileSpec dictionary. > > Hi, > why do you think so, please? > > PDF

Re: [Podofo-users] polish chars to pdf

2017-03-07 Thread Matthew Brincke
Hi, I have some comments: frydery...@gmail.com has written on 7 March 2017 at 13:00 CET: > > Hi, > > This time I got problem while drawing PdfString that contains > polish signs to pdf file. > > I found solution on SO, but it doesn't work for me. Please give the question title and URL: Which

Re: [Podofo-users] CVE fix proposal

2017-04-07 Thread Matthew Brincke
<z...@litepdf.cz> has written on 28 February 2017 at 08:38: > > On Tue, 2017-02-28 at 00:14 +0100, Matthew Brincke wrote: > > > I haven't completed testing yet > > Hi, > thanks for the patch. Just from a quick read of the proposed change: > > > * const

Re: [Podofo-users] cppunit 1.14 requires C++11, but PoDoFo enforces C++98

2017-07-31 Thread Matthew Brincke
to prevent introducing changes not supported by those. IDK what's currently supported, any info, please? There's a mailing list post [1] about the change which doesn't give that info: "Re: [Podofo-users] 0.9.5 regression, pdfImage.GetObject()->GetDictionary() throws exception". Best r

  1   2   >