]> gerrit.simantics Code Review - simantics/platform.git/commit
Fonts are now embedded in diagram, wiki, etc PDF exports. 60/360/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 10 Mar 2017 16:27:03 +0000 (18:27 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 10 Mar 2017 16:27:03 +0000 (18:27 +0200)
commit9d4a145fef9bcec16e3d1f1477894cba6429b9c4
tree178397f73471bef31906d200d40f28bef33bb7a5
parent15d8500282b7bc9f54e561c88564a10a7def44fb
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