[jira] [Commented] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Daniel Persson (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327107#comment-17327107
 ] 

Daniel Persson commented on PDFBOX-5170:


Hi [~mkl]

 

No, I thought there where a difference between tables and streams and that you 
only needed one of them.

"Applications that do not support PDF 1.5 cannot access objects that are 
referenced by cross-reference streams. If a file uses cross-reference streams 
exclusively, it cannot be opened by such applications."

So my understanding was that you only needed the table to read the document, 
but the streams were more efficient but not supported by older readers. But I'm 
still trying to figure this out.

 

Best regards

Daniel

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



"The execution of the download was interrupted" build errors

2021-04-21 Thread Tilman Hausherr

This is the cause

https://github.com/jeremylong/DependencyCheck/issues/3307

https://github.com/jeremylong/DependencyCheck/issues/3306

if it doesn't go away soon, then I'll try the workaround described

Tilman


-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Build failed in Jenkins: PDFBox » PDFBox-trunk #653

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 2.01 KB...]
[PDFBox-trunk] $ /home/jenkins/tools/java/latest1.8/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/apache-maven-3.6.3 
/home/jenkins/jenkins-agent/slave.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 46841
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 clean 
deploy -Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit 
-Dorg.apache.pdfbox.examples.pdmodel.tsa=http://time.certum.pl
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< 

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk17 » PDFBox parent #264

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 45443
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
/home/jenkins/workspace/PDFBox/PDFBox-Trunk-jdk17/pom.xml clean install 
-Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk17 #264

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 2.02 KB...]
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 62 implicit excludes (use -debug for more details).
[INFO] 1 explicit excludes (use -debug 

Build failed in Jenkins: PDFBox » PDFBox-trunk » PDFBox parent #653

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 46841
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
/home/jenkins/jenkins-agent/workspace/PDFBox/PDFBox-trunk/pom.xml clean deploy 
-Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit 
-Dorg.apache.pdfbox.examples.pdmodel.tsa=http://time.certum.pl
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (default) @ 

Build failed in Jenkins: PDFBox » PDFBox-2.0.x » PDFBox parent #347

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 35701
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f /home/jenkins/workspace/PDFBox/PDFBox-2.0.x/pom.xml 
clean deploy -Ppedantic -Dmaven.source.skip=true
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] PDFBox reactor [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 2.0.24-SNAPSHOT[1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ pdfbox-parent ---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.17:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- dependency-check-maven:6.1.5:check (default) @ pdfbox-parent ---
[INFO] Checking for updates
[INFO] Download Started for NVD CVE - Modified
[INFO] Download Complete for NVD CVE - Modified  (665 ms)
[INFO] Processing Started for NVD CVE - Modified
[ERROR] The execution of the download was interrupted
org.owasp.dependencycheck.data.update.exception.UpdateException: The execution 
of the download was interrupted
at org.owasp.dependencycheck.data.update.NvdCveUpdater.performUpdate 
(NvdCveUpdater.java:317)
at org.owasp.dependencycheck.data.update.NvdCveUpdater.update 
(NvdCveUpdater.java:125)
at org.owasp.dependencycheck.Engine.doUpdates (Engine.java:860)
at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase 
(Engine.java:667)
at org.owasp.dependencycheck.Engine.analyzeDependencies (Engine.java:593)
at 

Build failed in Jenkins: PDFBox » PDFBox-2.0.x #347

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 1.36 KB...]
Deleting 

Deleting 

Updating http://svn.apache.org/repos/asf/pdfbox/branches/2.0 at revision 
'2021-04-22T02:54:21.296 +' --quiet
At revision 1889086

No changes for http://svn.apache.org/repos/asf/pdfbox/branches/2.0 since the 
previous build
Parsing POMs
Established TCP socket on 35701
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-2.0.x] $ /home/jenkins/tools/java/latest1.8/bin/java -cp 
/home/jenkins/maven35-agent.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/apache-maven-3.6.3 
/home/jenkins/slave.jar /home/jenkins/maven35-interceptor.jar 
/home/jenkins/maven3-interceptor-commons.jar 35701
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 clean 
deploy -Ppedantic -Dmaven.source.skip=true
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] PDFBox reactor [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 2.0.24-SNAPSHOT[1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ pdfbox-parent ---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.17:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.

[jira] [Closed] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr closed PDFBOX-5173.
---
Resolution: Not A Bug

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.24
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> portable_collection_good.pdf, screenshot-1.png, 卷内目录.pdf, 备考表.pdf, 封面.pdf, 
> 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17327068#comment-17327068
 ] 

Tilman Hausherr commented on PDFBOX-5173:
-

I've improved the javadoc (see commits in the related JIRA issue). See also  
[^portable_collection_good.pdf] which I created with the corrected code. You 
can inspect the PDFs with PDFDebugger (use "View", "Show internal structure") 
to see the difference in the name tree.
 !screenshot-1.png! 

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.24
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> portable_collection_good.pdf, screenshot-1.png, 卷内目录.pdf, 备考表.pdf, 封面.pdf, 
> 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-5173:

Attachment: screenshot-1.png

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.24
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> portable_collection_good.pdf, screenshot-1.png, 卷内目录.pdf, 备考表.pdf, 封面.pdf, 
> 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-5173:

Attachment: portable_collection_good.pdf

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> portable_collection_good.pdf, 卷内目录.pdf, 备考表.pdf, 封面.pdf, 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-5173:

Affects Version/s: 2.0.24

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.24
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> portable_collection_good.pdf, 卷内目录.pdf, 备考表.pdf, 封面.pdf, 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk17 » PDFBox parent #263

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 39059
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
/home/jenkins/jenkins-agent/workspace/PDFBox/PDFBox-Trunk-jdk17/pom.xml clean 
install -Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 62 implicit 

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk17 #263

2021-04-21 Thread Apache Jenkins Server
See 


Changes:

[Tilman Hausherr] PDFBOX-4892: fix typo, as suggested by valerybokov

[Tilman Hausherr] PDFBOX-5164: improve javadoc

[Tilman Hausherr] PDFBOX-5164: improve javadoc


--
[...truncated 1.81 KB...]
[PDFBox-Trunk-jdk17] $ /home/jenkins/tools/java/latest17/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/apache-maven-3.6.3 
/home/jenkins/jenkins-agent/slave.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 39059
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< 

Build failed in Jenkins: PDFBox » PDFBox-trunk #652

2021-04-21 Thread Apache Jenkins Server
See 


Changes:

[Tilman Hausherr] PDFBOX-4892: fix typo, as suggested by valerybokov


--
[...truncated 871 B...]
[PDFBox-trunk] $ /home/jenkins/tools/java/latest1.8/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/apache-maven-3.6.3 
/home/jenkins/jenkins-agent/slave.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 44485
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 clean 
deploy -Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit 
-Dorg.apache.pdfbox.examples.pdmodel.tsa=http://time.certum.pl
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info[INFO] 

[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]

[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for 

Build failed in Jenkins: PDFBox » PDFBox-trunk » PDFBox parent #652

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 44485
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
/home/jenkins/jenkins-agent/workspace/PDFBox/PDFBox-trunk/pom.xml clean deploy 
-Dskip-bavaria=false -Ppedantic -Dmaven.source.skip=true 
org.sonatype.ossindex.maven:ossindex-maven-plugin:audit 
-Dorg.apache.pdfbox.examples.pdmodel.tsa=http://time.certum.pl
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info[INFO] 

[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox  [pom]

[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] Downloading from Nexus: 
http://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT [1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.7.0:process 
(process-resource-bundles) @ pdfbox-parent ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.20:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar=destfile=
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (default) @ 

Build failed in Jenkins: PDFBox » PDFBox-2.0.x #346

2021-04-21 Thread Apache Jenkins Server
See 


Changes:

[Tilman Hausherr] PDFBOX-4892: fix typo, as suggested by valerybokov


--
[...truncated 1.02 KB...]
Deleting 

Deleting 

Deleting 

Updating http://svn.apache.org/repos/asf/pdfbox/branches/2.0 at revision 
'2021-04-21T22:49:57.550 +' --quiet
At revision 1889081

Parsing POMs
Established TCP socket on 38611
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-2.0.x] $ /home/jenkins/tools/java/latest1.8/bin/java -cp 
/home/jenkins/maven35-agent.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/apache-maven-3.6.3/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/apache-maven-3.6.3 
/home/jenkins/slave.jar /home/jenkins/maven35-interceptor.jar 
/home/jenkins/maven3-interceptor-commons.jar 38611
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 clean 
deploy -Ppedantic -Dmaven.source.skip=true
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] PDFBox reactor [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 2.0.24-SNAPSHOT[1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ pdfbox-parent ---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.17:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over 

Build failed in Jenkins: PDFBox » PDFBox-2.0.x » PDFBox parent #346

2021-04-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 38611
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f /home/jenkins/workspace/PDFBox/PDFBox-2.0.x/pom.xml 
clean deploy -Ppedantic -Dmaven.source.skip=true
[INFO] Scanning for projects...
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox parent  [pom]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache Preflight[bundle]
[INFO] Apache Preflight application[bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application   [bundle]
[INFO] Apache PDFBox Debugger application  [bundle]
[INFO] Apache PDFBox examples [jar]
[INFO] PDFBox reactor [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building PDFBox parent 2.0.24-SNAPSHOT[1/12]
[INFO] [ pom ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ pdfbox-parent ---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.17:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default) @ pdfbox-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
pdfbox-parent ---
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- dependency-check-maven:6.1.5:check (default) @ pdfbox-parent ---
[INFO] Checking for updates
[INFO] Download Started for NVD CVE - Modified
[INFO] Download Complete for NVD CVE - Modified  (669 ms)
[INFO] Processing Started for NVD CVE - Modified
[ERROR] The execution of the download was interrupted
org.owasp.dependencycheck.data.update.exception.UpdateException: The execution 
of the download was interrupted
at org.owasp.dependencycheck.data.update.NvdCveUpdater.performUpdate 
(NvdCveUpdater.java:317)
at org.owasp.dependencycheck.data.update.NvdCveUpdater.update 
(NvdCveUpdater.java:125)
at org.owasp.dependencycheck.Engine.doUpdates (Engine.java:860)
at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase 
(Engine.java:667)
at org.owasp.dependencycheck.Engine.analyzeDependencies (Engine.java:593)
at 

[jira] [Commented] (PDFBOX-4892) Improve code quality (4)

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326839#comment-17326839
 ] 

ASF subversion and git services commented on PDFBOX-4892:
-

Commit 1889073 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1889073 ]

PDFBOX-4892: fix typo, as suggested by valerybokov

> Improve code quality (4)
> 
>
> Key: PDFBOX-4892
> URL: https://issues.apache.org/jira/browse/PDFBOX-4892
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.20
>Reporter: Tilman Hausherr
>Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4892) Improve code quality (4)

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326838#comment-17326838
 ] 

ASF subversion and git services commented on PDFBOX-4892:
-

Commit 1889072 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1889072 ]

PDFBOX-4892: fix typo, as suggested by valerybokov

> Improve code quality (4)
> 
>
> Key: PDFBOX-4892
> URL: https://issues.apache.org/jira/browse/PDFBOX-4892
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.20
>Reporter: Tilman Hausherr
>Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-5136) Remove COSDocument#finalize

2021-04-21 Thread Jira


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler resolved PDFBOX-5136.

Resolution: Fixed

I've decided to leave the 2.0-branch unchanged to avoid possible side effects 
due to the differences within the implementation

> Remove COSDocument#finalize
> ---
>
> Key: PDFBOX-5136
> URL: https://issues.apache.org/jira/browse/PDFBOX-5136
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing, PDModel
>Affects Versions: 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
>
> PDDocument implements the Closeable interface a closes the underlying 
> instance of COSDocument once it is closed itself, so that there is no need to 
> use the finalize method to perform a sanity check about not closed resources. 
> Furthermore it is a bad idea to overwrite finalize for different good 
> reasons. See PDFBOX-4202 for some additional information



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5171) Slow PDColorSpace.toRGBImageAWT when processing many pixel sized chuncks

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326728#comment-17326728
 ] 

Tilman Hausherr commented on PDFBOX-5171:
-

Yes, it's that one.

> Slow PDColorSpace.toRGBImageAWT when processing many pixel sized chuncks
> 
>
> Key: PDFBOX-5171
> URL: https://issues.apache.org/jira/browse/PDFBOX-5171
> Project: PDFBox
>  Issue Type: Bug
>Reporter: Oliver Schmidtmer
>Priority: Major
> Attachments: EloPdfPrint_20210420132413502.pdf
>
>
> The attached PDF has a table which is embedded as an image.
> This image is processed in PDColorSpace.toRGBImageAWT(...) as
>  many little chuncks of mostly 1x1 or 2x1 pixels and takes very long.
>  When changing the function from a ColorConvertOp to drawing this is much 
> faster (~2s vs. ~60s). It seems for many small images the ColorConvertOp has 
> a big overhead.
> So I propose to change the implementation to:
> {code:java}
> protected BufferedImage toRGBImageAWT(WritableRaster raster, ColorSpace 
> colorSpace)
> {
> //
> // WARNING: this method is performance sensitive, modify with care!
> //
> // ICC Profile color transforms are only fast when performed using 
> ColorConvertOp
> ColorModel colorModel = new ComponentColorModel(colorSpace, false, 
> false,
> Transparency.OPAQUE, raster.getDataBuffer().getDataType());
> BufferedImage src = new BufferedImage(colorModel, raster, false, 
> null);
> BufferedImage dest = new BufferedImage(raster.getWidth(), 
> raster.getHeight(),
> BufferedImage.TYPE_INT_RGB);
> Graphics2D g2d = (Graphics2D) dest.getGraphics();
> g2d.drawImage(src, 0, 0, null);
> g2d.dispose();
> return dest;
> }
> {code}
> or
> {code:java}
> protected BufferedImage toRGBImageAWT(WritableRaster raster, ColorSpace 
> colorSpace)
> {
> //
> // WARNING: this method is performance sensitive, modify with care!
> //
> // ICC Profile color transforms are only fast when performed using 
> ColorConvertOp
> ColorModel colorModel = new ComponentColorModel(colorSpace, false, 
> false,
> Transparency.OPAQUE, raster.getDataBuffer().getDataType());
> BufferedImage src = new BufferedImage(colorModel, raster, false, 
> null);
> BufferedImage dest = new BufferedImage(raster.getWidth(), 
> raster.getHeight(),
> BufferedImage.TYPE_INT_RGB);
> if (src.getWidth() > 1 && src.getHeight() > 1)
> {
> ColorConvertOp op = new ColorConvertOp(null);
> op.filter(src, dest);
> }
> else
> {
> Graphics2D g2d = (Graphics2D) dest.getGraphics();
> g2d.drawImage(src, 0, 0, null);
> g2d.dispose();
> }
> return dest;
> }
> {code}
> if the ColorConvertOp is still faster in the normal case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5164) Create portable collection PDF

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326696#comment-17326696
 ] 

ASF subversion and git services commented on PDFBOX-5164:
-

Commit 1889068 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1889068 ]

PDFBOX-5164: improve javadoc

> Create portable collection PDF
> --
>
> Key: PDFBOX-5164
> URL: https://issues.apache.org/jira/browse/PDFBOX-5164
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.18
> Environment: java
>Reporter: zhouxiaolong
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.24, 3.0.0 PDFBox
>
> Attachments: CreatePortableCollection.java, MakePackage.java, 
> PortableCollection.pdf, collection.pdf, image-2021-04-15-16-02-42-451.png, 
> screenshot-1.png, tika-output.json, viewfiles - 副本.pdf
>
>
> !image-2021-04-15-16-02-42-451.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5164) Create portable collection PDF

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326695#comment-17326695
 ] 

ASF subversion and git services commented on PDFBOX-5164:
-

Commit 1889067 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1889067 ]

PDFBOX-5164: improve javadoc

> Create portable collection PDF
> --
>
> Key: PDFBOX-5164
> URL: https://issues.apache.org/jira/browse/PDFBOX-5164
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.18
> Environment: java
>Reporter: zhouxiaolong
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.24, 3.0.0 PDFBox
>
> Attachments: CreatePortableCollection.java, MakePackage.java, 
> PortableCollection.pdf, collection.pdf, image-2021-04-15-16-02-42-451.png, 
> screenshot-1.png, tika-output.json, viewfiles - 副本.pdf
>
>
> !image-2021-04-15-16-02-42-451.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5164) Create portable collection PDF

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326694#comment-17326694
 ] 

ASF subversion and git services commented on PDFBOX-5164:
-

Commit 1889066 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1889066 ]

PDFBOX-5164: improve javadoc

> Create portable collection PDF
> --
>
> Key: PDFBOX-5164
> URL: https://issues.apache.org/jira/browse/PDFBOX-5164
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.18
> Environment: java
>Reporter: zhouxiaolong
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.24, 3.0.0 PDFBox
>
> Attachments: CreatePortableCollection.java, MakePackage.java, 
> PortableCollection.pdf, collection.pdf, image-2021-04-15-16-02-42-451.png, 
> screenshot-1.png, tika-output.json, viewfiles - 副本.pdf
>
>
> !image-2021-04-15-16-02-42-451.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5164) Create portable collection PDF

2021-04-21 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326693#comment-17326693
 ] 

ASF subversion and git services commented on PDFBOX-5164:
-

Commit 1889065 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1889065 ]

PDFBOX-5164: improve javadoc

> Create portable collection PDF
> --
>
> Key: PDFBOX-5164
> URL: https://issues.apache.org/jira/browse/PDFBOX-5164
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.0.18
> Environment: java
>Reporter: zhouxiaolong
>Assignee: Tilman Hausherr
>Priority: Major
> Fix For: 2.0.24, 3.0.0 PDFBox
>
> Attachments: CreatePortableCollection.java, MakePackage.java, 
> PortableCollection.pdf, collection.pdf, image-2021-04-15-16-02-42-451.png, 
> screenshot-1.png, tika-output.json, viewfiles - 副本.pdf
>
>
> !image-2021-04-15-16-02-42-451.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5171) Slow PDColorSpace.toRGBImageAWT when processing many pixel sized chuncks

2021-04-21 Thread Oliver Schmidtmer (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326685#comment-17326685
 ] 

Oliver Schmidtmer commented on PDFBOX-5171:
---

I suppose you are refering to PDFBOX-5051?

I have to confess that the file there, slowpdfbox.pdf, seems to be also created 
by our PDF Printer. So that is exactly the same issue.

> Slow PDColorSpace.toRGBImageAWT when processing many pixel sized chuncks
> 
>
> Key: PDFBOX-5171
> URL: https://issues.apache.org/jira/browse/PDFBOX-5171
> Project: PDFBox
>  Issue Type: Bug
>Reporter: Oliver Schmidtmer
>Priority: Major
> Attachments: EloPdfPrint_20210420132413502.pdf
>
>
> The attached PDF has a table which is embedded as an image.
> This image is processed in PDColorSpace.toRGBImageAWT(...) as
>  many little chuncks of mostly 1x1 or 2x1 pixels and takes very long.
>  When changing the function from a ColorConvertOp to drawing this is much 
> faster (~2s vs. ~60s). It seems for many small images the ColorConvertOp has 
> a big overhead.
> So I propose to change the implementation to:
> {code:java}
> protected BufferedImage toRGBImageAWT(WritableRaster raster, ColorSpace 
> colorSpace)
> {
> //
> // WARNING: this method is performance sensitive, modify with care!
> //
> // ICC Profile color transforms are only fast when performed using 
> ColorConvertOp
> ColorModel colorModel = new ComponentColorModel(colorSpace, false, 
> false,
> Transparency.OPAQUE, raster.getDataBuffer().getDataType());
> BufferedImage src = new BufferedImage(colorModel, raster, false, 
> null);
> BufferedImage dest = new BufferedImage(raster.getWidth(), 
> raster.getHeight(),
> BufferedImage.TYPE_INT_RGB);
> Graphics2D g2d = (Graphics2D) dest.getGraphics();
> g2d.drawImage(src, 0, 0, null);
> g2d.dispose();
> return dest;
> }
> {code}
> or
> {code:java}
> protected BufferedImage toRGBImageAWT(WritableRaster raster, ColorSpace 
> colorSpace)
> {
> //
> // WARNING: this method is performance sensitive, modify with care!
> //
> // ICC Profile color transforms are only fast when performed using 
> ColorConvertOp
> ColorModel colorModel = new ComponentColorModel(colorSpace, false, 
> false,
> Transparency.OPAQUE, raster.getDataBuffer().getDataType());
> BufferedImage src = new BufferedImage(colorModel, raster, false, 
> null);
> BufferedImage dest = new BufferedImage(raster.getWidth(), 
> raster.getHeight(),
> BufferedImage.TYPE_INT_RGB);
> if (src.getWidth() > 1 && src.getHeight() > 1)
> {
> ColorConvertOp op = new ColorConvertOp(null);
> op.filter(src, dest);
> }
> else
> {
> Graphics2D g2d = (Graphics2D) dest.getGraphics();
> g2d.drawImage(src, 0, 0, null);
> g2d.dispose();
> }
> return dest;
> }
> {code}
> if the ColorConvertOp is still faster in the normal case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326651#comment-17326651
 ] 

Tilman Hausherr edited comment on PDFBOX-5173 at 4/21/21, 4:11 PM:
---

That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have a HashMap do it for you, here's the modified code 
(only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new HashMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort ascending
sortDic.setItem(COSName.S, COSName.getPDFName("序号")); // "it identifies 
a field described in the parent collection dictionary"
collectionDic.setItem(COSName.TYPE, COSName.COLLECTION);
collectionDic.setItem(COSName.SCHEMA, schemaDict);
collectionDic.setItem(COSName.SORT, sortDic);
collectionDic.setItem(COSName.VIEW, COSName.D); // Details mode
COSDictionary fieldDict1 = new COSDictionary();
fieldDict1.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict1.setItem(COSName.SUBTYPE, COSName.N); // type: number类型 field
fieldDict1.setString(COSName.N, "序号"); // header text
fieldDict1.setInt(COSName.O, 1); // order on the screen
COSDictionary fieldDict2 = new COSDictionary();
fieldDict2.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict2.setItem(COSName.SUBTYPE, COSName.S); // type: text field
fieldDict2.setString(COSName.N, "文件类型");
fieldDict2.setInt(COSName.O, 2);
COSDictionary fieldDict3 = new COSDictionary();
fieldDict3.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict3.setItem(COSName.SUBTYPE, COSName.S); // type: String field
fieldDict3.setString(COSName.N, "文件名称");
fieldDict3.setInt(COSName.O, 3);
schemaDict.setItem("序号", fieldDict1); // field name (this is a key)
schemaDict.setItem("文件类型", fieldDict2);
schemaDict.setItem("文件名称", fieldDict3);
doc.getDocumentCatalog().getCOSObject().setItem(COSName.COLLECTION, 
collectionDic);
doc.getDocumentCatalog().setVersion("1.7");

List kids = new 
ArrayList();
int count = 0;
for (String childFile : childFiles) {
count++;
PDComplexFileSpecification fs = new PDComplexFileSpecification();
File attachment = new File(childFile);
PDEmbeddedFile ef = new PDEmbeddedFile(doc, new 
FileInputStream(attachment));

COSDictionary ciDict1 = new COSDictionary();
ciDict1.setItem(COSName.TYPE, COSName.COLLECTION_ITEM);
// use the field names from earlier
ciDict1.setInt("序号", count);
ciDict1.setString("文件类型", "filetype");
ciDict1.setString("文件名称",attachment.getName() );
fs.getCOSObject().setItem(COSName.CI, ciDict1);

fs.setFileDescription(attachment.getName().replace(".pdf","")); 
//文件描述
fs.setFileUnicode(attachment.getName()); //文件名

ef.setSubtype("application/pdf");  //参考mime文件类型
ef.setSize((int) attachment.length());
Calendar c=Calendar.getInstance();
c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
ef.setCreationDate(c);
ef.setModDate(c);
fs.setEmbeddedFile(ef);
map.put(attachment.getName(), fs);
//PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
//treeNode.setNames(Collections.singletonMap(attachment.getName(), 
fs));
//kids.add(treeNode);
}

PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
treeNode.setNames(map);
kids.add(treeNode);

efTree.setKids(kids);
{code}


was (Author: tilman):
That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have a TreeMap do it for you, here's the modified code 
(only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new TreeMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort 

[jira] [Comment Edited] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326651#comment-17326651
 ] 

Tilman Hausherr edited comment on PDFBOX-5173 at 4/21/21, 4:08 PM:
---

That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have the TreeMap do it for you, here's the modified 
code (only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new TreeMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort ascending
sortDic.setItem(COSName.S, COSName.getPDFName("序号")); // "it identifies 
a field described in the parent collection dictionary"
collectionDic.setItem(COSName.TYPE, COSName.COLLECTION);
collectionDic.setItem(COSName.SCHEMA, schemaDict);
collectionDic.setItem(COSName.SORT, sortDic);
collectionDic.setItem(COSName.VIEW, COSName.D); // Details mode
COSDictionary fieldDict1 = new COSDictionary();
fieldDict1.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict1.setItem(COSName.SUBTYPE, COSName.N); // type: number类型 field
fieldDict1.setString(COSName.N, "序号"); // header text
fieldDict1.setInt(COSName.O, 1); // order on the screen
COSDictionary fieldDict2 = new COSDictionary();
fieldDict2.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict2.setItem(COSName.SUBTYPE, COSName.S); // type: text field
fieldDict2.setString(COSName.N, "文件类型");
fieldDict2.setInt(COSName.O, 2);
COSDictionary fieldDict3 = new COSDictionary();
fieldDict3.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict3.setItem(COSName.SUBTYPE, COSName.S); // type: String field
fieldDict3.setString(COSName.N, "文件名称");
fieldDict3.setInt(COSName.O, 3);
schemaDict.setItem("序号", fieldDict1); // field name (this is a key)
schemaDict.setItem("文件类型", fieldDict2);
schemaDict.setItem("文件名称", fieldDict3);
doc.getDocumentCatalog().getCOSObject().setItem(COSName.COLLECTION, 
collectionDic);
doc.getDocumentCatalog().setVersion("1.7");

List kids = new 
ArrayList();
int count = 0;
for (String childFile : childFiles) {
count++;
PDComplexFileSpecification fs = new PDComplexFileSpecification();
File attachment = new File(childFile);
PDEmbeddedFile ef = new PDEmbeddedFile(doc, new 
FileInputStream(attachment));

COSDictionary ciDict1 = new COSDictionary();
ciDict1.setItem(COSName.TYPE, COSName.COLLECTION_ITEM);
// use the field names from earlier
ciDict1.setInt("序号", count);
ciDict1.setString("文件类型", "filetype");
ciDict1.setString("文件名称",attachment.getName() );
fs.getCOSObject().setItem(COSName.CI, ciDict1);

fs.setFileDescription(attachment.getName().replace(".pdf","")); 
//文件描述
fs.setFileUnicode(attachment.getName()); //文件名

ef.setSubtype("application/pdf");  //参考mime文件类型
ef.setSize((int) attachment.length());
Calendar c=Calendar.getInstance();
c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
ef.setCreationDate(c);
ef.setModDate(c);
fs.setEmbeddedFile(ef);
map.put(attachment.getName(), fs);
//PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
//treeNode.setNames(Collections.singletonMap(attachment.getName(), 
fs));
//kids.add(treeNode);
}

PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
treeNode.setNames(map);
kids.add(treeNode);

efTree.setKids(kids);
{code}


was (Author: tilman):
That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have the HashMap do it for you, here's the modified 
code (only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new HashMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // 

[jira] [Comment Edited] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326651#comment-17326651
 ] 

Tilman Hausherr edited comment on PDFBOX-5173 at 4/21/21, 4:08 PM:
---

That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have a TreeMap do it for you, here's the modified code 
(only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new TreeMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort ascending
sortDic.setItem(COSName.S, COSName.getPDFName("序号")); // "it identifies 
a field described in the parent collection dictionary"
collectionDic.setItem(COSName.TYPE, COSName.COLLECTION);
collectionDic.setItem(COSName.SCHEMA, schemaDict);
collectionDic.setItem(COSName.SORT, sortDic);
collectionDic.setItem(COSName.VIEW, COSName.D); // Details mode
COSDictionary fieldDict1 = new COSDictionary();
fieldDict1.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict1.setItem(COSName.SUBTYPE, COSName.N); // type: number类型 field
fieldDict1.setString(COSName.N, "序号"); // header text
fieldDict1.setInt(COSName.O, 1); // order on the screen
COSDictionary fieldDict2 = new COSDictionary();
fieldDict2.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict2.setItem(COSName.SUBTYPE, COSName.S); // type: text field
fieldDict2.setString(COSName.N, "文件类型");
fieldDict2.setInt(COSName.O, 2);
COSDictionary fieldDict3 = new COSDictionary();
fieldDict3.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict3.setItem(COSName.SUBTYPE, COSName.S); // type: String field
fieldDict3.setString(COSName.N, "文件名称");
fieldDict3.setInt(COSName.O, 3);
schemaDict.setItem("序号", fieldDict1); // field name (this is a key)
schemaDict.setItem("文件类型", fieldDict2);
schemaDict.setItem("文件名称", fieldDict3);
doc.getDocumentCatalog().getCOSObject().setItem(COSName.COLLECTION, 
collectionDic);
doc.getDocumentCatalog().setVersion("1.7");

List kids = new 
ArrayList();
int count = 0;
for (String childFile : childFiles) {
count++;
PDComplexFileSpecification fs = new PDComplexFileSpecification();
File attachment = new File(childFile);
PDEmbeddedFile ef = new PDEmbeddedFile(doc, new 
FileInputStream(attachment));

COSDictionary ciDict1 = new COSDictionary();
ciDict1.setItem(COSName.TYPE, COSName.COLLECTION_ITEM);
// use the field names from earlier
ciDict1.setInt("序号", count);
ciDict1.setString("文件类型", "filetype");
ciDict1.setString("文件名称",attachment.getName() );
fs.getCOSObject().setItem(COSName.CI, ciDict1);

fs.setFileDescription(attachment.getName().replace(".pdf","")); 
//文件描述
fs.setFileUnicode(attachment.getName()); //文件名

ef.setSubtype("application/pdf");  //参考mime文件类型
ef.setSize((int) attachment.length());
Calendar c=Calendar.getInstance();
c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
ef.setCreationDate(c);
ef.setModDate(c);
fs.setEmbeddedFile(ef);
map.put(attachment.getName(), fs);
//PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
//treeNode.setNames(Collections.singletonMap(attachment.getName(), 
fs));
//kids.add(treeNode);
}

PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
treeNode.setNames(map);
kids.add(treeNode);

efTree.setKids(kids);
{code}


was (Author: tilman):
That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have the TreeMap do it for you, here's the modified 
code (only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new TreeMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort 

PDFBox 3.0 Top 5

2021-04-21 Thread sahy...@fileaffairs.de
Dear fellow Dev colleagues,

I'd like to ask you to send me what you belive are the top 5
enhancements to PDFBox with the forthcoming 3.0 release. I'd like to
use that as a starting point for our documentation as an intro article.

With kind regards 

Maruan



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326651#comment-17326651
 ] 

Tilman Hausherr commented on PDFBOX-5173:
-

That's because your name tree isn't properly sorted, something goes wrong 
there. The easiest is to have the HashMap do it for you, here's the modified 
code (only beginning and end are modified)
{code}
PDEmbeddedFilesNameTreeNode efTree = new PDEmbeddedFilesNameTreeNode();

Map map = new HashMap<>();

// 创建表格属性
COSDictionary collectionDic = new COSDictionary();
COSDictionary schemaDict = new COSDictionary();
schemaDict.setItem(COSName.TYPE, COSName.COLLECTION_SCHEMA);
COSDictionary sortDic = new COSDictionary();
sortDic.setItem(COSName.TYPE, COSName.COLLECTION_SORT);
sortDic.setString(COSName.A, "true"); // sort ascending
sortDic.setItem(COSName.S, COSName.getPDFName("序号")); // "it identifies 
a field described in the parent collection dictionary"
collectionDic.setItem(COSName.TYPE, COSName.COLLECTION);
collectionDic.setItem(COSName.SCHEMA, schemaDict);
collectionDic.setItem(COSName.SORT, sortDic);
collectionDic.setItem(COSName.VIEW, COSName.D); // Details mode
COSDictionary fieldDict1 = new COSDictionary();
fieldDict1.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict1.setItem(COSName.SUBTYPE, COSName.N); // type: number类型 field
fieldDict1.setString(COSName.N, "序号"); // header text
fieldDict1.setInt(COSName.O, 1); // order on the screen
COSDictionary fieldDict2 = new COSDictionary();
fieldDict2.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict2.setItem(COSName.SUBTYPE, COSName.S); // type: text field
fieldDict2.setString(COSName.N, "文件类型");
fieldDict2.setInt(COSName.O, 2);
COSDictionary fieldDict3 = new COSDictionary();
fieldDict3.setItem(COSName.TYPE, COSName.COLLECTION_FIELD);
fieldDict3.setItem(COSName.SUBTYPE, COSName.S); // type: String field
fieldDict3.setString(COSName.N, "文件名称");
fieldDict3.setInt(COSName.O, 3);
schemaDict.setItem("序号", fieldDict1); // field name (this is a key)
schemaDict.setItem("文件类型", fieldDict2);
schemaDict.setItem("文件名称", fieldDict3);
doc.getDocumentCatalog().getCOSObject().setItem(COSName.COLLECTION, 
collectionDic);
doc.getDocumentCatalog().setVersion("1.7");

List kids = new 
ArrayList();
int count = 0;
for (String childFile : childFiles) {
count++;
PDComplexFileSpecification fs = new PDComplexFileSpecification();
File attachment = new File(childFile);
PDEmbeddedFile ef = new PDEmbeddedFile(doc, new 
FileInputStream(attachment));

COSDictionary ciDict1 = new COSDictionary();
ciDict1.setItem(COSName.TYPE, COSName.COLLECTION_ITEM);
// use the field names from earlier
ciDict1.setInt("序号", count);
ciDict1.setString("文件类型", "filetype");
ciDict1.setString("文件名称",attachment.getName() );
fs.getCOSObject().setItem(COSName.CI, ciDict1);

fs.setFileDescription(attachment.getName().replace(".pdf","")); 
//文件描述
fs.setFileUnicode(attachment.getName()); //文件名

ef.setSubtype("application/pdf");  //参考mime文件类型
ef.setSize((int) attachment.length());
Calendar c=Calendar.getInstance();
c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
ef.setCreationDate(c);
ef.setModDate(c);
fs.setEmbeddedFile(ef);
map.put(attachment.getName(), fs);
//PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
//treeNode.setNames(Collections.singletonMap(attachment.getName(), 
fs));
//kids.add(treeNode);
}

PDEmbeddedFilesNameTreeNode treeNode = new 
PDEmbeddedFilesNameTreeNode();
treeNode.setNames(map);
kids.add(treeNode);

efTree.setKids(kids);
{code}

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 

[jira] [Commented] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Michael Klink (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326594#comment-17326594
 ] 

Michael Klink commented on PDFBOX-5170:
---

{quote}But do I understand the specification correctly that this is extra 
information for performance and not required to present the document 
correctly?{quote}
By _this_ you mean the cross reference tables and streams? In that case you 
understand it incorrectly: The correct way to parse a PDF is by the cross 
references. Parsing from start to end and trying to recognize the objects on 
the run, is very error prone. 

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Daniel Persson (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326553#comment-17326553
 ] 

Daniel Persson commented on PDFBOX-5170:


Hi [~mkl]

 

I can verify that your fix solves the issue. Another thing that might be 
related when reading the specification about Cross-Reference Stream (new 
knowledge for me) is that they may not be encrypted and need a different flag 
if compressed.

But do I understand the specification correctly that this is extra information 
for performance and not required to present the document correctly?

 

Best regards

Daniel

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Michael Klink (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326506#comment-17326506
 ] 

Michael Klink edited comment on PDFBOX-5170 at 4/21/21, 1:22 PM:
-

The problem here is that the original file is a hybrid reference file. That 
makes {{PDDocument.save}} attempt to create a hybrid file, too, and fail 
horribly while doing so.
 If one hides the fact that the original file was hybrid, {{PDDocument.save}} 
creates a proper PDF with a pure cross reference stream:
{code:java}
PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
testPdf.getDocument().getTrailer().removeItem(COSName.XREF_STM);
testPdf.save(new File("output-fixed.pdf"));
testPdf.close();
{code}

By the way, the fact that PDFBox does not stumble while parsing the file saved 
without the fix, implies that PDFBox incorrectly parses hybrid reference 
documents: Parsing them as described in the specification results in particular 
in a {{null}} *Pages* entry in the catalog of the broken example while PDFBox 
instead finds a *Pages* dictionary.


was (Author: mkl):
The problem here is that the original file is a hybrid reference file. That 
makes {{PDDocument.save}} attempt to create a hybrid file, too, and fail 
horribly while doing so.
If one hides the fact that the original file was hybrid, {{PDDocument.save}} 
creates a proper PDF with a pure cross reference stream:
{code:java}
PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
testPdf.getDocument().getTrailer().removeItem(COSName.XREF_STM);
testPdf.save(new File("output-fixed.pdf"));
testPdf.close();
{code}

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Michael Klink (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326506#comment-17326506
 ] 

Michael Klink commented on PDFBOX-5170:
---

The problem here is that the original file is a hybrid reference file. That 
makes {{PDDocument.save}} attempt to create a hybrid file, too, and fail 
horribly while doing so.
If one hides the fact that the original file was hybrid, {{PDDocument.save}} 
creates a proper PDF with a pure cross reference stream:
{code:java}
PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
testPdf.getDocument().getTrailer().removeItem(COSName.XREF_STM);
testPdf.save(new File("output-fixed.pdf"));
testPdf.close();
{code}

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread tanqichao (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

tanqichao updated PDFBOX-5173:
--
Attachment: image-2021-04-21-17-44-46-925.png

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> 卷内目录.pdf, 备考表.pdf, 封面.pdf, 深高顾api.pdf
>
>
> We're using pdfbox 2.0.24-snapshot
>  
> !image-2021-04-21-16-54-33-065.png!
>  
> !image-2021-04-21-16-55-04-460.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread tanqichao (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

tanqichao updated PDFBOX-5173:
--
Description: 
 

!image-2021-04-21-17-44-46-925.png!

 

!image-2021-04-21-17-44-21-334.png!

  was:
We're using pdfbox 2.0.24-snapshot

 

!image-2021-04-21-16-54-33-065.png!

 

!image-2021-04-21-16-55-04-460.png!


> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> 卷内目录.pdf, 备考表.pdf, 封面.pdf, 深高顾api.pdf
>
>
>  
> !image-2021-04-21-17-44-46-925.png!
>  
> !image-2021-04-21-17-44-21-334.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread tanqichao (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

tanqichao updated PDFBOX-5173:
--
Attachment: image-2021-04-21-17-44-21-334.png

> After Create portable collection PDF package and opening it with Acrobat 
> Reader DC, some PDFs in the package will be blank pages after clicking open
> 
>
> Key: PDFBOX-5173
> URL: https://issues.apache.org/jira/browse/PDFBOX-5173
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Documentation
> Environment: Java 1.8  pdfbox 2.0.24-snapshot
>Reporter: tanqichao
>Priority: Major
> Attachments: SortAttachments.java, create_reslut.pdf, 
> image-2021-04-21-17-44-21-334.png, image-2021-04-21-17-44-46-925.png, 
> 卷内目录.pdf, 备考表.pdf, 封面.pdf, 深高顾api.pdf
>
>
> We're using pdfbox 2.0.24-snapshot
>  
> !image-2021-04-21-16-54-33-065.png!
>  
> !image-2021-04-21-16-55-04-460.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Created] (PDFBOX-5173) After Create portable collection PDF package and opening it with Acrobat Reader DC, some PDFs in the package will be blank pages after clicking open

2021-04-21 Thread tanqichao (Jira)
tanqichao created PDFBOX-5173:
-

 Summary: After Create portable collection PDF package and opening 
it with Acrobat Reader DC, some PDFs in the package will be blank pages after 
clicking open
 Key: PDFBOX-5173
 URL: https://issues.apache.org/jira/browse/PDFBOX-5173
 Project: PDFBox
  Issue Type: Improvement
  Components: Documentation
 Environment: Java 1.8  pdfbox 2.0.24-snapshot
Reporter: tanqichao
 Attachments: SortAttachments.java, create_reslut.pdf, 卷内目录.pdf, 
备考表.pdf, 封面.pdf, 深高顾api.pdf

We're using pdfbox 2.0.24-snapshot

 

!image-2021-04-21-16-54-33-065.png!

 

!image-2021-04-21-16-55-04-460.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-5170) Compression creates issue with Page structure

2021-04-21 Thread Daniel Persson (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17326282#comment-17326282
 ] 

Daniel Persson commented on PDFBOX-5170:


Hi Tilman.

 

I've tested it now with SNAPSHOT pdfbox-3.0.0-20210420.210105-2628.jar.

 

The issue still exists. Compressing the file makes it not readable. If I turn 
compression off, it will be readable.

In the example above, output.pdf is not readable, but output2.pdf is.

 

Best regards

Daniel

> Compression creates issue with Page structure
> -
>
> Key: PDFBOX-5170
> URL: https://issues.apache.org/jira/browse/PDFBOX-5170
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 3.0.0 PDFBox
>Reporter: Daniel Persson
>Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org