[scribus-dev] Fwd: Great meeting you in Saarbrücken
Tamir Hassan
dev at tamirhassan.com
Thu Jun 13 07:13:50 UTC 2019
Hi Leonard, hi all,
On 6/13/19 2:37 AM, Leonard Rosenthol wrote:
> > A first step would be to preserve style information for stories.
> Using marked content to preserve an XML-like structure
>
> That’s called Tagged PDF and been part of PDF since v1.4
>
> >and storing CSS styles as page piece dictionaries should achieve
> similar results as interoperability between word processors.
>
> Actually, the right way to do this is using attributes on the tags and
> the ClassMap in the tag tree. CSS is an official type of attribute in
> PDF 2.0.
>
> You do have to be careful about arbitrary CSS, since you can have
> scripts inside of CSS…and that impacts security.
That sounds like a good first step.
HTML + CSS for styling is, in general, not robust enough. However, if
the chosen line breaks are available (as is the case with PDF), this
should lead to a more robust layout, which preserves the line breaks
even if the document is "opened for editing" and then only does the
minimal amount of reflow that is necessary when content is added.
Best,
Tamir
--
Dr. Tamir Hassan
Round-Trip PDF Solutions
Research, development and consulting for the generation, analysis and
data extraction from PDF documents
Zirkusgasse 31, 1020 Wien, Austria
www.roundtrippdf.com
tamir at tamirhassan.com
+43 676 721 6288
More information about the scribus-dev
mailing list