Author: tilman
Date: Wed Aug  9 16:57:21 2017
New Revision: 1804587

URL: http://svn.apache.org/viewvc?rev=1804587&view=rev
Log:
PDFBOX-3890: add horizontal scaling

Modified:
    
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java

Modified: 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java?rev=1804587&r1=1804586&r2=1804587&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
 (original)
+++ 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageContentStream.java
 Wed Aug  9 16:57:21 2017
@@ -2407,4 +2407,17 @@ public final class PDPageContentStream i
         writeOperand(spacing);
         writeOperator("Tw");
     }
+
+    /**
+     * Set the horizontal scaling to scale / 100.
+     *
+     * @param scale number specifying the percentage of the normal width. 
Default value: 100 (normal
+     * width).
+     * @throws IOException If the content stream could not be written.
+     */
+    public void setHorizontalScaling(float scale) throws IOException
+    {
+        writeOperand(scale);
+        writeOperator("Tz");
+    }
 }


Reply via email to