[jira] [Commented] (PDFBOX-4516) PDFBox text and images are blurry even after rendering with high DPI

2019-04-29 Thread Jack (JIRA)


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

Jack commented on PDFBOX-4516:
--

[~lars t] thanks for the information, very helpful

> PDFBox text and images are blurry even after rendering with high DPI
> 
>
> Key: PDFBOX-4516
> URL: https://issues.apache.org/jira/browse/PDFBOX-4516
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
> Environment: Oracle Java 8 update125 on both Mac OS X and centos
>Reporter: Jack
>Priority: Major
>  Labels: interpolation, quality
> Attachments: PDFBOX-4516-59.png, PDFBOX-4516-output-default.png, 
> PDFBOX-4516-output-improved.png, PDFBox4516.java, defaultDPI.png, 
> highDPI.png, lowDPI.png, original.pdf
>
>
> I tried to render image with different DPI, found PDFBOX performs poorly on 
> the input pdf file, I have to put a very high DPI to get a reasonable good 
> image. Could anyone pls help take a look?  Thanks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4516) PDFBox text and images are blurry even after rendering with high DPI

2019-04-29 Thread Lars Torunski (JIRA)


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

Lars Torunski commented on PDFBOX-4516:
---

Some years ago I had to resize/downscale images for thumbnails. I got best 
quality results with VALUE_INTERPOLATION_BICUBIC and a multi step rescale 
operation.

See https://blog.nobel-joergensen.com/2008/12/20/downscaling-images-in-java/
"when downscaling to something less than factor 0.5, you get the best result by 
doing multiple downscaling with a minimum factor of 0.5 (in other words: each 
scaling operation should scale to maximum half the size)."

Unfortunately the referenced blog "Chris Campbell’s blog The Perils of 
Image.getScaledInstance()" isn't available anymore. An similiar implementation 
can be found at
https://github.com/martinheidegger/java-image-scaling/blob/master/src/main/java/com/mortennobel/imagescaling/MultiStepRescaleOp.java

> PDFBox text and images are blurry even after rendering with high DPI
> 
>
> Key: PDFBOX-4516
> URL: https://issues.apache.org/jira/browse/PDFBOX-4516
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
> Environment: Oracle Java 8 update125 on both Mac OS X and centos
>Reporter: Jack
>Priority: Major
>  Labels: interpolation, quality
> Attachments: PDFBOX-4516-59.png, PDFBOX-4516-output-default.png, 
> PDFBOX-4516-output-improved.png, PDFBox4516.java, defaultDPI.png, 
> highDPI.png, lowDPI.png, original.pdf
>
>
> I tried to render image with different DPI, found PDFBOX performs poorly on 
> the input pdf file, I have to put a very high DPI to get a reasonable good 
> image. Could anyone pls help take a look?  Thanks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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-2.0.x » PDFBox parent #1563

2019-04-29 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-2.0.x #1563

2019-04-29 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-2.0.x #1562

2019-04-29 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-4519: use optimized point type

--
[...truncated 234.57 KB...]
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
 (41 kB at 675 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.3/commons-text-1.3.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.3/commons-text-1.3.jar
 (183 kB at 2.3 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-core/7.6.0/lucene-core-7.6.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/commons-io/commons-io/2.6/commons-io-2.6.jar
 (215 kB at 2.7 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-analyzers-common/7.6.0/lucene-analyzers-common-7.6.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/joda-time/joda-time/1.6/joda-time-1.6.jar 
(535 kB at 6.0 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queryparser/7.6.0/lucene-queryparser-7.6.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/owasp/dependency-check-core/4.0.2/dependency-check-core-4.0.2.jar
 (686 kB at 7.3 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queries/7.6.0/lucene-queries-7.6.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.18/commons-compress-1.18.jar
 (592 kB at 6.5 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-sandbox/7.6.0/lucene-sandbox-7.6.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queries/7.6.0/lucene-queries-7.6.0.jar
 (265 kB at 2.2 MB/s)
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queryparser/7.6.0/lucene-queryparser-7.6.0.jar
 (382 kB at 3.2 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/h2database/h2/1.4.196/h2-1.4.196.jar
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-sandbox/7.6.0/lucene-sandbox-7.6.0.jar
 (278 kB at 2.3 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar
 (85 kB at 617 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/sun/mail/mailapi/1.6.3/mailapi-1.6.3.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/jsoup/jsoup/1.11.3/jsoup-1.11.3.jar 
(396 kB at 2.6 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/sun/mail/mailapi/1.6.3/mailapi-1.6.3.jar
 (299 kB at 1.7 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/guava/guava/27.0.1-jre/guava-27.0.1-jre.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
 (242 kB at 1.4 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-analyzers-common/7.6.0/lucene-analyzers-common-7.6.0.jar
 (1.7 MB at 9.3 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/.0-empty-to-avoid-conflict-with-guava/listenablefuture-.0-empty-to-avoid-conflict-with-guava.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/.0-empty-to-avoid-conflict-with-guava/listenablefuture-.0-empty-to-avoid-conflict-with-guava.jar
 (2.2 kB at 12 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
 (4.6 kB at 24 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
 (20 kB at 99 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar
 (14 kB at 65 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
[INFO] Downloaded: 

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

2019-04-29 Thread Apache Jenkins Server
See 


--
[...truncated 215.89 KB...]
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.pom
 (3.0 kB at 269 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/3.1.0/maven-repository-metadata-3.1.0.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/3.1.0/maven-repository-metadata-3.1.0.pom
 (1.9 kB at 158 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-model-builder/3.1.0/maven-model-builder-3.1.0.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-model-builder/3.1.0/maven-model-builder-3.1.0.pom
 (2.5 kB at 206 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-aether-provider/3.1.0/maven-aether-provider-3.1.0.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-aether-provider/3.1.0/maven-aether-provider-3.1.0.pom
 (3.5 kB at 272 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/0.9.0.M2/aether-api-0.9.0.M2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/0.9.0.M2/aether-api-0.9.0.M2.pom
 (1.7 kB at 134 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-spi/0.9.0.M2/aether-spi-0.9.0.M2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-spi/0.9.0.M2/aether-spi-0.9.0.M2.pom
 (1.8 kB at 160 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-impl/0.9.0.M2/aether-impl-0.9.0.M2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-impl/0.9.0.M2/aether-impl-0.9.0.M2.pom
 (3.3 kB at 279 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4.2/plexus-classworlds-2.4.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/2.4.2/plexus-classworlds-2.4.2.pom
 (3.5 kB at 270 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom
 (1.8 kB at 126 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom
 (12 kB at 1.1 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.10/wagon-provider-api-2.10.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.10/wagon-provider-api-2.10.pom
 (1.7 kB at 124 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/2.10/wagon-2.10.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/2.10/wagon-2.10.pom
 (21 kB at 1.7 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.pom
 (7.5 kB at 682 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom
 (11 kB at 881 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/33/maven-shared-components-33.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/33/maven-shared-components-33.pom
 (5.1 kB at 425 kB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/33/maven-parent-33.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/33/maven-parent-33.pom
 (44 kB at 3.2 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/apache/21/apache-21.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/apache/21/apache-21.pom (17 kB 
at 1.4 MB/s)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.pom
[INFO] Downloaded: 

[jira] [Updated] (PDFBOX-4519) Reduce artefacts in shadings

2019-04-29 Thread Tilman Hausherr (JIRA)


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

Tilman Hausherr updated PDFBOX-4519:

Description: Many PDFs with shadings, e.g. the [frog of Kerstin 
Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf] 
have a few white dots. In the linked GS issue, [Raph 
Levien|https://en.wikipedia.org/wiki/Raph_Levien] mentions rounding problems 
with the triangles and suggested to "fatten" them. I do this by drawing an 
interpolation-colored line and it works nicely.  (was: Many PDFs with shadings, 
e.g. the [frog of Kerstin 
Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf] 
have a few white dots. In the linked GS issue, Raph Levien mentions rounding 
problems with the triangles and suggested to "fatten" them. I do this by 
drawing an interpolation-colored line and it works nicely.)

> Reduce artefacts in shadings
> 
>
> Key: PDFBOX-4519
> URL: https://issues.apache.org/jira/browse/PDFBOX-4519
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: shading, shadingpattern
> Fix For: 2.0.16, 3.0.0 PDFBox
>
>
> Many PDFs with shadings, e.g. the [frog of Kerstin 
> Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf]
>  have a few white dots. In the linked GS issue, [Raph 
> Levien|https://en.wikipedia.org/wiki/Raph_Levien] mentions rounding problems 
> with the triangles and suggested to "fatten" them. I do this by drawing an 
> interpolation-colored line and it works nicely.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4519) Reduce artefacts in shadings

2019-04-29 Thread ASF subversion and git services (JIRA)


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

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

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

PDFBOX-4519: use optimized point type

> Reduce artefacts in shadings
> 
>
> Key: PDFBOX-4519
> URL: https://issues.apache.org/jira/browse/PDFBOX-4519
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: shading, shadingpattern
> Fix For: 2.0.16, 3.0.0 PDFBox
>
>
> Many PDFs with shadings, e.g. the [frog of Kerstin 
> Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf]
>  have a few white dots. In the linked GS issue, Raph Levien mentions rounding 
> problems with the triangles and suggested to "fatten" them. I do this by 
> drawing an interpolation-colored line and it works nicely.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4519) Reduce artefacts in shadings

2019-04-29 Thread ASF subversion and git services (JIRA)


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

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

Commit 1858376 from Tilman Hausherr in branch 'pdfbox/branches/issue45'
[ https://svn.apache.org/r1858376 ]

PDFBOX-4519: use optimized point type

> Reduce artefacts in shadings
> 
>
> Key: PDFBOX-4519
> URL: https://issues.apache.org/jira/browse/PDFBOX-4519
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: shading, shadingpattern
> Fix For: 2.0.16, 3.0.0 PDFBox
>
>
> Many PDFs with shadings, e.g. the [frog of Kerstin 
> Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf]
>  have a few white dots. In the linked GS issue, Raph Levien mentions rounding 
> problems with the triangles and suggested to "fatten" them. I do this by 
> drawing an interpolation-colored line and it works nicely.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4519) Reduce artefacts in shadings

2019-04-29 Thread ASF subversion and git services (JIRA)


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

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

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

PDFBOX-4519: use optimized point type

> Reduce artefacts in shadings
> 
>
> Key: PDFBOX-4519
> URL: https://issues.apache.org/jira/browse/PDFBOX-4519
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: Tilman Hausherr
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: shading, shadingpattern
> Fix For: 2.0.16, 3.0.0 PDFBox
>
>
> Many PDFs with shadings, e.g. the [frog of Kerstin 
> Upmeyer|http://kupmeyer.com/wp-content/uploads/2012/02/K_UPMEYER_SPRING10.pdf]
>  have a few white dots. In the linked GS issue, Raph Levien mentions rounding 
> problems with the triangles and suggested to "fatten" them. I do this by 
> drawing an interpolation-colored line and it works nicely.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4530) PDFRenderer adding horizental white lines to exported image

2019-04-29 Thread Tilman Hausherr (JIRA)


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

Tilman Hausherr commented on PDFBOX-4530:
-

I suspect a problem with the rendering hints, it does not happen at 601 dpi or 
with color. Please try rendering to color, or enabling / disabling the hints 
about antialiasing and interpolation in PDFRenderer.setRenderingHints. These 
are the defaults:
{code}
RenderingHints r = new RenderingHints(null);
r.put(RenderingHints.KEY_INTERPOLATION, isBitonal(graphics) ?
RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR :
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
r.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_QUALITY);
r.put(RenderingHints.KEY_ANTIALIASING, isBitonal(graphics) ?
RenderingHints.VALUE_ANTIALIAS_OFF :
RenderingHints.VALUE_ANTIALIAS_ON);
{code}

> PDFRenderer adding horizental white lines to exported image
> ---
>
> Key: PDFBOX-4530
> URL: https://issues.apache.org/jira/browse/PDFBOX-4530
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: amiladi
>Priority: Major
> Attachments: PdfBoxTestCase.zip, page-3-1.jpeg, page-3.pdf, 
> page-7-1.jpeg, page-7.pdf
>
>
> Hello,
> I started using pdfbox recently to extract a datamatrix code from a pdf file.
> The image extraction works pretty fine.
> We found out that the source of the pdfs is not attaching them neither as 
> embedded objects or inline image, the datamatrix is coded in the pdf as black 
> squares.
> Then, the idea was to convert the pdf to an image and parse the code.
> Only problem, the conversion sometimes add white lines inside the datamatrix 
> which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)
> For some other cases, the datamatrix squares differ in size in the exported 
> image while they are the same in the original pdf file (see attachements 
> page-7.jpeg and page-7-1.pdf).
> The outcome is the same and the parser is not able to recognize the 
> datamatrix content.
> The code I am using to convert to BufferedImage is pretty straightforward
> {code:java}
>     BufferedImage bi = new 
> PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
> {code}
>  
>  
> Is it the way I am using the renderer which causing this problem or simply a 
> bug in the software!
>  
> I am attaching the test project reproducing the behavior.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4458) Subclasses of OperatorProcessor dont use constants

2019-04-29 Thread simon steiner (JIRA)


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

simon steiner commented on PDFBOX-4458:
---

Looks good

> Subclasses of OperatorProcessor dont use constants
> --
>
> Key: PDFBOX-4458
> URL: https://issues.apache.org/jira/browse/PDFBOX-4458
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 2.0.14
>Reporter: simon steiner
>Assignee: Andreas Lehmkühler
>Priority: Minor
> Fix For: 2.0.16, 3.0.0 PDFBox
>
>
> For example you have, would be nicer if these were constants like in COSName, 
> so api user can refer to these without hardcoding, when writing their own 
> parser
> {color:#80}public {color}String getName()
>  {
>  {color:#80}return {color}{color:#008000}"Do"{color};
>  }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4529) ImageToPDF as Command Line

2019-04-29 Thread Tilman Hausherr (JIRA)


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

Tilman Hausherr commented on PDFBOX-4529:
-

https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.0-SNAPSHOT/
has my first attempt at this. Please test it and give feedback what additional 
features you need (you certainly will).

> ImageToPDF as Command Line
> --
>
> Key: PDFBOX-4529
> URL: https://issues.apache.org/jira/browse/PDFBOX-4529
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.15
>Reporter: Bidouille
>Priority: Minor
>
> That will be fine to have this method to export image (png, jpg, etc) in PDF 
> file.
> This will take a list of image files and merge them, saving the result in a 
> new document.
> Usage: {{java -jar pdfbox-app-2.y.z.jar ImageToPDF  ..n)> }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4529) ImageToPDF as Command Line

2019-04-29 Thread ASF subversion and git services (JIRA)


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

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

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

PDFBOX-4529: introduce ImageToPDF command line tool

> ImageToPDF as Command Line
> --
>
> Key: PDFBOX-4529
> URL: https://issues.apache.org/jira/browse/PDFBOX-4529
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.15
>Reporter: Bidouille
>Priority: Minor
>
> That will be fine to have this method to export image (png, jpg, etc) in PDF 
> file.
> This will take a list of image files and merge them, saving the result in a 
> new document.
> Usage: {{java -jar pdfbox-app-2.y.z.jar ImageToPDF  ..n)> }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (PDFBOX-4530) PDFRenderer adding horizental white lines to exported image

2019-04-29 Thread amiladi (JIRA)


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

amiladi updated PDFBOX-4530:

Description: 
Hello,

I started using pdfbox recently to extract a datamatrix code from a pdf file.

The image extraction works pretty fine.

We found out that the source of the pdfs is not attaching them neither as 
embedded objects or inline image, the datamatrix is coded in the pdf as black 
squares.

Then, the idea was to convert the pdf to an image and parse the code.

Only problem, the conversion sometimes add white lines inside the datamatrix 
which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)

For some other cases, the datamatrix squares differ in size in the exported 
image while they are the same in the original pdf file (see attachements 
page-7.jpeg and page-7-1.pdf).

The outcome is the same and the parser is not able to recognize the datamatrix 
content.

The code I am using to convert to BufferedImage is pretty straightforward
{code:java}
    BufferedImage bi = new 
PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
{code}
 

 

Is it the way I am using the renderer which causing this problem or simply a 
bug in the software!

 

I am attaching the test project reproducing the behavior.

 

  was:
Hello,

I started using pdfbox recently to extract a datamatrix code from a pdf file.

The image extraction works pretty fine.

We found out that the source of the pdfs is not attaching them neither as 
embedded objects or inline image, the datamatrix is coded in the pdf as black 
squares.

Then, the idea was to convert the pdf to an image and parse the code.

Only problem, the conversion sometimes add white lines inside the datamatrix 
which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)

For some other cases, the datamatrix squares differ in size in the exported 
image while they are the same in the original pdf file (see attachements 
page-7.jpeg and page-7-1.pdf).

The outcome is the same and the parser is not able to recognize the datamatrix 
content.

The code I am using to convert to BufferedImage is pretty straightforward
{code:java}
// code placeholder
    BufferedImage bi = new 
PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
{code}
 

 

Is it the way I am using the renderer which causing this problem or simply a 
bug in the software!

 

I am attaching the test project reproducing the behavior.

 


> PDFRenderer adding horizental white lines to exported image
> ---
>
> Key: PDFBOX-4530
> URL: https://issues.apache.org/jira/browse/PDFBOX-4530
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: amiladi
>Priority: Major
> Attachments: PdfBoxTestCase.zip, page-3-1.jpeg, page-3.pdf, 
> page-7-1.jpeg, page-7.pdf
>
>
> Hello,
> I started using pdfbox recently to extract a datamatrix code from a pdf file.
> The image extraction works pretty fine.
> We found out that the source of the pdfs is not attaching them neither as 
> embedded objects or inline image, the datamatrix is coded in the pdf as black 
> squares.
> Then, the idea was to convert the pdf to an image and parse the code.
> Only problem, the conversion sometimes add white lines inside the datamatrix 
> which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)
> For some other cases, the datamatrix squares differ in size in the exported 
> image while they are the same in the original pdf file (see attachements 
> page-7.jpeg and page-7-1.pdf).
> The outcome is the same and the parser is not able to recognize the 
> datamatrix content.
> The code I am using to convert to BufferedImage is pretty straightforward
> {code:java}
>     BufferedImage bi = new 
> PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
> {code}
>  
>  
> Is it the way I am using the renderer which causing this problem or simply a 
> bug in the software!
>  
> I am attaching the test project reproducing the behavior.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (PDFBOX-4530) PDFRenderer adding horizental white lines to exported image

2019-04-29 Thread amiladi (JIRA)


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

amiladi updated PDFBOX-4530:

Description: 
Hello,

I started using pdfbox recently to extract a datamatrix code from a pdf file.

The image extraction works pretty fine.

We found out that the source of the pdfs is not attaching them neither as 
embedded objects or inline image, the datamatrix is coded in the pdf as black 
squares.

Then, the idea was to convert the pdf to an image and parse the code.

Only problem, the conversion sometimes add white lines inside the datamatrix 
which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)

For some other cases, the datamatrix squares differ in size in the exported 
image while they are the same in the original pdf file (see attachements 
page-7.jpeg and page-7-1.pdf).

The outcome is the same and the parser is not able to recognize the datamatrix 
content.

The code I am using to convert to BufferedImage is pretty straightforward
{code:java}
// code placeholder
    BufferedImage bi = new 
PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
{code}
 

 

Is it the way I am using the renderer which causing this problem or simply a 
bug in the software!

 

I am attaching the test project reproducing the behavior.

 

  was:
Hello,

I started using pdfbox recently to extract a datamatrix code from a pdf file.

The image extraction works pretty fine.

We found out that the source of the pdfs is not attaching them neither as 
embedded objects or inline image, the datamatrix is coded in the pdf as black 
squares.

Then, the idea was to convert the pdf to an image and parse the code.

Only problem, the conversion sometimes add white lines inside the datamatrix 
which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)

For some other cases, the datamatrix squares differ in size in the exported 
image while they are the same in the original pdf file (see attachements 
page-7.jpeg and page-7-1.pdf).

The outcome is the same and the parser is not able to recognize the datamatrix 
content.

The code I am using to convert to BufferedImage is pretty straightforward
{code:java}
// code placeholder
{code}
    BufferedImage bi = new 
PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);

 

Is it the way I am using the renderer which causing this problem or simply a 
bug in the software!

 

I am attaching the test project reproducing the behavior.

 


> PDFRenderer adding horizental white lines to exported image
> ---
>
> Key: PDFBOX-4530
> URL: https://issues.apache.org/jira/browse/PDFBOX-4530
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
>Reporter: amiladi
>Priority: Major
> Attachments: PdfBoxTestCase.zip, page-3-1.jpeg, page-3.pdf, 
> page-7-1.jpeg, page-7.pdf
>
>
> Hello,
> I started using pdfbox recently to extract a datamatrix code from a pdf file.
> The image extraction works pretty fine.
> We found out that the source of the pdfs is not attaching them neither as 
> embedded objects or inline image, the datamatrix is coded in the pdf as black 
> squares.
> Then, the idea was to convert the pdf to an image and parse the code.
> Only problem, the conversion sometimes add white lines inside the datamatrix 
> which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)
> For some other cases, the datamatrix squares differ in size in the exported 
> image while they are the same in the original pdf file (see attachements 
> page-7.jpeg and page-7-1.pdf).
> The outcome is the same and the parser is not able to recognize the 
> datamatrix content.
> The code I am using to convert to BufferedImage is pretty straightforward
> {code:java}
> // code placeholder
>     BufferedImage bi = new 
> PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);
> {code}
>  
>  
> Is it the way I am using the renderer which causing this problem or simply a 
> bug in the software!
>  
> I am attaching the test project reproducing the behavior.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Created] (PDFBOX-4530) PDFRenderer adding horizental white lines to exported image

2019-04-29 Thread amiladi (JIRA)
amiladi created PDFBOX-4530:
---

 Summary: PDFRenderer adding horizental white lines to exported 
image
 Key: PDFBOX-4530
 URL: https://issues.apache.org/jira/browse/PDFBOX-4530
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Affects Versions: 2.0.15
Reporter: amiladi
 Attachments: PdfBoxTestCase.zip, page-3-1.jpeg, page-3.pdf, 
page-7-1.jpeg, page-7.pdf

Hello,

I started using pdfbox recently to extract a datamatrix code from a pdf file.

The image extraction works pretty fine.

We found out that the source of the pdfs is not attaching them neither as 
embedded objects or inline image, the datamatrix is coded in the pdf as black 
squares.

Then, the idea was to convert the pdf to an image and parse the code.

Only problem, the conversion sometimes add white lines inside the datamatrix 
which makes the it unparsable (see attachements page-3-1.jpeg and page-3.pdf)

For some other cases, the datamatrix squares differ in size in the exported 
image while they are the same in the original pdf file (see attachements 
page-7.jpeg and page-7-1.pdf).

The outcome is the same and the parser is not able to recognize the datamatrix 
content.

The code I am using to convert to BufferedImage is pretty straightforward
{code:java}
// code placeholder
{code}
    BufferedImage bi = new 
PDFRenderer(pdDocument).renderImageWithDPI(i, 600, ImageType.BINARY);

 

Is it the way I am using the renderer which causing this problem or simply a 
bug in the software!

 

I am attaching the test project reproducing the behavior.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4529) ImageToPDF as Command Line

2019-04-29 Thread Bidouille (JIRA)


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

Bidouille commented on PDFBOX-4529:
---

None, but I use 2 tools to export PDF > images and images > PDF. If I can using 
only one, that will be best.

> ImageToPDF as Command Line
> --
>
> Key: PDFBOX-4529
> URL: https://issues.apache.org/jira/browse/PDFBOX-4529
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.15
>Reporter: Bidouille
>Priority: Minor
>
> That will be fine to have this method to export image (png, jpg, etc) in PDF 
> file.
> This will take a list of image files and merge them, saving the result in a 
> new document.
> Usage: {{java -jar pdfbox-app-2.y.z.jar ImageToPDF  ..n)> }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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