Customizable Print Formats GSoC 2015

Lubomir I. Ivanov neolit123 at gmail.com
Sat Mar 7 14:11:36 PST 2015


On 7 March 2015 at 23:47, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
>
> one thing to figure out is how are we going to embed the profile pictures...
> if we are capturing the output of a QWebPage then we first need to
> show the profiles in there.
> for that <img src="data: metatype, base64, theDataGoesHere" /> can be used.

now, there is an alternative for all that, but it's tricky...
since we can use QWebFrame::render() on a QPainter that uses the
QPrinter as paint device, in theory we can position a QPicture of the
profile exactly over the already rendered profile HTML frame (e.g. in
your PDF that would be "dive profile area"), but that's only in
theory.

this way we are going to use QPicture's vector properties and it's
probably going to be faster compared to using SVG as an intermediate
format, i'd say. because we don't need to render the profile in the
QWebView.

the question is, can we easily estimate where the QPicture profile
should be placed and what scale it should have...

you can also try experimenting with this approach. this is the
preferred way to go.

>
> P.S.: use bottom posting, please:
> http://en.wikipedia.org/wiki/Posting_style#Bottom-posting

my bad, you *did* use bottom posting.
it's just that gmail did something strange with the [...] expansion.

lubomir
--


More information about the subsurface mailing list