Skip to content

Commit

Permalink
[RELEASE] iText 7 - 7.1.2
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
iText-CI committed Apr 12, 2018
2 parents ee44c22 + e3dfb53 commit 2f8edd2
Show file tree
Hide file tree
Showing 334 changed files with 14,832 additions and 1,433 deletions.
2 changes: 1 addition & 1 deletion barcodes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.itextpdf</groupId>
<artifactId>root</artifactId>
<version>7.1.1</version>
<version>7.1.2</version>
</parent>

<artifactId>barcodes</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class BarcodeMSI extends Barcode1D {
/**
* Creates a new BarcodeMSI
*/
protected BarcodeMSI(PdfDocument document) {
public BarcodeMSI(PdfDocument document) {
super(document);
this.x = 0.8f;
this.n = 2.0f;
Expand Down
2 changes: 1 addition & 1 deletion font-asian/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.itextpdf</groupId>
<artifactId>root</artifactId>
<version>7.1.1</version>
<version>7.1.2</version>
</parent>

<artifactId>font-asian</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion forms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.itextpdf</groupId>
<artifactId>root</artifactId>
<version>7.1.1</version>
<version>7.1.2</version>
</parent>

<artifactId>forms</artifactId>
Expand Down
10 changes: 8 additions & 2 deletions forms/src/main/java/com/itextpdf/forms/PdfAcroForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ This file is part of the iText (R) project.
import com.itextpdf.forms.fields.PdfFormField;
import com.itextpdf.forms.xfa.XfaForm;
import com.itextpdf.io.LogMessageConstant;
import com.itextpdf.io.font.constants.StandardFonts;
import com.itextpdf.kernel.PdfException;
import com.itextpdf.kernel.font.PdfFont;
import com.itextpdf.kernel.font.PdfFontFactory;
import com.itextpdf.kernel.geom.Rectangle;
import com.itextpdf.kernel.pdf.PdfArray;
import com.itextpdf.kernel.pdf.PdfBoolean;
Expand All @@ -57,17 +60,20 @@ This file is part of the iText (R) project.
import com.itextpdf.kernel.pdf.PdfObject;
import com.itextpdf.kernel.pdf.PdfObjectWrapper;
import com.itextpdf.kernel.pdf.PdfPage;
import com.itextpdf.kernel.pdf.PdfResources;
import com.itextpdf.kernel.pdf.PdfStream;
import com.itextpdf.kernel.pdf.PdfString;
import com.itextpdf.kernel.pdf.PdfVersion;
import com.itextpdf.kernel.pdf.VersionConforming;
import com.itextpdf.kernel.pdf.annot.PdfAnnotation;
import com.itextpdf.kernel.pdf.annot.da.StandardAnnotationFont;
import com.itextpdf.kernel.pdf.canvas.PdfCanvas;
import com.itextpdf.kernel.pdf.tagging.StandardRoles;
import com.itextpdf.kernel.pdf.tagutils.TagReference;
import com.itextpdf.kernel.pdf.tagutils.TagTreePointer;
import com.itextpdf.kernel.pdf.xobject.PdfFormXObject;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -131,7 +137,6 @@ public class PdfAcroForm extends PdfObjectWrapper<PdfDictionary> {
*/
protected PdfDocument document;

Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
private static PdfName[] resourceNames = {PdfName.Font, PdfName.XObject, PdfName.ColorSpace, PdfName.Pattern};
private PdfDictionary defaultResources;
private Set<PdfFormField> fieldsForFlattening = new LinkedHashSet<>();
Expand Down Expand Up @@ -180,7 +185,6 @@ public static PdfAcroForm getAcroForm(PdfDocument document, boolean createIfNotE
acroForm.makeIndirect(document);
document.getCatalog().put(PdfName.AcroForm, acroForm.getPdfObject());
document.getCatalog().setModified();
acroForm.setDefaultAppearance("/Helv 0 Tf 0 g ");
}
} else {
acroForm = new PdfAcroForm(acroFormDictionary, document);
Expand Down Expand Up @@ -848,6 +852,7 @@ public void replaceField(String name, PdfFormField field) {
protected PdfArray getFields() {
PdfArray fields = getPdfObject().getAsArray(PdfName.Fields);
if (fields == null) {
Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
logger.warn(LogMessageConstant.NO_FIELDS_IN_ACROFORM);
fields = new PdfArray();
getPdfObject().put(PdfName.Fields, fields);
Expand All @@ -864,6 +869,7 @@ private Map<String, PdfFormField> iterateFields(PdfArray array, Map<String, PdfF
int index = 1;
for (PdfObject field : array) {
if (field.isFlushed()) {
Logger logger = LoggerFactory.getLogger(PdfAcroForm.class);
logger.warn(LogMessageConstant.FORM_FIELD_WAS_FLUSHED);
continue;
}
Expand Down
Loading

0 comments on commit 2f8edd2

Please sign in to comment.