pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1814318 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java
Date Sat, 04 Nov 2017 19:37:50 GMT
Author: tilman
Date: Sat Nov  4 19:37:49 2017
New Revision: 1814318

URL: http://svn.apache.org/viewvc?rev=1814318&view=rev
Log:
PDFBOX-3991: adjust parameter to float

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java?rev=1814318&r1=1814317&r2=1814318&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFonts.java
Sat Nov  4 19:37:49 2017
@@ -52,8 +52,8 @@ public final class EmbeddedFonts
             {
                 stream.beginText();
                 stream.setFont(font, 12);
-                stream.setLeading(12 * 1.2);
-                
+                stream.setLeading(12 * 1.2f);
+
                 stream.newLineAtOffset(50, 600);
                 stream.showText("PDFBox's Unicode with Embedded TrueType Font");
                 stream.newLine();



Mime
View raw message