add dewatermark option for pdf/djvu documents #549

Merged
merged 3 commits into from Apr 7, 2014

Conversation

Projects
None yet
4 participants
@chrox
Member

chrox commented Apr 6, 2014

It should look like this:
screenshot from 2014-04-06 21 09 45

houqp added a commit that referenced this pull request Apr 7, 2014

Merge pull request #549 from chrox/master
add dewatermark option for pdf/djvu documents

@houqp houqp merged commit 0b247ed into koreader:master Apr 7, 2014

@houqp

This comment has been minimized.

Show comment
Hide comment
@houqp

houqp Apr 7, 2014

Member

looks good :)

Member

houqp commented Apr 7, 2014

looks good :)

@th0mass

This comment has been minimized.

Show comment
Hide comment
@th0mass

th0mass Apr 14, 2014

Contributor

I tried with this PDF and It didn't work(on both reflow and normal mode): http://www.stefanochizzolini.it/common/contents/projects/clown/samples/WatermarkSample.pdf

tried with this some of these also: http://www.a-pdf.com/watermark/example.htm

Contributor

th0mass commented Apr 14, 2014

I tried with this PDF and It didn't work(on both reflow and normal mode): http://www.stefanochizzolini.it/common/contents/projects/clown/samples/WatermarkSample.pdf

tried with this some of these also: http://www.a-pdf.com/watermark/example.htm

@chrox

This comment has been minimized.

Show comment
Hide comment
@chrox

chrox Apr 17, 2014

Member

Yes. It might be a bug in k2pdfopt since even I decrease white threshold to 128 the watermark is still there. I will report it to @willus.

Member

chrox commented Apr 17, 2014

Yes. It might be a bug in k2pdfopt since even I decrease white threshold to 128 the watermark is still there. I will report it to @willus.

@willus

This comment has been minimized.

Show comment
Hide comment
@willus

willus Apr 18, 2014

This is not really a "bug" in k2pdfopt except that the documentation is misleading. The -wt option in k2pdfopt just sets the white pixel threshold for deciding if a pixel is white or black, but it does not actually cause k2pdfopt to paint all the pixels higher than that value pure white in the bitmap output. This could be a feature add if it is desired, though. I will at least fix the documentation for the next release.

willus commented Apr 18, 2014

This is not really a "bug" in k2pdfopt except that the documentation is misleading. The -wt option in k2pdfopt just sets the white pixel threshold for deciding if a pixel is white or black, but it does not actually cause k2pdfopt to paint all the pixels higher than that value pure white in the bitmap output. This could be a feature add if it is desired, though. I will at least fix the documentation for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment