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

2020-08-14 Thread Ivan Romanov via Podofo-users
> On Thu, 2020-08-13 at 20:57 +0200, Michal Sudolsky wrote:
> > I am just curious so who is now the decision maker for podofo?  
> 
>   Hi,
> as far as I know, it's still Dominik, the PoDoFo author.

Is he still active? Him last commit and message in list was in February
2019. 


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


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

2020-08-13 Thread Ivan Romanov via Podofo-users
> I agree with you, zxy. This is not the purpose of the PoDoFo library
> to filter anything from the original PDF file. Suppose you want to
> use the library to know whether watermarks are present or not, you
> need watermarks as input.

PoDoFo allready has tools which modify pdfs. Take a look to
podofocrop for example or podofomerge or anything else. Why some tools
is OK but other not OK in such case?

> I had to do that in my own program and for me it is part of the
> 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 too.
> > > https://sourceforge.net/p/podofo/tickets/102/  
> >
> > Hi,
> > I'm not sure I'd "approve" such tool. The watermarks have their
> > intention/usage, removing them might "break" the intention. I'm not
> > the decision maker here, I'm just saying my personal opinion.
> > Bye,
> > zyx


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] PoDoFoBrowser new life

2020-08-12 Thread Ivan Romanov via Podofo-users
> On Wed, 2020-08-12 at 09:43 +0500, Ivan Romanov via Podofo-users
> wrote:
> > As PoDoFoBrowser is not maintain through a very long time it forked
> > on github https://github.com/KubaO/podofobrowser. Atm no changes UI
> > or behaviour of application. All changes only to add support Qt5 and
> > modern compilers. Also dropped STLPort. I believe it's dead and not
> > used in modern OSes. So I ask to place link to github repo anywhere
> > in PoDoFo readme. In really old SF PoDoFoBrowser can't be compiled
> > with Qt5.  
> 
>   Hi,
> I do not think upstream should reference any random downstream forks
> of itself. If the code is good enough it, should be proposed by the
> fork owner and eventually merged back to the upstream repository
> instead. Bye,
>   zyx

No problem. You got the link. You can merge commits back. I just thought
PoDoFoBrowser is dead and no supported anymore.


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


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

2020-08-12 Thread Ivan Romanov via Podofo-users
> 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 too.
> > https://sourceforge.net/p/podofo/tickets/102/  
> 
>   Hi,
> I'm not sure I'd "approve" such tool. The watermarks have their
> intention/usage, removing them might "break" the intention. I'm not
> the decision maker here, I'm just saying my personal opinion.

Any tool for any changing (not only in PDF) can '"break" the
intention'. If you think that removinh optional contens is always bad
purposes tool. It's not so. In my personal case I dropped the big red
ARCHIVE from every page. But first page contains still contains
warning about current state of document. This ARCHIVE obstructs me to
read document. Often watermarks added to foreign documents. For example
I have washing machine Candy Goy 1050 D. I very old model and I loose
instruction for it. I go to Goole and download instruction on first
link. I get https://i.imgur.com/EBy9voW.png. Here site added own ads to
original document and I want to repair it.


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


[Podofo-users] Any plans to relocate to github?

2020-08-11 Thread Ivan Romanov via Podofo-users
Hi guys.

My question in title. I see that PoDoFo is not actively developing. Also
there are many issues and patches. Many people use mailng list or
tickets to send patches. Github more suitble for this tasks. It has
perfect pull requests which allows not-members of PoDoFo to easy send
patches. Also github allows to post binaries and own site. Initially my
project Torrent File Editor partially was placed on SF. I used SF to
share binary packages, source code archives and as homepage but source
code and issue tracker was placed on Gtihub. But some time ago I fully
moved to Github. And it works better than SF.

I think for start on Github may be created mirror of PoDoFo SF repo and
use it to apply patches. 


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


[Podofo-users] PoDoFoBrowser new life

2020-08-11 Thread Ivan Romanov via Podofo-users
Hi guys.

As PoDoFoBrowser is not maintain through a very long time it forked on
github https://github.com/KubaO/podofobrowser. Atm no changes UI or
behaviour of application. All changes only to add support Qt5 and
modern compilers. Also dropped STLPort. I believe it's dead and not
used in modern OSes. So I ask to place link to github repo anywhere in
PoDoFo readme. In really old SF PoDoFoBrowser can't be compiled with
Qt5.


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Indirect references

2020-08-11 Thread Ivan Romanov via Podofo-users
I tested it with

PoDoFo::PdfReference ref00(0, 0);
PoDoFo::PdfReference ref10(1, 0);
PoDoFo::PdfReference ref11(1, 1);
PoDoFo::PdfReference ref01(0, 1);

cout << ref00.IsIndirect() << " -- " << ref00.ToString() << endl;
cout << ref10.IsIndirect() << " -- " << ref10.ToString() << endl;
cout << ref11.IsIndirect() << " -- " << ref11.ToString() << endl;
cout << ref01.IsIndirect() << " -- " << ref01.ToString() << endl;

Output:

0 -- 0 0 R
1 -- 1 0 R
1 -- 1 1 R
1 -- 0 1 R

Looks like a bug. 

Also IsIndirect() function name sounds like 'direct references are
exists'. But reference can point only to indirect object. So function
should be renamed to IsValid(). And returns true when (objNumber > 0 &&
genNumber >= 0). ToString() should return string representation of
PdfReference only for valid objects. For invalid it should returns
empty strings.

On Tue, 11 Aug 2020 12:29:05 +0500
Ivan Romanov via Podofo-users 
wrote:

> Hi guys.
> 
> I found a strange thing. PoDoFo defines indirect as 'A reference is
> indirect if object number and generation number are both not equal 0'.
> 
> But PDF 1.7 specification defines the same in another way 'indirect
> object an object that is labeled with a positive integer object number
> followed by a non-negative integer generation number followed by obj
> and having endobj after it'.
> 
> It different with generation number. In PoDoFo it can'b zero but in
> PDF specification it's OK.


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


[Podofo-users] Indirect references

2020-08-11 Thread Ivan Romanov via Podofo-users
Hi guys.

I found a strange thing. PoDoFo defines indirect as 'A reference is
indirect if object number and generation number are both not equal 0'.

But PDF 1.7 specification defines the same in another way 'indirect
object an object that is labeled with a positive integer object number
followed by a non-negative integer generation number followed by obj
and having endobj after it'.

It different with generation number. In PoDoFo it can'b zero but in PDF
specification it's OK.


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


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

2020-08-09 Thread Ivan Romanov via Podofo-users
Hi guys. I wrote a patch and opened a ticket on SF. Seems its not
actived so I duplicate this too.
https://sourceforge.net/p/podofo/tickets/102/


___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users