[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

{quote}> The other specifically supported platform is AS/400 
{quote}
Out of curiosity, I registered for PUB400.com.  It's running Java 8, but the 
default user permissions don't allow creation of an output queue. 路‍♂️

 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel commented on PDFBOX-5602:
--

 

Attached again due to missing Self Time columns

 

*3.0.0-SNAPSHOT*

 

!cpu-hot-spots-3.0.0-SNAPSHOT.PNG!

 

*3.0.0-alpha3*

!cpu-hot-spots-3.0.0-alpha3.PNG!

 

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT-1.PNG, cpu-hot-spots-3.0.0-SNAPSHOT.PNG, 
> cpu-hot-spots-3.0.0-alpha3-1.PNG, cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta data for this file except perhaps the last page number.
>  # Read the second file and process in similar fashion as in the step 1
>  # etc
> If Concatenation is possible, it would greatly reduce the cpu and memory 
> overhead and reduce processing time.
> I admit merging of such large number of PDF files is not typical but the 
> issue is valid.
> ^CException in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at java.base/java.util.Hashtable.rehash(Hashtable.java:419)
>     at java.base/java.util.Hashtable.addEntry(Hashtable.java:441)
>     at java.base/java.util.Hashtable.put(Hashtable.java:493)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.doWriteBodyCompressed(COSWriter.java:481)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1260)
>     at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:402)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1542)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1418)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1018)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:963)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:982)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:476)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:355)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:339)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:76)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:37)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
>     at picocli.CommandLine.access$1300(CommandLine.java:145)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
>     at picocli.CommandLine.execute(CommandLine.java:2078)
>     at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:76)
> Respectfully,
> Zbigniew
>  
>  



--
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-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel updated PDFBOX-5602:
-
Attachment: cpu-hot-spots-3.0.0-alpha3-1.PNG

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT-1.PNG, cpu-hot-spots-3.0.0-SNAPSHOT.PNG, 
> cpu-hot-spots-3.0.0-alpha3-1.PNG, cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta data for this file except perhaps the last page number.
>  # Read the second file and process in similar fashion as in the step 1
>  # etc
> If Concatenation is possible, it would greatly reduce the cpu and memory 
> overhead and reduce processing time.
> I admit merging of such large number of PDF files is not typical but the 
> issue is valid.
> ^CException in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at java.base/java.util.Hashtable.rehash(Hashtable.java:419)
>     at java.base/java.util.Hashtable.addEntry(Hashtable.java:441)
>     at java.base/java.util.Hashtable.put(Hashtable.java:493)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.doWriteBodyCompressed(COSWriter.java:481)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1260)
>     at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:402)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1542)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1418)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1018)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:963)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:982)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:476)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:355)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:339)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:76)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:37)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
>     at picocli.CommandLine.access$1300(CommandLine.java:145)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
>     at picocli.CommandLine.execute(CommandLine.java:2078)
>     at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:76)
> Respectfully,
> Zbigniew
>  
>  



--
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-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel updated PDFBOX-5602:
-
Attachment: cpu-hot-spots-3.0.0-SNAPSHOT-1.PNG

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT-1.PNG, cpu-hot-spots-3.0.0-SNAPSHOT.PNG, 
> cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta data for this file except perhaps the last page number.
>  # Read the second file and process in similar fashion as in the step 1
>  # etc
> If Concatenation is possible, it would greatly reduce the cpu and memory 
> overhead and reduce processing time.
> I admit merging of such large number of PDF files is not typical but the 
> issue is valid.
> ^CException in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at java.base/java.util.Hashtable.rehash(Hashtable.java:419)
>     at java.base/java.util.Hashtable.addEntry(Hashtable.java:441)
>     at java.base/java.util.Hashtable.put(Hashtable.java:493)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.doWriteBodyCompressed(COSWriter.java:481)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1260)
>     at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:402)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1542)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1418)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1018)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:963)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:982)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:476)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:355)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:339)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:76)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:37)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
>     at picocli.CommandLine.access$1300(CommandLine.java:145)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
>     at picocli.CommandLine.execute(CommandLine.java:2078)
>     at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:76)
> Respectfully,
> Zbigniew
>  
>  



--
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-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel commented on PDFBOX-5602:
--

 

Did more testing, summary below.
h1. *Failure when merging all 5 large files, each 500-600MB*

I managed to resolve the failure by increase the maximum size of the VM heap to 
24GB:

 java -Xms24G -Xmx24G

​However, it took *369* minutes to complete.
h1. *Running without the structure tree*

{{ Per your suggestion I made the following updates to delete the structure 
tree.}}{{ }}

{{  //destCatalog.setStructureTreeRoot({*}destStructTree{*});}}
{{    destCatalog.setStructureTreeRoot({*}null{*});}}

 

MVN Build of the pdfbox source failed due to the failure of 
PDFMergerUtilityTest.java, see details at the bottom.

Imported pdfbox code into Eclipse. Managed to run PDFMergerUtility and export 
as the jar file.

Did run the large merge with the default and enlarged VM heap space. Both runs 
were successful.  Running time was reduced significantly:

 

with -Xms24G -Xmx24G:   24 minutes

with default heap size:   29 minutes

 

See hot spots statistics (at the bottom) for 3.0.0-apha3 and 3.0.0-SNAPSHOT  I 
collected running visualVM. They obviously differ. Also, note that I don't see 
anymore heavy log of the below. These logs could also contribute to the 
problem. I think the log messages are always created and can be logged 
depending of the log level.

 May 15, 2023 8:00:02 AM org.apache.pdfbox.multipdf.PDFMergerUtility mergeIDTree
WARNING: key node1371 already exists in destination IDTree
h3. +Hope you consider adding  an option to the official release to help to 
deal with such case as described.+

 
h1. *MVN Build Failure*

[ERROR] testStructureTreeMerge7  Time elapsed: 0.02 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke 
"org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureTreeRoot.getParentTree()"
 because the return value of 
"org.apache.pdfbox.pdmodel.PDDocumentCatalog.getStructureTreeRoot()" is null
    at 
org.apache.pdfbox.multipdf.PDFMergerUtilityTest.checkWithNumberTree(PDFMergerUtilityTest.java:642)
    at 
org.apache.pdfbox.multipdf.PDFMergerUtilityTest.testStructureTreeMerge7(PDFMergerUtilityTest.java:471)

[INFO] Running org.apache.pdfbox.pdmodel.graphics.image.LosslessFactoryTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.353 s 
- in org.apache.pdfbox.pdmodel.graphics.image.CCITTFactoryTest
[INFO] Running org.apache.pdfbox.pdmodel.graphics.image.PDImageXObjectTest
[ERROR] Tests run: 33, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.231 
s <<< FAILURE! - in org.apache.pdfbox.pdmodel.graphics.image.PDImageXObjectTest
[ERROR] testMergeBogusStructParents1  Time elapsed: 0 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke 
"org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureTreeRoot.getParentTree()"
 because the return value of 
"org.apache.pdfbox.pdmodel.PDDocumentCatalog.getStructureTreeRoot()" is null
    at 
org.apache.pdfbox.multipdf.PDFMergerUtilityTest.checkWithNumberTree(PDFMergerUtilityTest.java:642)
    at 
org.apache.pdfbox.multipdf.PDFMergerUtilityTest.testMergeBogusStructParents1(PDFMergerUtilityTest.java:572)
h1. *Hot Spots*

!cpu-hot-spots-3.0.0-alpha3.PNG!

 

!cpu-hot-spots-3.0.0-SNAPSHOT.PNG!

 

 

 

 

 

 

 

 

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT.PNG, cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta 

[jira] [Updated] (PDFBOX-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel updated PDFBOX-5602:
-
Attachment: cpu-hot-spots-3.0.0-alpha3.PNG

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT.PNG, cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta data for this file except perhaps the last page number.
>  # Read the second file and process in similar fashion as in the step 1
>  # etc
> If Concatenation is possible, it would greatly reduce the cpu and memory 
> overhead and reduce processing time.
> I admit merging of such large number of PDF files is not typical but the 
> issue is valid.
> ^CException in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at java.base/java.util.Hashtable.rehash(Hashtable.java:419)
>     at java.base/java.util.Hashtable.addEntry(Hashtable.java:441)
>     at java.base/java.util.Hashtable.put(Hashtable.java:493)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.doWriteBodyCompressed(COSWriter.java:481)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1260)
>     at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:402)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1542)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1418)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1018)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:963)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:982)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:476)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:355)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:339)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:76)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:37)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
>     at picocli.CommandLine.access$1300(CommandLine.java:145)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
>     at picocli.CommandLine.execute(CommandLine.java:2078)
>     at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:76)
> Respectfully,
> Zbigniew
>  
>  



--
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-5602) Consider adding support for PDF files Concatenation in addition to the full Merge

2023-05-15 Thread Zbigniew Minciel (Jira)


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

Zbigniew Minciel updated PDFBOX-5602:
-
Attachment: cpu-hot-spots-3.0.0-SNAPSHOT.PNG

> Consider adding support for PDF files Concatenation in addition to the  full 
> Merge
> --
>
> Key: PDFBOX-5602
> URL: https://issues.apache.org/jira/browse/PDFBOX-5602
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 3.0.0 PDFBox
>Reporter: Zbigniew Minciel
>Priority: Major
> Attachments: CapturePdfDebugger.PNG, Large527MbytesPDF.PNG, 
> cpu-hot-spots-3.0.0-SNAPSHOT.PNG, cpu-hot-spots-3.0.0-alpha3.PNG
>
>
> I decided to evaluate pdfbox 3.0.0-alpha3 limits on merging large number of 
> PDF files.
> I attempted to merge 7500 mails in separate PDF files on Windows. Given the 
> limitation on the max size of the command line arguments, I was merging 
> subsets of files. I ended up with 5 large PDF files, each around 
> 500-600MBytes. I tried to merge these 5 files but eventually merge failed 
> after running more than 6 hours.  See error log at the bottom. I have large 
> RAM 48GBytes.  PDFBox was using up 13GB of memory max. Usage was changing 
> between 600MB and 13Gb. 
> I am wondering whether PDFBox could support Concatenation mode in addition to 
> the full Merge mode.  No need to create index table, etc. It could work as 
> follow I suppose given my total lack of understanding how PDF works:
>  # Read first file, process and append to the target PDF file. Delete PDF 
> data and related meta data for this file except perhaps the last page number.
>  # Read the second file and process in similar fashion as in the step 1
>  # etc
> If Concatenation is possible, it would greatly reduce the cpu and memory 
> overhead and reduce processing time.
> I admit merging of such large number of PDF files is not typical but the 
> issue is valid.
> ^CException in thread "main" java.lang.OutOfMemoryError: Java heap space
>     at java.base/java.util.Hashtable.rehash(Hashtable.java:419)
>     at java.base/java.util.Hashtable.addEntry(Hashtable.java:441)
>     at java.base/java.util.Hashtable.put(Hashtable.java:493)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.doWriteBodyCompressed(COSWriter.java:481)
>     at 
> org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1260)
>     at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:402)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1542)
>     at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1418)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1018)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:963)
>     at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:982)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:476)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:355)
>     at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:339)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:76)
>     at org.apache.pdfbox.tools.PDFMerger.call(PDFMerger.java:37)
>     at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
>     at picocli.CommandLine.access$1300(CommandLine.java:145)
>     at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
>     at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
>     at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
>     at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
>     at picocli.CommandLine.execute(CommandLine.java:2078)
>     at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:76)
> Respectfully,
> Zbigniew
>  
>  



--
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-2941) Improve PDFDebugger (2)

2023-05-15 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-2941: enable print dpi menu when opening URL

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
>Priority: Major
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
>  - refactor PDFDebugger.java
>  - ✓ render glyphs of fonts
>  - ✓ refactor StreamPane to share stream filtering among Text view and hex 
> view
>  - ✓ password dialog when hitting protected PDF
>  - show "pretty" XML
>  - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
>  - ✓ display the "caused by" part exception stack trace (nested exceptions)
>  - ✓ keep zoom
>  - ✓ integrate DrawPrintTextLocations into rendering
>  - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
>  - ✓ show permission flags of {{Encrypt/P}} entry
>  - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
>  - ✓ show page labels additional to page number (see file from TIKA-2121 as 
> example)
>  - ✓ "reopen" menu item (useful when editing an existing PDF to create a 
> reduced PDF)
>  - choose zoom automatically so that PDF page can be seen in full
> *Editing*
>  - save modified PDFs
>  - editing in hex viewer
>  - remove nodes (e.g. elements from a COSDictionary)
>  - delete array or dictionary elements
>  - load content streams
>  - edit & keep content streams



--
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-2941) Improve PDFDebugger (2)

2023-05-15 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-2941: enable print dpi menu when opening URL

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
>Priority: Major
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
>  - refactor PDFDebugger.java
>  - ✓ render glyphs of fonts
>  - ✓ refactor StreamPane to share stream filtering among Text view and hex 
> view
>  - ✓ password dialog when hitting protected PDF
>  - show "pretty" XML
>  - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
>  - ✓ display the "caused by" part exception stack trace (nested exceptions)
>  - ✓ keep zoom
>  - ✓ integrate DrawPrintTextLocations into rendering
>  - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
>  - ✓ show permission flags of {{Encrypt/P}} entry
>  - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
>  - ✓ show page labels additional to page number (see file from TIKA-2121 as 
> example)
>  - ✓ "reopen" menu item (useful when editing an existing PDF to create a 
> reduced PDF)
>  - choose zoom automatically so that PDF page can be seen in full
> *Editing*
>  - save modified PDFs
>  - editing in hex viewer
>  - remove nodes (e.g. elements from a COSDictionary)
>  - delete array or dictionary elements
>  - load content streams
>  - edit & keep content streams



--
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-5601) Barcode corrupted when printing document

2023-05-15 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

The other specifically supported platform is AS/400 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tilman Hausherr (Jira)


[ https://issues.apache.org/jira/browse/PDFBOX-5601 ]


Tilman Hausherr deleted comment on PDFBOX-5601:
-

was (Author: tilman):
Oracle internal review ID : 9075262

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

{quote}>  but that one assumes linux is "the rest" and doesn't specifically ask 
for Ubuntu. I'd like to include the change for windows and ubuntu specifically, 
until more people complain.
{quote}
 

I'd be happy to replay these tests on other platforms to clarify scope.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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



Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk20 » Apache Preflight #711

2023-05-15 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 3.70 MB...]
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 412, newValue: [23] is trying to override the 
oldValue: 46
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 414, newValue: [24] is trying to override the 
oldValue: 48
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 416, newValue: [25] is trying to override the 
oldValue: 50
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 418, newValue: [26] is trying to override the 
oldValue: 52
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 38
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 38
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 403, newValue: [17] is trying to override the 
oldValue: 34
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 408, newValue: [21] is trying to override the 
oldValue: 42
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 410, newValue: [22] is trying to override the 
oldValue: 44
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 412, newValue: [23] is trying to override the 
oldValue: 46
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 414, newValue: [24] is trying to override the 
oldValue: 48
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 416, newValue: [25] is trying to override the 
oldValue: 50
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 418, newValue: [26] is trying to override the 
oldValue: 52
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 38
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk20 #711

2023-05-15 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-4892, sonar fix

[Tilman Hausherr] PDFBOX-5601: limit workaround to Windows and Linux

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

[Tilman Hausherr] PDFBOX-4892: adjust check, as suggested by valerybokov

[Tilman Hausherr] PDFBOX-5603: sonar fix

[Tilman Hausherr] PDFBOX-5599: add some comments


--
[...truncated 3.81 MB...]
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 403, newValue: [17] is trying to override the 
oldValue: 34
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 408, newValue: [21] is trying to override the 
oldValue: 42
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 410, newValue: [22] is trying to override the 
oldValue: 44
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 412, newValue: [23] is trying to override the 
oldValue: 46
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 414, newValue: [24] is trying to override the 
oldValue: 48
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 416, newValue: [25] is trying to override the 
oldValue: 50
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 418, newValue: [26] is trying to override the 
oldValue: 52
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 38
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 36
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 38
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 40
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 403, newValue: [17] is trying to override the 
oldValue: 34
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [18] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [19] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 247, newValue: [20] is trying to override the 
oldValue: 247
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 408, newValue: [21] is trying to override the 
oldValue: 42
May 15, 2023 11:44:10 AM 
org.apache.fontbox.ttf.gsub.GlyphSubstitutionDataExtractor 
putNewSubstitutionEntry
WARNING: For the newGlyph: 410, newValue: [22] is trying to override the 
oldValue: 44
May 15, 2023 11:44:10 AM 

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

2023-05-15 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4892, sonar fix

> 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.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-5601) Barcode corrupted when printing document

2023-05-15 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: limit workaround to Windows and Linux

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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-5601) Barcode corrupted when printing document

2023-05-15 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: limit workaround to Windows and Linux

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
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