Skip to content

Commit 2f8edd2

Browse files
committed
[RELEASE] iText 7 - 7.1.2
https://github.com/itext/itext7/releases/tag/7.1.2 * release/7.1.2: Remove jgitflow plugin from POM file [RELEASE] 7.1.2-SNAPSHOT -> 7.1.2 Add non-breaking-space and non-breaking hyphen in TextRenderer#isGlyphPartOfWordForHyphenation Add missing copyright headers Introduce StandardFontFamilies class, remove TIMES constant from StandardFonts Add new util method. Introduce generic approach for y-line extraction control; make some of the util methods public in AbstractRenderer Add new test for vetical alignment in paragrpahs Add another problematic xmp test Remove problematic metadata from form test and add test for it Update xmp metadata if it was present in document before close Compare producer line on document info comparison Update cmp files Remove default appearance from AcroForm. Forms. Fix issue with inherited default appearance Make constructor for BarcodeMSI public Extend supported PDF size up to 1 Tb Don't loop through initial indirects in compare tool Fix synchronization issues during version creation Make exception messages more verbose and user-friendly. Minor fixes in PdfException constants. added non-breaking-space in TextRenderer#isGlyphPartOfWordForHyphenation Fix bug with trimming characters represented by surrogate pairs in UTF-16 Avoid possible NPE if TagTreePointer points at direct structure element Added Category to AffineTransformTest Do not perform redundant mathematical operations that can cause the precission loss. Introduce some new handy UV methods. Add missing copyright headers Added an equals and hashcode implementation for AffineTransform RND-756 Introduce util class for checkbox and radio drawing. Neutralize NPE. Fix critical issue with PdfName#compareTo violating compareTo contract Cast ByteBuffer instances to Buffer to solve compatibility issue Expose PdfDocument in PdfCanvas for external access Fix retrieval of image and form resources in PdfResources Remove redundant second addition of the resource Revert "fixed findFieldName method not giving the result more than one time." fixed findFieldName method not giving the result more than one time. Add missing copyright headers Add PdfName constants for TH scope attributes. DEVSIX-1834 added functionality previously seen in PortUtil in html2pdf to TextUtil to accomodate autoporting ease RND-788 Add problematic tests Fix NPE in case keep together is set as default property Allow removing background collor from button form fields Add documentation to public BlockFormattingContextUtil#isRendererCreateBfc method Deprecate unused OVERFLOW property, introduce utility methods for overflow property value checks Improve y-line calculation for elements with property overflow:hidden Review text alignment taking into account floating blocks and inline blocks Make applyMinHeight package-private for now Refactor basic support of CSS block formatting context imitation in layout Fix overflowing of floating elements to the next line at page end Avoid float overflow to the next page if it was the first element on page Remove parent elements artifacts drawing on floats-only page splits Improve precision of min_height applying if layout box has big height Fix min-max heights handling when floats-only page splits occur Avoid vertical alignment when content vertically overflowed parent Distinguish child and sibling floats when enlarging occupied area Ensure occupied area does not include overflowed parts of floating children Apply endChildMarginsCollapse after inclusion of child occupied area Fix handling of horizontal overflow for floating elements Unignore and update tests for floating elements overflow handling issues Fix edge cases for elements with clearance overflowing to the next page Refactored clearance on page split tests Update tests that ensure that not-fitting float doesn't mess up parent splitting Unignore forced_placement related floating tests Avoid occupation of the gap on partial split for floats via fillAvailableArea property Support overflow of not fitting inline floats immediately to the next page Support partial splitting for floating inline blocks Fix floating element placement if previous floating element didn't fit at all Avoid forced placement of images if there are any floating elements Do not apply word spacing to occurrences of the multi-byte 32 code Add up word and char spacing for whitespace character in #showText(GlyphLine) calculations Take xAdvance and yAdvance into account on caculating anchor glyph position Apply horiznotal scaling to glyph's xPlacement adjustment add category to test class DEVSIX-1816 Add a couple of new tests for tab stops GifTest: close file stream Update compare tool to support new xml autoport mappings Use a custom util method to reade inputStream as array Add missing unit test for GifImageHelper New test and test resource for GifImageHelper added GIF frames are of ImageType GIF fix broken test by correcting off-by-one error in RegexBasedLocationExtractionStrategy Add missing copyright headers correct off-by-one mistake in RegexBasedLocationExtractionStrategy Add missing copyright headers Fix UrlUtil#getFinalURL to mitigate open file handles consequences Update plugin versions Remove redundant import statements Apply transparency to 3D borders Use general properties mechanism for Document margins storing Avoid NPE in case of layouting elements inside MinMaxWidth calculation context Do not consider flushed pages while regenerating field's value. Add new hyphenate test Add missing copyright headers Process large tables with border-spacing property. Fix cell min/max width handling. Refactoring Process footer skip properly. Add some new tests. Introduce border-spacing. Apply paddings on tables with separated borders. Fix the accessibility of SeparatedTableBorders. Minor changes in a view of c# port. Fix minor border bugs. Implement separated borders. Fix some tests. Add missing copyright headers Use correct world for failing hyphenation tests Add new PdfObject#isReleaseForbidden() method to check whether release() would take any action Respect justification for multiline text fields [RELEASE] 7.1.1-SNAPSHOT -> 7.1.2-SNAPSHOT Fix possible NPE in CrlClientOnline Added new constant to PdfException. DefaultAppearanceNotFound. DEVSIX-1769 Fix possible NPE in case of null width for Block Renderer Ignore failing tests Add missing dependency on hyph module Add missing hyphenation resource and test of language loading Signed-off-by: iText Software (Community) <[email protected]>
2 parents ee44c22 + e3dfb53 commit 2f8edd2

File tree

334 files changed

+14832
-1433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+14832
-1433
lines changed

barcodes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.itextpdf</groupId>
77
<artifactId>root</artifactId>
8-
<version>7.1.1</version>
8+
<version>7.1.2</version>
99
</parent>
1010

1111
<artifactId>barcodes</artifactId>

barcodes/src/main/java/com/itextpdf/barcodes/BarcodeMSI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class BarcodeMSI extends Barcode1D {
9494
/**
9595
* Creates a new BarcodeMSI
9696
*/
97-
protected BarcodeMSI(PdfDocument document) {
97+
public BarcodeMSI(PdfDocument document) {
9898
super(document);
9999
this.x = 0.8f;
100100
this.n = 2.0f;

font-asian/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.itextpdf</groupId>
77
<artifactId>root</artifactId>
8-
<version>7.1.1</version>
8+
<version>7.1.2</version>
99
</parent>
1010

1111
<artifactId>font-asian</artifactId>

forms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.itextpdf</groupId>
77
<artifactId>root</artifactId>
8-
<version>7.1.1</version>
8+
<version>7.1.2</version>
99
</parent>
1010

1111
<artifactId>forms</artifactId>

forms/src/main/java/com/itextpdf/forms/PdfAcroForm.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ This file is part of the iText (R) project.
4646
import com.itextpdf.forms.fields.PdfFormField;
4747
import com.itextpdf.forms.xfa.XfaForm;
4848
import com.itextpdf.io.LogMessageConstant;
49+
import com.itextpdf.io.font.constants.StandardFonts;
4950
import com.itextpdf.kernel.PdfException;
51+
import com.itextpdf.kernel.font.PdfFont;
52+
import com.itextpdf.kernel.font.PdfFontFactory;
5053
import com.itextpdf.kernel.geom.Rectangle;
5154
import com.itextpdf.kernel.pdf.PdfArray;
5255
import com.itextpdf.kernel.pdf.PdfBoolean;
@@ -57,17 +60,20 @@ This file is part of the iText (R) project.
5760
import com.itextpdf.kernel.pdf.PdfObject;
5861
import com.itextpdf.kernel.pdf.PdfObjectWrapper;
5962
import com.itextpdf.kernel.pdf.PdfPage;
63+
import com.itextpdf.kernel.pdf.PdfResources;
6064
import com.itextpdf.kernel.pdf.PdfStream;
6165
import com.itextpdf.kernel.pdf.PdfString;
6266
import com.itextpdf.kernel.pdf.PdfVersion;
6367
import com.itextpdf.kernel.pdf.VersionConforming;
6468
import com.itextpdf.kernel.pdf.annot.PdfAnnotation;
69+
import com.itextpdf.kernel.pdf.annot.da.StandardAnnotationFont;
6570
import com.itextpdf.kernel.pdf.canvas.PdfCanvas;
6671
import com.itextpdf.kernel.pdf.tagging.StandardRoles;
6772
import com.itextpdf.kernel.pdf.tagutils.TagReference;
6873
import com.itextpdf.kernel.pdf.tagutils.TagTreePointer;
6974
import com.itextpdf.kernel.pdf.xobject.PdfFormXObject;
7075

76+
import java.io.IOException;
7177
import java.util.ArrayList;
7278
import java.util.Arrays;
7379
import java.util.LinkedHashMap;
@@ -131,7 +137,6 @@ public class PdfAcroForm extends PdfObjectWrapper<PdfDictionary> {
131137
*/
132138
protected PdfDocument document;
133139

134-
Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
135140
private static PdfName[] resourceNames = {PdfName.Font, PdfName.XObject, PdfName.ColorSpace, PdfName.Pattern};
136141
private PdfDictionary defaultResources;
137142
private Set<PdfFormField> fieldsForFlattening = new LinkedHashSet<>();
@@ -180,7 +185,6 @@ public static PdfAcroForm getAcroForm(PdfDocument document, boolean createIfNotE
180185
acroForm.makeIndirect(document);
181186
document.getCatalog().put(PdfName.AcroForm, acroForm.getPdfObject());
182187
document.getCatalog().setModified();
183-
acroForm.setDefaultAppearance("/Helv 0 Tf 0 g ");
184188
}
185189
} else {
186190
acroForm = new PdfAcroForm(acroFormDictionary, document);
@@ -848,6 +852,7 @@ public void replaceField(String name, PdfFormField field) {
848852
protected PdfArray getFields() {
849853
PdfArray fields = getPdfObject().getAsArray(PdfName.Fields);
850854
if (fields == null) {
855+
Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
851856
logger.warn(LogMessageConstant.NO_FIELDS_IN_ACROFORM);
852857
fields = new PdfArray();
853858
getPdfObject().put(PdfName.Fields, fields);
@@ -864,6 +869,7 @@ private Map<String, PdfFormField> iterateFields(PdfArray array, Map<String, PdfF
864869
int index = 1;
865870
for (PdfObject field : array) {
866871
if (field.isFlushed()) {
872+
Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
867873
logger.warn(LogMessageConstant.FORM_FIELD_WAS_FLUSHED);
868874
continue;
869875
}

0 commit comments

Comments
 (0)