Re: [Podofo-users] PdfFontMetricsFreetype::CharWidth

2021-05-11 Thread Christophe
t the right computation. Christophe Le mar. 11 mai 2021 à 18:03, Michal Sudolsky a écrit : > > > On Tue, May 11, 2021 at 5:49 PM Christophe wrote: > >> Michal, >> >> It means we can't directly call function *SetFontCharSpace* with Tc ? We >> have t

Re: [Podofo-users] PdfFontMetricsFreetype::CharWidth

2021-05-11 Thread Christophe
Michal, It means we can't directly call function *SetFontCharSpace* with Tc ? We have to make a computation based on font size in our applicative code. In this case, could you please elaborate and provide us the right transformation from Tc to FontCharSpace ? Thank you Christophe Le ma

Re: [Podofo-users] PdfFontMetricsFreetype::CharWidth

2021-05-11 Thread Christophe
FontScale() / 100.0; Are you sure of that ? In PDF format, the font char space (Tc) is given in PDF units, not in percent. Does it mean, we have to transform this Tc value into percent before affecting the m_fFontCharSpace variable ? If yes, how shall we do that ? Thank you for your help Christophe L

[Podofo-users] PdfFontMetricsFreetype::CharWidth

2021-05-10 Thread Christophe
c_cast( this->GetFontSize() * this->GetFontScale() / 100.0 * this->GetFontCharSpace() / 100.0); } The Char Space is divided by 100.0 and I think it is an error as it is not the case for PdfFontMetricsObject::CharWidth, nor for PdfFontMetricsObject::CharWidth. What do you think ? Thank

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Christophe
OK Michal, I understand what you mean but I still think it is better to have this fix than keeping the old piece of code. I let the administrators decide what to do. Christophe Le ven. 19 févr. 2021 à 14:48, Michal Sudolsky a écrit : > >> >> I've tried to write the EI j

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Christophe
Michal, I've tried to write the EI just after the stream and it does not work in Acrobat. So, I think the whitespace before EI is really mandatory. Please find my example as attachment if you want to verify on your own. Remove the CR before EI at line 40. Christophe Le ven. 19 févr. 2021

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Christophe
Michal, I understand you try to find the corner-case where it will fail again. So, let's just consider for the moment that this code is better than the previous one. Christophe Le ven. 19 févr. 2021 à 12:13, Michal Sudolsky a écrit : > Hi, > > >> I agree with you but th

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Christophe
Hi Michal, I agree with you but this is a rare case as the PDF generators never generate such a sequence. Christophe Le ven. 19 févr. 2021 à 10:50, Michal Sudolsky a écrit : > Hi, > > This should be better than it was. But I have another example: > > BI /W 4 /H 4 /CS /

[Podofo-users] Patch for image reading

2021-02-19 Thread Christophe
Hello all, Please find as attachment a patch to better read inline images. The image was read until 'EI^Kjs8Vops7u]pq>^Kjs8Vlns7lTnq#:EI". Regards, Christophe PdfContentsTokenizer.cpp.patch Description: Binary data ___ Podofo-users

Re: [Podofo-users] Novice question but would greatly appreciate help!

2020-08-13 Thread Christophe
Hello Dmitri, You need both the DLL for execution and the include/lib files for compilation/link. If you are on Windows, you can use http://gnuwin32.sourceforge.net/packages.html as a source link for download. Regards, Christophe Le mer. 17 juin 2020 à 23:34, Dmitri Korin a écrit : > He

Re: [Podofo-users] Patch for new tool to remove watermarks

2020-08-13 Thread Christophe
Ah OK, it is in a dedicated tool. So, ignore my previous e-mail. Regards, Christophe Le jeu. 13 août 2020 à 19:43, Ivan Romanov via Podofo-users < podofo-users@lists.sourceforge.net> a écrit : > > I agree with you, zxy. This is not the purpose of the PoDoFo library > > to fi

Re: [Podofo-users] Patch for new tool to remove watermarks

2020-08-13 Thread Christophe
application using the library. Regards, Christophe Le mer. 12 août 2020 à 09:29, zyx a écrit : > On Sun, 2020-08-09 at 22:53 +0500, Ivan Romanov via Podofo-users wrote: > > Hi guys. I wrote a patch and opened a ticket on SF. Seems its not > > actived so I duplicate this

[Podofo-users] Fwd: PdfFontFactory: DescendantFonts can be an array containing a Dictionary

2019-10-21 Thread Christophe
look at my attached patch ? I've tried to attached a PDF example but it is a bit too big and has been moderated. Thank you in advance for your help Regards, Christophe Index: PdfFontFactory.cpp === --- PdfFontFactory.cpp (revision

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

2019-10-21 Thread Christophe
Hello Matthew, I've contributed at the beginning of the month but it seems my e-mail was lost somewhere. I will post it again. Regards, Christophe Le dim. 20 oct. 2019 à 23:01, Matthew Brincke a écrit : > Hello all, > > I designate the special revision 2000 for docume

[Podofo-users] PdfFontFactory: DescendantFonts can be an array containing a Dictionary

2019-10-01 Thread Christophe
e but it is a bit too big and has been moderated. Thank you in advance for your help Regards, Christophe PdfFontFactory.cpp.patch Description: Binary data ___ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users

[Podofo-users] FontDescriptor with FontFile

2019-04-08 Thread BLANCHARD Christophe
key from FontDescriptor object ? Or if somebody can help me to start this enhancement ? Thank you in advance for your answers. Cordialement/Best Regards, Christophe Blanchard This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed

Re: [Podofo-users] Issue with Encoding dictionary

2019-02-21 Thread BLANCHARD Christophe
Hello Michal, I think it will always work as base encoding is always based on tables of 256 characters (see PdfEncoding.cpp or Appendix D of PDF Reference document) and the input string shall be a 8-bits character string. Cordialement / Best Regards, Christophe BLANCHARD CATIA Systems

Re: [Podofo-users] Issue with Encoding dictionary

2019-02-21 Thread BLANCHARD Christophe
Hello All, I've managed to fix my issue. Please find my proposed patch as attachment. Thank you Cordialement/Best Regards, Christophe Blanchard De : BLANCHARD Christophe Envoyé : vendredi 23 novembre 2018 23:50 À : podofo-users@lists.sourceforge.net Objet : [Podofo-users] Issue with Enc

[Podofo-users] Unknown font encoding

2019-02-21 Thread BLANCHARD Christophe
Hello all, A patch to fix an unknown font encoding named “SymbolSetEncoding”. I’ve mapped this encoding on already existing “SymbolEncoding”. I can’t furnish a test case as it is a customer test case. Thank you to take into account. Cordialement/Best Regards, Christophe Blanchard This email

[Podofo-users] Issue with Encoding dictionary

2018-11-23 Thread BLANCHARD Christophe
red such a problem? Thank you in advance for your help. Cordialement/Best Regards, Christophe Blanchard This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the na

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

2018-11-01 Thread BLANCHARD Christophe
I fully agree with that. Cordialement/Best Regards, Christophe Blanchard -Message d'origine- De : zyx Envoyé : jeudi 1 novembre 2018 11:09 À : podofo-users@lists.sourceforge.net Objet : Re: [Podofo-users] Patch to handle indirect ID in trailer On Wed, 2018-10-31 at 23:14 +0100, Ma

Re: [Podofo-users] Password protected document

2018-10-25 Thread BLANCHARD Christophe
Hello Francesco, I've just tested your patch on another password protected PDF file and it also works fine. I hope your patch will be quickly integrated in the trunk. So, thank you very much for your help in resolving this issue. Cordialement/Best Regards, Christophe Blanchard -Me

Re: [Podofo-users] Read ICCBased color space

2018-10-25 Thread BLANCHARD Christophe
is case, I think a new class PdfColorSpace shall be created to replace both ColorSpace class and EPdfColorSpace enum. Cordialement/Best Regards, Christophe Blanchard De : BLANCHARD Christophe Envoyé : jeudi 26 juillet 2018 17:07 À : podofo-users@lists.sourceforge.net Objet : [Podofo-users] Rea

Re: [Podofo-users] Read ICCBased color space

2018-10-24 Thread BLANCHARD Christophe
is case, I think a new class PdfColorSpace shall be created to replace both ColorSpace class and EPdfColorSpace enum. Cordialement/Best Regards, Christophe Blanchard De : BLANCHARD Christophe Envoyé : jeudi 26 juillet 2018 17:07 À : podofo-users@lists.sourceforge.net Objet : [Podofo-users] Rea

Re: [Podofo-users] Password protected document

2018-10-24 Thread BLANCHARD Christophe
Hello Francesco, I've just tested your patch on another password protected PDF file and it also works fine. I hope your patch will be quickly integrated in the trunk. So, thank you very much for your help in resolving this issue. Cordialement/Best Regards, Christophe Blanchard -Me

Re: [Podofo-users] Password protected document

2018-09-17 Thread BLANCHARD Christophe
Hello Everybody, Any answer to my request. Thank you in advance, Cordialement/Best Regards, Christophe Blanchard -Message d'origine- De : BLANCHARD Christophe Envoyé : mercredi 5 septembre 2018 17:10 À : Patrice Guérin ; Matthew Brincke ; podofo-users@lists.sourceforge.net Objet

[Podofo-users] Password protected document

2018-09-03 Thread BLANCHARD Christophe
d) Line 425 C++ The call returning an error in PdfEncrypt.cpp is at line 400: status = EVP_DecryptUpdate( aes, pBuffer, &lOutLen, pBuffer + AES_IV_LENGTH, lLen - AES_IV_LENGTH ); Thank you in advance for your help. Cordialement/Best Regards, Christophe Blanchard This email and

[Podofo-users] Read ICCBased color space

2018-07-29 Thread BLANCHARD Christophe
Hello all, Has anybody tried to read ICCBased color space. I can see it is not implemented in PoDoFo today. Thank you in advance, Best Regards, Christophe Blanchard This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be

[Podofo-users] Compiled version of PoDoFo library for Windows

2018-06-25 Thread BLANCHARD Christophe
vance for your precious help. Cordialement/Best Regards, Christophe Blanchard This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received

[Podofo-users] LIBCRYPTO/OpenSSL integration

2018-04-10 Thread BLANCHARD Christophe
quot;%FTLIBDIR%;%FTDIR%\lib;%PNGDIR%\lib;%ZLIBDIR%\lib;%LIBCRYPTODIR%\lib" -DPODOFO_BUILD_SHARED:BOOL=FALSE -DFREETYPE_LIBRARY_NAMES_DEBUG=freetype239MT_D -DFREETYPE_LIBRARY_NAMES_RELEASE=freetype239MT Could somebody help me to fix this issue, please ? Thank you in advance. Christophe BL

[Podofo-users] Patch for GetFromResources to load colorspace

2018-02-11 Thread BLANCHARD Christophe
fReference & ref = pObj->GetReference(); return this->GetObject()->GetOwner()->GetObject( ref ); } return pObj; // END } } re

[Podofo-users] sound annotation

2017-12-04 Thread Christophe Mertens
gards, Christophe PdfPage * pdfPage= _pdfDocument->GetPage(pageNum); PdfObject pSound; pdfPage->GetContents()->GetDictionary().AddKey(PdfName("B"),PdfVariant(static_cast(8))); pdfPage->GetContents()->GetDictionary().AddKey(PdfName("R"),PdfVariant(s

[Podofo-users] Compiling PodofoBrowser fails on OSX Mavericks 10.9.2

2014-05-13 Thread Christophe Meyer
e2 (I have to specify him where to find ft2header.h)then I do a make and here is the message I get what is in the file attached : exit_make.rtfAm I doing something wrong? Or is it a known issue? Thanks,Christophe{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf190 {\fonttbl\f0\fnil\fcharset0 Menlo-Reg

Re: [Podofo-users] How to reduce Pdf size

2014-05-08 Thread Christophe Meyer
find an answer to my problem, I will share it to you. Christophe Le 7 mai 2014 à 07:59, podofo-users-requ...@lists.sourceforge.net a écrit : > Send Podofo-users mailing list submissions to > podofo-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wid

[Podofo-users] How to reduce Pdf size

2014-05-04 Thread Christophe Meyer
images in the file and no strings attached. Isn’t it a problem of bad compression of the image? Then How should I proceed? I am really sorry for the dumb question but as you can see, I am a beginner in C++. I will really appreciate any kind of help. Christophe