[jira] [Assigned] (PDFBOX-5725) CharStringCommand overly complex

2024-01-21 Thread Jira


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

Andreas Lehmkühler reassigned PDFBOX-5725:
--

Assignee: Andreas Lehmkühler

> CharStringCommand overly complex
> 
>
> Key: PDFBOX-5725
> URL: https://issues.apache.org/jira/browse/PDFBOX-5725
> Project: PDFBox
>  Issue Type: Improvement
>Reporter: Axel Howind
>Assignee: Andreas Lehmkühler
>Priority: Minor
> Attachments: coding_convention,_use_switch.patch, 
> refactor_CharStringCommand.patch
>
>
> The CharStringCommand class is quite complex and difficult to understand what 
> it does in detail. I suggest a refactoring to make the code shorter and 
> easier to understand. It should also perform better after the refactoring.
> I have prepared a patch that
>  * turns CharStringCommand into an enum
>  * removes the  internal Key class
>  * removes the different maps used for lookup and replaces them with a single 
> array for faster lookup



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Updated] (PDFBOX-5725) CharStringCommand overly complex

2024-01-21 Thread Jira


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

Andreas Lehmkühler updated PDFBOX-5725:
---
Fix Version/s: 4.0.0

> CharStringCommand overly complex
> 
>
> Key: PDFBOX-5725
> URL: https://issues.apache.org/jira/browse/PDFBOX-5725
> Project: PDFBox
>  Issue Type: Improvement
>Reporter: Axel Howind
>Assignee: Andreas Lehmkühler
>Priority: Minor
> Fix For: 4.0.0
>
> Attachments: coding_convention,_use_switch.patch, 
> refactor_CharStringCommand.patch
>
>
> The CharStringCommand class is quite complex and difficult to understand what 
> it does in detail. I suggest a refactoring to make the code shorter and 
> easier to understand. It should also perform better after the refactoring.
> I have prepared a patch that
>  * turns CharStringCommand into an enum
>  * removes the  internal Key class
>  * removes the different maps used for lookup and replaces them with a single 
> array for faster lookup



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



Jenkins build is back to normal : PDFBox » PDFBox-Trunk-jdk21 » Apache PDFBox parent #955

2024-01-21 Thread Apache Jenkins Server
See 



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



Jenkins build is back to normal : PDFBox » PDFBox-Trunk-jdk21 #955

2024-01-21 Thread Apache Jenkins Server
See 



-
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-jdk21 #954

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Started by user Tilman Hausherr
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

Checking out a fresh workspace because there's no workspace at 

Cleaning local Directory .
Checking out http://svn.apache.org/repos/asf/pdfbox/trunk at revision 
'2024-01-21T18:55:54.311 +' --quiet
At revision 1915354

No changes for http://svn.apache.org/repos/asf/pdfbox/trunk since the previous 
build
Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 35663
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-Trunk-jdk21] $ /home/jenkins/tools/java/latest21/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/latest/boot/plexus-classworlds-2.7.0.jar:/home/jenkins/tools/maven/latest/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/latest 
/home/jenkins/jenkins-agent/agent.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 35663
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat che

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk21 » Apache PDFBox parent #954

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 35663
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 

 clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 10 licenses.
[INFO] 
[INFO] --- dependency-check:9.0.9:check (default) @ pdfbox-parent ---
[ERROR] Incompatible or corrupt database found. To resolve this issue please 
remove the existing database by running purge
[WARNING] Attempt to (de-)serialize anonymous class 
org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: 
https://jenkins.io/redirect/serialization-of-anonymous-classes/

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



Jenkins build is back to normal : PDFBox » PDFBox-3.0.x #205

2024-01-21 Thread Apache Jenkins Server
See 



-
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-jdk21 » Apache PDFBox parent #953

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 44675
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 

 clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 10 licenses.
[INFO] 
[INFO] --- dependency-check:9.0.9:check (default) @ pdfbox-parent ---
[ERROR] Incompatible or corrupt database found. To resolve this issue please 
remove the existing database by running purge
[WARNING] Attempt to (de-)serialize anonymous class 
org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: 
https://jenkins.io/redirect/serialization-of-anonymous-classes/

-
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-jdk21 #953

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Started by user Tilman Hausherr
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

Checking out a fresh workspace because there's no workspace at 

Cleaning local Directory .
Checking out http://svn.apache.org/repos/asf/pdfbox/trunk at revision 
'2024-01-21T18:41:16.891 +' --quiet
At revision 1915353

No changes for http://svn.apache.org/repos/asf/pdfbox/trunk since the previous 
build
Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 44675
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-Trunk-jdk21] $ /home/jenkins/tools/java/latest21/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/latest/boot/plexus-classworlds-2.7.0.jar:/home/jenkins/tools/maven/latest/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/latest 
/home/jenkins/jenkins-agent/agent.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 44675
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat che

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk21 #952

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Started by user Tilman Hausherr
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

Cleaning up 

Deleting 

Updating http://svn.apache.org/repos/asf/pdfbox/trunk at revision 
'2024-01-21T18:38:52.543 +' --quiet
At revision 1915353

No changes for http://svn.apache.org/repos/asf/pdfbox/trunk since the previous 
build
Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 34183
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-Trunk-jdk21] $ /home/jenkins/tools/java/latest21/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/latest/boot/plexus-classworlds-2.7.0.jar:/home/jenkins/tools/maven/latest/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/latest 
/home/jenkins/jenkins-agent/agent.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 34183
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -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
[INFO] 
[HUDSON] Collecting dependencies info
[INFO] Reactor Build Order:
[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] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk21 » Apache PDFBox parent #952

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 34183
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 

 clean install -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
[INFO] 
[HUDSON] Collecting dependencies info
[INFO] Reactor Build Order:
[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] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 10 licenses.
[INFO] 
[INFO] --- dependency-check:9.0.9:check (default) @ pdfbox-parent ---
[ERROR] Incompatible or corrupt database found. To resolve this issue please 
remove the existing database by running purge
[WARNING] Attempt to (de-)serialize anonymous class 
org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: 
https://jenkins.io/redirect/serialization-of-anonymous-classes/

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



Re: About https://issues.apache.org/jira/browse/PDFBOX-5704

2024-01-21 Thread Andreas Lehmkühler

I've fixed the issue in the trun k and the 3.0-branch.

The fix is limited to incorrect CID font definitions.

Let us know if there are any other cases and provide a sample.

Andreas

Am 21.01.24 um 11:23 schrieb Andreas Lehmkühler:
I had a look and found s solution based on the pdf.js implementation. 
I'm going to commit it once I've improved the code, for now it is still 
some kind of hacky.


And yes, PDFBOX-5704 is related to this proposal.

Please follow up on PDFBOX-5704

@Mike thanks for the valuable input

Andreas

Am 19.01.24 um 08:03 schrieb Andreas Lehmkühler:

Hi,

I'm not sure if both issues are similar. However, your proposal is an 
interesting idea and I guess it shouldn't be that hard to implement it.



Thanks for the input, I'm going to have a look.

Andreas

Am 19.01.24 um 04:49 schrieb Mike Li:

Hello team,

I recently encountered the problem that PDFBox cannot render Chinese, 
the problem is very similar to 
https://issues.apache.org/jira/browse/PDFBOX-5704.


In this case, the attached PDF file embedded a CCF font file, the 
correct font type/subtype should be /CIDFontType0 and /CIDFontType0C 
and should declare property /FontFile3. But it wrongly declared the 
subfont as a truetype, and it makes PDFBox uses TTF parser to parse 
the font file stream based on the declared type.


According to the spec, PDFBox does it right, but from the perspective 
of use, this looks more like a "bug", though this file would display 
good in other most used PDF readers (Adobe, Foxit, pdfjs etc.)


I have many years of working experience in PDF generation (iText, 
PDFBox, etc.), and I know that after a PDF is generated, as long as 
it can be displayed correctly in Adobe Reader, then it is considered 
correct. If another program cannot display it correctly, it will be 
considered a bug in other program. It's not fair, but it's reality. 
Many low-quality PDF generation tools/libraries are still widely used.


In pdf.js,  it will parse the font file first, and prefer the font 
type in font file rather than the type declared in font dictionary.

https://github.com/mozilla/pdf.js/blob/1cdbcfef821c7f6e81ea22fe68a8b815bca01c4e/src/core/fonts.js#L1052

So my question is "Is that possible that PDFBox provide some font 
processing workaround logic to handle such case?"


Thanks
Mike




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



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



-
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-jdk21 #951

2024-01-21 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-5704: detect and fix wrong CID font subtype 
inspired by the implementation of pdf.js as proposed by Mike Li on dev@


--
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

Cleaning up 

Deleting 

Updating http://svn.apache.org/repos/asf/pdfbox/trunk at revision 
'2024-01-21T17:23:10.376 +' --quiet
At revision 1915353

Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 33683
maven35-agent.jar already up to date
maven35-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[PDFBox-Trunk-jdk21] $ /home/jenkins/tools/java/latest21/bin/java -cp 
/home/jenkins/jenkins-agent/maven35-agent.jar:/home/jenkins/tools/maven/latest/boot/plexus-classworlds-2.7.0.jar:/home/jenkins/tools/maven/latest/conf/logging
 jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/latest 
/home/jenkins/jenkins-agent/agent.jar 
/home/jenkins/jenkins-agent/maven35-interceptor.jar 
/home/jenkins/jenkins-agent/maven3-interceptor-commons.jar 33683
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 
 
clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] Downloading from Nexus: 
https://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attac

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk21 » Apache PDFBox parent #951

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Established TCP socket on 33683
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 

 clean install -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
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache PDFBox parent   [pom]
[INFO] Apache PDFBox io[bundle]
[INFO] Apache FontBox  [bundle]
[INFO] Apache XmpBox   [bundle]
[INFO] Apache PDFBox   [bundle]
[INFO] Apache PDFBox Debugger [jar]
[INFO] Apache PDFBox tools[jar]
[INFO] Apache PDFBox application  [jar]
[INFO] Apache PDFBox Debugger application [jar]
[INFO] Apache PDFBox examples [jar]
[INFO] Apache PDFBox release  [pom]
[INFO] Downloading from Nexus: 
https://repository.apache.org/snapshots/org/sonatype/ossindex/maven/ossindex-maven-plugin/maven-metadata.xml
[INFO] 
[INFO] --< org.apache.pdfbox:pdfbox-parent >---
[INFO] Building Apache PDFBox parent 4.0.0-SNAPSHOT  [1/11]
[INFO]   from pom.xml
[INFO] [ pom ]-
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ pdfbox-parent ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (default) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion 
passed
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-java-version) @ pdfbox-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pdfbox-parent ---
[INFO] surefireArgLine set to 
-javaagent:/home/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=
[INFO] 
[INFO] --- remote-resources:3.1.0:process (process-resource-bundles) @ 
pdfbox-parent ---
[INFO] Preparing remote bundle 
org.apache.apache.resources:apache-jar-resource-bundle:1.5
[INFO] Copying 3 resources from 1 bundle.
[INFO] 
[INFO] --- jacoco:0.8.11:report (report) @ pdfbox-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- site:3.12.1:attach-descriptor (attach-descriptor) @ pdfbox-parent ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- source:3.3.0:jar-no-fork (attach-sources) @ pdfbox-parent ---
[INFO] Skipping source per configuration.
[INFO] 
[INFO] --- apache-rat:0.16:check (default) @ pdfbox-parent ---
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 10 licenses.
[INFO] 
[INFO] --- dependency-check:9.0.9:check (default) @ pdfbox-parent ---
[ERROR] Incompatible or corrupt database found. To resolve this issue please 
remove the existing database by running purge
[WARNING] Attempt to (de-)serialize anonymous class 
org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: 
https://jenkins.io/redirect/serialization-of-anonymous-classes/

-
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-3.0.x #204

2024-01-21 Thread Apache Jenkins Server
See 


Changes:


--
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds58 (tmp-22 ubuntu) in workspace 

Cleaning up 
Deleting 

Deleting 

Deleting 

Deleting 

Deleting 

Deleting 

Deleting 

Deleting 
Deleting 

Deleting 

Deleting 
Deleting 

Deleting 

Updating http://svn.apache.org/repos/asf/pdfbox/branches/3.0 at revision 
'2024-01-21T16:37:09.986 +' --quiet
ERROR: Failed to update http://svn.apache.org/repos/asf/pdfbox/branches/3.0
org.tmatesoft.svn.core.SVNException: svn: E204899: Cannot read from 
':
 

 (No such file or directory)
at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at 
org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForReading(SVNFileUtil.java:1780)
at 
org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForReading(SVNFileUtil.java:1762)
at 
org.tmatesoft.svn.core.internal.wc.admin.SVNTranslator.translate(SVNTranslator.java:175)
at 
org.tmatesoft.svn.core.internal.wc17.SVNWCContext$RunFileInstall.runOperation(SVNWCContext.java:4058)
at 
org.tmatesoft.svn.core.internal.wc17.SVNWCContext.dispatchWorkItem(SVNWCContext.java:3983)
at 
org.tmatesoft.svn.core.internal.wc17.SVNWCContext.wqRun(SVNWCContext.java:3966)
at 
org.tmatesoft.svn.core.internal.wc17.SVNReporter17.restoreFile(SVNReporter17.java:396)
at 
org.tmatesoft.svn.core.internal.wc17.SVNReporter17.restoreNode(SVNReporter17.java:217)
at 
org.tmatesoft.svn.core.internal.wc17.SVNReporter17.reportRevisionsAndDepths(SVNReporter17.java:305)
at 
org.tmatesoft.svn.core.internal.wc17.SVNReporter17.report(SVNReporter17.java:181)
at 
org.tmatesoft.svn.core.internal.io.dav.handlers.DAVEditorHandler.generateEditorRequest(DAVEditorHandler.java:109)
at 
org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1348)
at 
org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:859)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.updateInternal(SvnNgAbstractUpdate.java:263)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.update(SvnNgAbstractUpdate.java:115)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:40)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
at 
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
at 
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at 
org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at 
org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
at 
org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
at 
org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
at 
hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:165)
at 
hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
at 
hudson.scm.SubversionSCM$CheckOutUpdateTask.perform(SubversionSCM.java:1086)
at 
hudson.scm.SubversionSCM$CheckOutUpdateTask.run(SubversionSCM.java:1067)
at hudson.scm.SubversionSCM$CheckOutTask.invok

[jira] [Resolved] (PDFBOX-5704) char not rendered

2024-01-21 Thread Jira


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

Andreas Lehmkühler resolved PDFBOX-5704.

Resolution: Fixed

[~tilman] thanks for the fast feedback

The current fix is limited to wrong defined CID fonts. Other constellations 
could be handled as well but I haven't any sample pdf to test it.

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.2 PDFBox, 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Updated] (PDFBOX-5704) char not rendered

2024-01-21 Thread Jira


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

Andreas Lehmkühler updated PDFBOX-5704:
---
Fix Version/s: 3.0.2 PDFBox

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.2 PDFBox, 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5704) char not rendered

2024-01-21 Thread ASF subversion and git services (Jira)


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

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

Commit 1915352 from le...@apache.org in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1915352 ]

PDFBOX-5704: detect and fix wrong CID font subtype inspired by the 
implementation of pdf.js as proposed by Mike Li on dev@

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Comment Edited] (PDFBOX-5704) char not rendered

2024-01-21 Thread Jira


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

Andreas Lehmkühler edited comment on PDFBOX-5704 at 1/21/24 1:37 PM:
-

Mike Li mentioned the pdf.js implementation on dev@. Their parser tries to 
detect the embedded font type by reading the font itself and applies a fix if 
the font type of the font doesn't match with the type from the dictionary.

I've added a fix for CID fonts inspired by that implementation and now the 
attached pdf renders as expected.

[~tilman] please run your rendering tests to see if there are any issues, 
thanks in advance


was (Author: lehmi):
Mike Li mentioned the pdf.js implementation on dev@. Their parser tries to 
detect the embedded font type by reading the font itself and applies a fix if 
the font type of the font doesn't match with the type from the dictionary.

I've added a fix for CID fonts inspired by that implementation and now the 
attached pdf renders as expected.

[~tilman] please run your rendering test to see if there are some issues, 
thanks in advance

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5704) char not rendered

2024-01-21 Thread Jira


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

Andreas Lehmkühler commented on PDFBOX-5704:


Mike Li mentioned the pdf.js implementation on dev@. Their parser tries to 
detect the embedded font type by reading the font itself and applies a fix if 
the font type of the font doesn't match with the type from the dictionary.

I've added a fix for CID fonts inspired by that implementation and now the 
attached pdf renders as expected.

[~tilman] please run your rendering test to see if there are some issues, 
thanks in advance

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5704) char not rendered

2024-01-21 Thread ASF subversion and git services (Jira)


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

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

Commit 1915351 from le...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1915351 ]

PDFBOX-5704: detect and fix wrong CID font subtype inspired by the 
implementation of pdf.js as proposed by Mike Li on dev@

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Updated] (PDFBOX-5704) char not rendered

2024-01-21 Thread Jira


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

Andreas Lehmkühler updated PDFBOX-5704:
---
Fix Version/s: 4.0.0

> char not rendered
> -
>
> Key: PDFBOX-5704
> URL: https://issues.apache.org/jira/browse/PDFBOX-5704
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.29, 3.0.0 PDFBox
>Reporter: sunnyawake
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 4.0.0
>
> Attachments: 1.pdf
>
>
> the red char in the attached pdf can't be rendered.
> after debug pdfjs(which renders the char correctly), the font the char uses 
> is a cff font,not PDCIDFontType2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



Re: About https://issues.apache.org/jira/browse/PDFBOX-5704

2024-01-21 Thread Andreas Lehmkühler
I had a look and found s solution based on the pdf.js implementation. 
I'm going to commit it once I've improved the code, for now it is still 
some kind of hacky.


And yes, PDFBOX-5704 is related to this proposal.

Please follow up on PDFBOX-5704

@Mike thanks for the valuable input

Andreas

Am 19.01.24 um 08:03 schrieb Andreas Lehmkühler:

Hi,

I'm not sure if both issues are similar. However, your proposal is an 
interesting idea and I guess it shouldn't be that hard to implement it.



Thanks for the input, I'm going to have a look.

Andreas

Am 19.01.24 um 04:49 schrieb Mike Li:

Hello team,

I recently encountered the problem that PDFBox cannot render Chinese, 
the problem is very similar to 
https://issues.apache.org/jira/browse/PDFBOX-5704.


In this case, the attached PDF file embedded a CCF font file, the 
correct font type/subtype should be /CIDFontType0 and /CIDFontType0C 
and should declare property /FontFile3. But it wrongly declared the 
subfont as a truetype, and it makes PDFBox uses TTF parser to parse 
the font file stream based on the declared type.


According to the spec, PDFBox does it right, but from the perspective 
of use, this looks more like a "bug", though this file would display 
good in other most used PDF readers (Adobe, Foxit, pdfjs etc.)


I have many years of working experience in PDF generation (iText, 
PDFBox, etc.), and I know that after a PDF is generated, as long as it 
can be displayed correctly in Adobe Reader, then it is considered 
correct. If another program cannot display it correctly, it will be 
considered a bug in other program. It's not fair, but it's reality. 
Many low-quality PDF generation tools/libraries are still widely used.


In pdf.js,  it will parse the font file first, and prefer the font 
type in font file rather than the type declared in font dictionary.

https://github.com/mozilla/pdf.js/blob/1cdbcfef821c7f6e81ea22fe68a8b815bca01c4e/src/core/fonts.js#L1052

So my question is "Is that possible that PDFBox provide some font 
processing workaround logic to handle such case?"


Thanks
Mike




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



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