aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2015-07-31 14:36:56 +0000
committerSimon Steiner <ssteiner@apache.org>2015-07-31 14:36:56 +0000
commit77467fb13329ffebf62f9fbda48b6e832c977bfe (patch)
tree6a259f5f16b3613f7d2081f4bbf0d0f0e3220812 /src/java
parent61a8216891526346dc7370d4b194107ba383bb61 (diff)
downloadxmlgraphics-fop-77467fb13329ffebf62f9fbda48b6e832c977bfe.tar.gz
xmlgraphics-fop-77467fb13329ffebf62f9fbda48b6e832c977bfe.zip
FOP-2507: PDFVT and Page Piece exception using IF
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1693610 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java6
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFPagePieceExtension.java25
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFVTExtension.java25
3 files changed, 56 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java b/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java
index 2d53c33bf..9579acc84 100644
--- a/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java
@@ -108,6 +108,12 @@ public class PDFExtensionHandler extends DefaultHandler implements ContentHandle
} else if (PDFDictionaryType.Info.elementName().equals(localName)) {
PDFDocumentInformationExtension info = new PDFDocumentInformationExtension();
collections.push(info);
+ } else if (PDFDictionaryType.VT.elementName().equals(localName)) {
+ PDFVTExtension dictionary = new PDFVTExtension();
+ collections.push(dictionary);
+ } else if (PDFDictionaryType.PagePiece.elementName().equals(localName)) {
+ PDFPagePieceExtension dictionary = new PDFPagePieceExtension();
+ collections.push(dictionary);
} else if (PDFObjectType.hasValueOfElementName(localName)) {
PDFCollectionEntryExtension entry;
if (PDFObjectType.Reference.elementName().equals(localName)) {
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFPagePieceExtension.java b/src/java/org/apache/fop/render/pdf/extensions/PDFPagePieceExtension.java
new file mode 100644
index 000000000..34600727c
--- /dev/null
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFPagePieceExtension.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+/* $Id$ */
+package org.apache.fop.render.pdf.extensions;
+
+public class PDFPagePieceExtension extends PDFDictionaryExtension {
+ PDFPagePieceExtension() {
+ super(PDFDictionaryType.PagePiece);
+ }
+}
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFVTExtension.java b/src/java/org/apache/fop/render/pdf/extensions/PDFVTExtension.java
new file mode 100644
index 000000000..22ac56ffe
--- /dev/null
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFVTExtension.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+/* $Id$ */
+package org.apache.fop.render.pdf.extensions;
+
+public class PDFVTExtension extends PDFDictionaryExtension {
+ PDFVTExtension() {
+ super(PDFDictionaryType.VT);
+ }
+}