]> gerrit.simantics Code Review - simantics/platform.git/commit
Fonts are now embedded in diagram, wiki, etc PDF exports.
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 10 Mar 2017 16:27:03 +0000 (18:27 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Fri, 28 Apr 2017 13:18:57 +0000 (16:18 +0300)
commitf5d1555a20086643a12edeac2e7fb02cd29837aa
tree384eda84136d9aeeac2001120644569e00207169
parent5d3a32dbc151c67246b1cd0219b30a29e3df11f8
Fonts are now embedded in diagram, wiki, etc PDF exports.

A lot of general cleanup/refactoring for the old "Diagrams to PDF"
export wizard backend implementation. Consolidated some page numbering
code into org.simantics.export.core.pdf.PageNumbering.

Also consolidated iText FontMapper initialization into
org.simantics.export.core.pdf.FontMapping. It turned out that the key to
getting iText to embed fonts for text rendered into PDFs was that the
FontMapper used needs to have all system fonts registered into it.

Also fixed PDF export page number positioning in the more generic PDF
export wizard.

refs #7084

Change-Id: Ife4f96889659834a780566152f63e9e1ccd4979f
12 files changed:
bundles/org.simantics.document/src/org/simantics/document/DocumentUtils.java
bundles/org.simantics.document/src/org/simantics/document/Exportable.java
bundles/org.simantics.export.core/src/org/simantics/export/core/pdf/ExportPdfFormat.java
bundles/org.simantics.export.core/src/org/simantics/export/core/pdf/ExportPdfWriter.java
bundles/org.simantics.export.core/src/org/simantics/export/core/pdf/FontMapping.java [new file with mode: 0644]
bundles/org.simantics.export.core/src/org/simantics/export/core/pdf/PageNumbering.java [new file with mode: 0644]
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/DiagramPrinter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFDiagramExportWizard.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFExportPlan.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFPainter.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/NodeUtil.java
bundles/org.simantics.wiki.ui/src/org/simantics/wiki/ui/editor/IExportable.java