https://bugs.documentfoundation.org/show_bug.cgi?id=162826

--- Comment #20 from Dave Gilbert <[email protected]> ---
(In reply to Miklos Vajna from comment #19)
> > That downconversion for export is actually the 1st pdfium call that we do 
> > on import
> 
> Hmm, I imagine that idea was that vcl::pdf::createBinaryDataContainer() does
> the conversion once, instead of storing the original bytes and then
> downconverting again and again. And that "binary data container" is attached
> to the Graphic, so other code actually gets the data from there.

That is what I was hoping was going to happen having wired it up.

> Anyhow,
> just an idea: what if you ask for the password during insertion (as part of
> the UI), so the doc model never has an encrypted PDF?

That's my intention; I just need to go and follow it all through to understand
which copy of the PDF is stored where and which ones the different PDFium calls
use.

> I'm also a bit unsure if anybody would be concerned that now we store
> something decrypted that was previous protected by a password...

Yep; but in the end we can't perform magic.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to