如果您对PDFBox:PDPageContentStream的附加模式行为异常和pdf附件形式是什么感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解PDFBox:PDPageContentStr
如果您对PDFBox:PDPageContentStream的附加模式行为异常和pdf附件形式是什么感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解PDFBox:PDPageContentStream的附加模式行为异常的各种细节,并对pdf附件形式是什么进行深入的分析,此外还有关于Apache PDFBox 1.8.9 发布,Java 的 PDF 处理类、Apache PDFBox 2.0.11 和 1.8.15, Java 的 PDF 处理类库、Apache PDFBox 2.0.3,Java 的 PDF 处理类库、Apache PDFBox 2.0.4,Java 的 PDF 处理类库的实用技巧。
本文目录一览:- PDFBox:PDPageContentStream的附加模式行为异常(pdf附件形式是什么)
- Apache PDFBox 1.8.9 发布,Java 的 PDF 处理类
- Apache PDFBox 2.0.11 和 1.8.15, Java 的 PDF 处理类库
- Apache PDFBox 2.0.3,Java 的 PDF 处理类库
- Apache PDFBox 2.0.4,Java 的 PDF 处理类库
PDFBox:PDPageContentStream的附加模式行为异常(pdf附件形式是什么)
我正在PDF页面之一上PDPageContentStream stream = new PDPageContentStream(doc,page);
绘制图像。.当我用来绘制图像时,一切正常。.参见下图。
但是当我使用构造函数PDPageContentStream(doc, page, true,true);
创建PDPageContentStream
和绘制图像时,新添加的图像会上下颠倒。
没有弄明白这里出了什么问题..
PS。我正在使用库PdfBox-Android
答案1
小编典典使用具有第五个参数的构造函数,以便重置图形上下文。
public PDPageContentStream(PDDocument document, PDPage sourcePage, boolean appendContent, boolean compress, boolean resetContext) throws IOException
或者,通过调用在第一个内容流中保存和恢复图形状态
saveGraphicsState();// ...restoreGraphicsState();
Apache PDFBox 1.8.9 发布,Java 的 PDF 处理类
Apache PDFBox 1.8.9 发布,此版本现已提供下载:http://pdfbox.apache.org/downloads.cgi。
发行说明 -- Apache PDFBox -- Version 1.8.9
此版本主要是 bug 修复版本,基于上一版本 1.8.8,包括大量的 bug 修复和改进。
issues 列表:https://issues.apache.org/jira/browse/PDFBOX
Bug 修复
[PDFBOX-159] - Field renaming character set problem
[PDFBOX-785] - Spliting a PDF creates unnecessarily large files
[PDFBOX-1002] - Form field not rendered after being processed by pdfbox-1.1.0,
wrong position of same field in pdfbox-1.5.0
[PDFBOX-1618] - Split PDF file to single page files, some files are inflated in size
[PDFBOX-1651] - PDFBox doesn''t read the permission bits correct.
PDDocument.getCurrentAccessPermission().canPrint() is allways returning true
irrespective of the document print permissions
[PDFBOX-1750] - PDTextbox and PDAnnotationWidget are not correct initialized
from it''s own constructor .
[PDFBOX-1859] - ClassCastException for unknown destination type
[PDFBOX-1874] - PDFTextStripper.isParagraphSeparation(...)
[PDFBOX-1965] - NPE in NonSequentialPDFParser when parseMinimal property is set
to true
[PDFBOX-2525] - Overlay: data black & white after import
[PDFBOX-2549] - TIFF-Predictor with 16 bits per component not supported
[PDFBOX-2550] - ClassCastException in PDAnnotation.getColour
[PDFBOX-2552] - Blank rendering when negative page rotation
[PDFBOX-2559] - TTF font cannot be loaded
[PDFBOX-2579] - Exception in thread "main" java.io.IOException: Error: Expected
a long type at offset 1029, instead got ''12688(Deleted''
[PDFBOX-2582] - Form fields missing entirely or incorrect in PDField list
[PDFBOX-2583] - Error when rendering a PDF with annotations
[PDFBOX-2595] - Pdfbox always sets the second part of documentID to the same value
[PDFBOX-2615] - IllegalArgumentException in PDPageTree constructor: root cannot
be null
[PDFBOX-2617] - Group of Button fields treated as a Radio Button group
[PDFBOX-2620] - Support named actions
[PDFBOX-2622] - PDAnnotationLink::getBorderStyle() don''t understand external
border style
[PDFBOX-2644] - Load FDF document creates Temp file when called with file parameter
[PDFBOX-2653] - Image extraction fails with attached PDF
[PDFBOX-2654] - NullPointerException when reading a GIF file with a transparent
color
[PDFBOX-2676] - PDPageLabelRange.setLabelItem() should not allow negative startPage
[PDFBOX-2678] - possible NPE in ExtractText tool of trunk
[PDFBOX-2687] - ClassCastException when trying to get OutputIntents or add to it
[PDFBOX-2698] - PDFToImage IndexOutOfBoundsException
[PDFBOX-2702] - Merging PDFs created using "Nuance PDF Create" not possible
[PDFBOX-2710] - Form fields missing in 1.8.9 version
[PDFBOX-2726] - org.apache.pdfbox.cos.COSArray cannot be cast to
org.apache.pdfbox.cos.COSDictionary
改进
[PDFBOX-1523] - Manifest should support Specification entries
[PDFBOX-2594] - Set default params in JBIG2Filter
[PDFBOX-2619] - XMP dates contain time zone, while document info dates do not,
and this isn''t detected by preflight
[PDFBOX-2673] - Add output path prefix param in PDFSplit/Splitter
更多内容请看发行说明。
PDFBox是Java实现的PDF文档协作类库,提供PDF文档的创建、处理以及文档内容提取功能,也包含了一些命令行实用工具。
主要特性包括:
从PDF提取文本
合并PDF文档
PDF 文档加密与解密
与Lucene搜索引擎的集成
填充PDF/XFDF表单数据
从文本文件创建PDF文档
从PDF页面创 建图片
打印PDF文档
Apache PDFBox 2.0.11 和 1.8.15, Java 的 PDF 处理类库
Apache PDFBox 2.0.11 和 1.8.15 已发布。Apache PDFBox 库是一个开源的用于处理 PDF 文档的 Java 工具库。
Apache PDFBox 2.0.11 是基于 2.0.10 版本的增量式 bug 修复版本,包含了几个修复和小改进。
Bug
[PDFBOX-4248] - NPE when rendering a PDF with annotations using a g2d from Batik
改进
[PDFBOX-4251] - Optimize AFMParser
详情请查看发布公告。
同样的,Apache PDFBox 1.8.15 是基于 1.8.14 版本的增量式 bug 修复版本,包含了几个修复和小改进。
Bug
[PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects
Improvement
[PDFBOX-4251] - Optimize AFMParser
1.8.15 的发布公告
Apache PDFBox 2.0.3,Java 的 PDF 处理类库
Apache PDFBox 2.0.3 发布了。Apache PDFBox 库是一个开源的 Java 工具用于处理 PDF 文档。该版本修复了一些 bug 以及功能的提升。
更新内容:
Bug
[PDFBOX-2420] - DateConverter doesn''t handle time zones outside -12 to +12 range properly
[PDFBOX-2854] - TTFSubsetter NoSuchElementException
[PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException
[PDFBOX-2984] - PDFTextStripper adds extra word/line delimiters when PDF page orientation is 180 degrees
[PDFBOX-3165] - Tab characters in PDTextField cause error when using .flatten()
[PDFBOX-3298] - Can''t show text (glyph) from ZapfDingbats font
[PDFBOX-3306] - SCALE_TO_FIT with DPI yields incorrect margins
[PDFBOX-3315] - Dates falsely detected as different by preflight
[PDFBOX-3332] - Apache PDFBox Form Fill TrueType text spacing issue
[PDFBOX-3335] - Issue while Merging PDF with Hidden Layers
[PDFBOX-3337] - Regression: NullPointerException in subsetting
[PDFBOX-3344] - Caused by: java.lang.ClassCastException: org.apache.fontbox.ttf.OpenTypeFont can not be cast to org.apache.fontbox.cff.CFFFont
[PDFBOX-3373] - Create example with empty signature incomplete
[PDFBOX-3379] - PDType0Font Subsetting Monospace DejaVuSansMono
[PDFBOX-3381] - PDF rendering regression
[PDFBOX-3386] - Downgrade maven-bundle-plugin to ensure jdk6 compatibility
[PDFBOX-3395] - Throwing exception when PDF has unused empty fonts embedded.
[PDFBOX-3403] - IllegalArgumentException: Symbolic fonts must have a built-in encoding
[PDFBOX-3404] - Threads using PDFBox getting stuck when using standard 14 fonts
[PDFBOX-3408] - Correct validation of Widget Annotations for PDF/A-1
[PDFBOX-3409] - TextToPDF drops leading spaces
[PDFBOX-3411] - Incorrect embedding of non-subset fonts.
[PDFBOX-3417] - Redundant/incorrect code in PDVisibleSignDesigner.java
[PDFBOX-3419] - DublinCoreSchema.getDates always returns empty list
[PDFBOX-3426] - ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 0
[PDFBOX-3435] - Text extraction - words on same line detection failing in 2.x
[PDFBOX-3439] - DomXmpParser fails to parse date
[PDFBOX-3441] - NumberFormatException when loading large PDF file
[PDFBOX-3446] - Infinite loop while parsing
[PDFBOX-3447] - IllegalArgumentException: Dimensions (width=99999 height=99999) are too large
[PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList
[PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment
[PDFBOX-3466] - Java 9 warnings
[PDFBOX-3467] - PDPage.getAnnotations() modifies the PDF
[PDFBOX-3470] - Set border and background color in AcroForm field appearance
[PDFBOX-3471] - XMP parsing fails if XMP contain comments
[PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID
[PDFBOX-3473] - IllegalArgumentException: resourceDictionary is null in PDFMerger (2)
[PDFBOX-3475] - IllegalArgumentException: 2058 > -49861164 in PDType1Font.java
[PDFBOX-3477] - CA and ca values should be clipped
[PDFBOX-3479] - NPE in AppearanceGeneratorHelper.setAppearanceValue() if no rectangle in widget
[PDFBOX-3481] - Localization in XRef generation results in unusable PDFs
[PDFBOX-3485] - NullPointerException in PageDrawer.drawAnnotationLinkBorder() due to /Rect array containing indirect objects
[PDFBOX-3486] - IllegalArgumentException for images without dimensions
[PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF
[PDFBOX-3488] - NullPointerException in PDTrueTypeFont.java if glyf table is missing
[PDFBOX-3490] - NullPointerException in PDType1Font.generateBoundingBox
[PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber
[PDFBOX-3493] - AcroFormValidationProcess.validateField fails to check multiple widgets
Improvement
[PDFBOX-3065] - Right now PDFBOX does not permit to sign multiple files while calling an external signing service.
[PDFBOX-3069] - Add code for CCITT compression
[PDFBOX-3324] - Complete PDActionSound
[PDFBOX-3382] - pdf creation very slow
[PDFBOX-3383] - Refactor to allow tsa timestamping for visible signatures
[PDFBOX-3387] - AcroFrom fields (values) invisible when printing
[PDFBOX-3391] - PDButton.getOnValues seems to be using the wrong source for getting the allowed values
[PDFBOX-3397] - PDFDebugger shows XML Metadata in ISO-8859-1
[PDFBOX-3405] - Display font size
[PDFBOX-3414] - Add orientation parameter to PrintPDF command line tool
[PDFBOX-3416] - CreateVisibleSignature example does not use the correct alias
[PDFBOX-3418] - Slow string to hex conversion in ToUnicodeWriter
[PDFBOX-3421] - Optimize float to string conversion in PDAbstractContentStream
[PDFBOX-3433] - Optimize image conversion in LosslessFactory
[PDFBOX-3442] - OOM for single page pdf file
[PDFBOX-3458] - Using RenderingMode with PDPageContentStream
[PDFBOX-3460] - Warn users not to use legacy code
[PDFBOX-3461] - Improve handling of line breaking characters when setting AcroForm field values
[PDFBOX-3484] - Implement some caching of PDImageXObject
New Feature
[PDFBOX-3410] - TextToPDF needs orientation control
Wish
[PDFBOX-3468] - ERROR: dash lengths all zero, ignored
点击查看发行主页了解更多
下载地址:
http://pdfbox.apache.org/download.cgi
Apache PDFBox 2.0.4,Java 的 PDF 处理类库
Apache PDFBox 2.0.3 发布了。Apache PDFBox库是一个开源的Java工具用于处理PDF文档。该版本修复了一些bug以及功能的提升。
更新内容:
Bug 修复:
[PDFBOX-3300] - 缺少字形时的显示空格
[PDFBOX-3375] - 对单例使用静态锁
[PDFBOX-3396] - 压缩AcroForm与可见标志字段ETSI.CAdES.detached
......
提升:
[PDFBOX-3262] - AcroForm flattening will cause hidden fields become visible
[PDFBOX-3432] - Optimize CID to GlyphId mapping (TTF)
[PDFBOX-3502] - add character spacing to content stream
[PDFBOX-3529] - Read overprint attributes
[PDFBOX-3537] - Create example of AcroForm creation with field that has two widgets
[PDFBOX-3541] - Use /L entry to determine if a linearized file shall be treated as such for PDF/A validation
[PDFBOX-3547] - [Patch] Improved signing of existing signature fields
[PDFBOX-3552] - Allow external signing in two steps
[PDFBOX-3567] - Process softmasks in ExtractImages
[PDFBOX-3589] - Double negative float
[PDFBOX-3599] - Support 16 bit JPG2000 images
[PDFBOX-3618] - Helvetica in PDF/A - warn in PDType1Font.java about licensing issues
新特性:
[PDFBOX-3563] - Create sample code for creating a PDF with patterns
Test:
[PDFBOX-3539] - Close Document after printing
下载地址:
http://www.softpedia.com/get/Programming/Components-Libraries/PDFBox.shtml#download
今天关于PDFBox:PDPageContentStream的附加模式行为异常和pdf附件形式是什么的分享就到这里,希望大家有所收获,若想了解更多关于Apache PDFBox 1.8.9 发布,Java 的 PDF 处理类、Apache PDFBox 2.0.11 和 1.8.15, Java 的 PDF 处理类库、Apache PDFBox 2.0.3,Java 的 PDF 处理类库、Apache PDFBox 2.0.4,Java 的 PDF 处理类库等相关知识,可以在本站进行查询。
本文标签: