From 10d15b25c52f6824582045fbab3a763f531a9391 Mon Sep 17 00:00:00 2001 From: Alexander Dyuzhev Date: Sun, 30 Jun 2024 18:17:17 +0300 Subject: [PATCH] table cell count threshold decreased, metanorma/mn-native-pdf#709 --- Makefile | 2 +- README.adoc | 10 +++++----- pom.xml | 2 +- src/main/java/org/metanorma/fop/PDFGenerator.java | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4c0fa30..07f41e0 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ SHELL ?= /bin/bash endif #JAR_VERSION := $(shell mvn -q -Dexec.executable="echo" -Dexec.args='$${project.version}' --non-recursive exec:exec -DforceStdout) -JAR_VERSION := 1.93 +JAR_VERSION := 1.94 JAR_FILE := mn2pdf-$(JAR_VERSION).jar all: target/$(JAR_FILE) diff --git a/README.adoc b/README.adoc index 2f765cc..d518b8f 100644 --- a/README.adoc +++ b/README.adoc @@ -17,14 +17,14 @@ You will need the Java Development Kit (JDK) version 8, Update 241 (8u241) or hi [source,sh] ---- -java -Xss5m -Xmx2048m -jar target/mn2pdf-1.93.jar --xml-file --xsl-file --pdf-file [--syntax-highlight] +java -Xss5m -Xmx2048m -jar target/mn2pdf-1.94.jar --xml-file --xsl-file --pdf-file [--syntax-highlight] ---- e.g. [source,sh] ---- -java -Xss5m -Xmx2048m -jar target/mn2pdf-1.93.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf +java -Xss5m -Xmx2048m -jar target/mn2pdf-1.94.jar --xml-file tests/G.191.xml --xsl-file tests/itu.recommendation.xsl --pdf-file tests/G.191.pdf ---- === PDF encryption features @@ -100,7 +100,7 @@ Update version in `pom.xml`, e.g.: ---- org.metanorma.fop mn2pdf -1.93 +1.94 Metanorma XML to PDF converter ---- @@ -111,8 +111,8 @@ Tag the same version in Git: [source,xml] ---- -git tag v1.93 -git push origin v1.93 +git tag v1.94 +git push origin v1.94 ---- Then the corresponding GitHub release will be automatically created at: diff --git a/pom.xml b/pom.xml index 58b0afd..c486dff 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.metanorma.fop mn2pdf - 1.93 + 1.94 Metanorma XML to PDF converter jar https://www.metanorma.org diff --git a/src/main/java/org/metanorma/fop/PDFGenerator.java b/src/main/java/org/metanorma/fop/PDFGenerator.java index 4776b69..cda7ff0 100644 --- a/src/main/java/org/metanorma/fop/PDFGenerator.java +++ b/src/main/java/org/metanorma/fop/PDFGenerator.java @@ -1175,7 +1175,7 @@ private void readEncryptionParameters(File fEncryptionParameters) { private void setTablesWidths(fontConfig fontcfg, XSLTconverter xsltConverter, File pdf) { - int TABLE_CELLS_COUNT_MAX = 30000; + int TABLE_CELLS_COUNT_MAX = 20000;//30000; String methodName = getClass().getSimpleName() + "." + (new Object(){}.getClass().getEnclosingMethod().getName()); Profiler.addMethodCall(methodName);