pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1861472 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java
Date Sun, 16 Jun 2019 16:45:11 GMT
Author: msahyoun
Date: Sun Jun 16 16:45:11 2019
New Revision: 1861472

URL: http://svn.apache.org/viewvc?rev=1861472&view=rev
Log:
PDFBOX-4574: add PDFormContentStream needed for TextHighlight handlers

Added:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java

Added: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java?rev=1861472&view=auto
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java
(added)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDFormContentStream.java
Sun Jun 16 16:45:11 2019
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel;
+
+import java.io.IOException;
+
+import org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject;
+
+/**
+ *
+ * @author Tilman Hausherr
+ */
+public final class PDFormContentStream extends PDAbstractContentStream
+{
+    /**
+     * Create a new form XObject content stream.
+     *
+     * @param form The form XObject stream to write to.
+     * 
+     * @throws IOException If there is an error writing to the form contents.
+     */
+    public PDFormContentStream(PDFormXObject form) throws IOException
+    {
+        super(null, form.getContentStream().createOutputStream(), form.getResources());
+    }
+}



Mime
View raw message