Re: [Podofo-users] Podofosign: Error to decode private key

2021-02-19 Thread ainch
Hi, Maybe of certificate. An example could be: podofosign -in prueba.pdf -cert cert.pem -pkey private.pem -out prueba.sign.pdf I attach the files used in the example. El 2021-02-19 10:03, Abhishek Nag escribió: > Hi, > > Different format of what?? > > Abhishek > > On Fri, 19 Feb 202

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Michal Sudolsky
> > > 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. > > I am not so sure whether this is a good idea. Actually PDFs with EI without whitespace may be more prevalent than PDFs which con

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 just after the stream a

Re: [Podofo-users] Podofosign: Error to decode private key

2021-02-19 Thread Abhishek Nag
Hi, Different format of what?? Abhishek On Fri, 19 Feb 2021, 15:00 zyx, wrote: > On Thu, 2021-02-11 at 18:31 +0100, Abhishek Nag wrote: > > Failed to decode private key file 'privateKey.pem' > > 139816130314304:error:06065064:digital envelope > > routines:EVP_DecryptFinal_ex:bad decrypt:../cry

Re: [Podofo-users] Podofosign: Error to decode private key

2021-02-19 Thread zyx
On Thu, 2021-02-11 at 18:31 +0100, Abhishek Nag wrote: > Failed to decode private key file 'privateKey.pem' > 139816130314304:error:06065064:digital envelope > routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583: > 139816130314304:error:23077074:PKCS12 > routines:PKCS12_pbe_crypt:p

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Michal Sudolsky
> > > > 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. > > Your image data are longer than

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 à 12:

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Michal Sudolsky
> 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. > > I think it would be better but it may not parse valid pdf because it seems that whitespace before EI is not required. > Christ

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 this is a rare case as t

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Michal Sudolsky
Hi, > I agree with you but this is a rare case as the PDF generators never > generate such a sequence. > It is just that the probability for something like " EI " is small (smaller than "EI" at the end) but it can happen. I doubt that generators are actively trying to avoid that. Also I see not

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 /RGB /BPC 8 > ID > 0z

Re: [Podofo-users] Patch for image reading

2021-02-19 Thread Michal Sudolsky
Hi, This should be better than it was. But I have another example: BI /W 4 /H 4 /CS /RGB /BPC 8 ID 0z0z00zzz00z0zzz0zz EI aazazaazzzaazazzzazzz EI On Fri, Feb 19, 2021 at 10:28 AM Christophe wrote: > Hello all, > > Please find as attachment a patch to better read inline images. > > The im

[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 mailing list Podof