[jira] [Commented] (PDFBOX-2776) support "Long Term Validation" signature extensions (LTV)

2020-10-19 Thread Ralf Hauser (Jira)


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

Ralf Hauser commented on PDFBOX-2776:
-

The missing certs for nonSigPdf-sig1.pdf
-BEGIN CERTIFICATE-
MIIGSDCCBDCgAwIBAgIUJdImmyZN874twOb0zLbPOIfe2VkwDQYJKoZIhvcNAQEF
BQAweTELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxJTAj
BgNVBAsTHFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxKDAmBgNVBAMTH1F1
b1ZhZGlzIE5vIFJlbGlhbmNlIFJvb3QgQ0EgRzIwHhcNMTEwODEwMTMwNDM3WhcN
MjEwODA1MTgwOTI4WjBOMQswCQYDVQQGEwJCTTEZMBcGA1UEChMQUXVvVmFkaXMg
TGltaXRlZDEkMCIGA1UEAxMbUXVvVmFkaXMgTm8gUmVsaWFuY2UgSUNBIEcyMIIC
IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuFsvyep6Wk4YOd1cDAiC8noN
czq5knmSEjpdKSVr2HaezTxXLcGZOk2X6P23lyTxTjH4wlL21cRjyK1/GmnL2SI6
I8992bO/Xmf+G/Y6Fywvk29LsJipHdNxqzcEf+dR617OPVoP04rr4kAl/kX41/sa
dXAHoGC+oKejTv5fPaDvYX19A/j0LRWBUnySP2AlSQXyy5iWJ5GBJurrSjSOBOHw
TVBQTy2EkrS13vvGrnvvZY0xcrjbQvKgiLTpL52uxcsbzLFlrfMrSCs6G7/Fcl8G
eHvA/gro6e2HKOB3chpANuKrk0bzKolVKYEQVVe3QwK39/ZeSA1m4/jdwEByqDaJ
QI0vfrcY61B1wKNLkVfjEC4Mj+hDp3EOkP42OrTCqEytnV7X1keFd9l5QGgvVQru
ox9mG3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zjQdmzWuh0dIdZubRuC/0rHQDbHtsiuQRk8V
HJICVj3EjWAbZkW3eMV8kDaLn3x8rPe92KgmI9XT9/C2ZZfnWX/fUah8nAwD5WdW
bI9Lie7+KxsVovqg3Zpmiu16OVGJp6yWSX3vsuBO+06R+i73ZxFpooNSF9dkiJPn
8GSeh2lu6LhTwLl5yHBJ7Vcxu9cALW8=
-END CERTIFICATE-

> support "Long Term Validation" signature extensions (LTV)
> -
>
> Key: PDFBOX-2776
> URL: https://issues.apache.org/jira/browse/PDFBOX-2776
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing
>Affects Versions: 2.0.0
>Reporter: 

[jira] [Updated] (PDFBOX-4996) PDFBox image conversion (pdf-->image) quality not good

2020-10-19 Thread Dushyanth Balasubramanian (Jira)


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

Dushyanth Balasubramanian updated PDFBOX-4996:
--
Attachment: pdf-test-customer1.jpg
pdf-test-customer.pdf
License for Example Bug Issues.pdf

> PDFBox image conversion (pdf-->image) quality not good
> --
>
> Key: PDFBOX-4996
> URL: https://issues.apache.org/jira/browse/PDFBOX-4996
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel, Rendering
>Affects Versions: 2.0.21
>Reporter: Dushyanth Balasubramanian
>Priority: Major
> Attachments: License for Example Bug Issues.pdf, 
> pdf-test-customer.pdf, pdf-test-customer1.jpg
>
>
> The conversion from PDF to image produces an image of not high quality. 
> Please take a look at the image quality. I have attached the originally 
> uploaded pdf and the image generated. 



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

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



[jira] [Created] (PDFBOX-4996) PDFBox image conversion (pdf-->image) quality not good

2020-10-19 Thread Dushyanth Balasubramanian (Jira)
Dushyanth Balasubramanian created PDFBOX-4996:
-

 Summary: PDFBox image conversion (pdf-->image) quality not good
 Key: PDFBOX-4996
 URL: https://issues.apache.org/jira/browse/PDFBOX-4996
 Project: PDFBox
  Issue Type: Bug
  Components: PDModel, Rendering
Affects Versions: 2.0.21
Reporter: Dushyanth Balasubramanian
 Attachments: License for Example Bug Issues.pdf, 
pdf-test-customer.pdf, pdf-test-customer1.jpg

The conversion from PDF to image produces an image of not high quality. Please 
take a look at the image quality. I have attached the originally uploaded pdf 
and the image generated. 



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

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



[jira] [Created] (PDFBOX-4995) Multiple PDF signatures with image

2020-10-19 Thread Daniel Gorelic (Jira)
Daniel Gorelic created PDFBOX-4995:
--

 Summary: Multiple PDF signatures with image
 Key: PDFBOX-4995
 URL: https://issues.apache.org/jira/browse/PDFBOX-4995
 Project: PDFBox
  Issue Type: Bug
Affects Versions: 2.0.20
Reporter: Daniel Gorelic
 Attachments: signed.pdf

A second PDF signature with an image invalidates the first one. If there is no 
image, the first signature remains valid.

This is what DSS team member wrote:

Indeed this appears to be a PDFBox bug: One indirect object from the original 
document revision is completely unnecessarily overwritten in each signed 
revision with an object with the identical content. In spite of this not 
actually changing the page content, Adobe Reader apparently considers this 
suspicious enough to claim a document change and signature invalidation.

The object in question is the object 54 0 which is a color space resource for 
each of the three document pages:
{code:java}
54 0 obj
/DeviceGray 
endobj {code}



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

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



[jira] [Commented] (PDFBOX-2776) support "Long Term Validation" signature extensions (LTV)

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-2776:
-

ShowSignature fails on the PDF you added, "OCSP: Status of Cert is unknown" on 
http://www.pki.admin.ch/aia/ocsp . The certificate being checked is "CN=Swiss 
Government Qualified Time Stamp Authority,OU=Time Stamp Services,O=Swiss 
Government PKI,L=Bern,C=CH", its issuer is "CN=Swiss Government Qualified CA 
01,OU=Certification Authorities,OU=Services,O=Admin,C=CH".

The CRL is also not good
http://www.pki.admin.ch/crl/QualifiedCA01.crl
its nextUpdate is Tue Jun 02 09:41:24 CEST 2020

> support "Long Term Validation" signature extensions (LTV)
> -
>
> Key: PDFBOX-2776
> URL: https://issues.apache.org/jira/browse/PDFBOX-2776
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing
>Affects Versions: 2.0.0
>Reporter: Ralf Hauser
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: nonSigPdf-sig1.pdf
>
>
> in recent acrobat readers, every signature is commented w.r.t. "LTV"
> ETSI TS 102 778-4 V1.1.2 (2009-12) Technical Specification
> referenced as part 4 in
> http://en.wikipedia.org/wiki/PAdES 
> It would be great if pdf signatures created with PDFBox would assist in 
> creatign those.
> Target test setup: 
> 1) input of an unsigned PDF-1.5 document
> 2) signature with
> a) local key pair
> b) hsm
> c) remote signature service (e.g. via soap)
> 3) add ocsp response for LTV (crls typically are larger)
> ==> Result: signed pdf where acrobat reader claims it to be "LTV enabled"
> see also PDFBOX-1848
> more in 
> http://stackoverflow.com/questions/26090558/ltv-enabled-signature-in-pdf



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

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



[jira] [Commented] (PDFBOX-2776) support "Long Term Validation" signature extensions (LTV)

2020-10-19 Thread Ralf Hauser (Jira)


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

Ralf Hauser commented on PDFBOX-2776:
-

Please add a test case that does all the steps 1-3 and

4) takes the signing time e.g. from [http://tsa.pki.admin.ch/tsa] (rfc3161)

 

It seems that the current TestCreateSignature().testAddValidationInformation() 
only works with already signed pdfs

 

see also PDFBOX-4994

> support "Long Term Validation" signature extensions (LTV)
> -
>
> Key: PDFBOX-2776
> URL: https://issues.apache.org/jira/browse/PDFBOX-2776
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing
>Affects Versions: 2.0.0
>Reporter: Ralf Hauser
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: nonSigPdf-sig1.pdf
>
>
> in recent acrobat readers, every signature is commented w.r.t. "LTV"
> ETSI TS 102 778-4 V1.1.2 (2009-12) Technical Specification
> referenced as part 4 in
> http://en.wikipedia.org/wiki/PAdES 
> It would be great if pdf signatures created with PDFBox would assist in 
> creatign those.
> Target test setup: 
> 1) input of an unsigned PDF-1.5 document
> 2) signature with
> a) local key pair
> b) hsm
> c) remote signature service (e.g. via soap)
> 3) add ocsp response for LTV (crls typically are larger)
> ==> Result: signed pdf where acrobat reader claims it to be "LTV enabled"
> see also PDFBOX-1848
> more in 
> http://stackoverflow.com/questions/26090558/ltv-enabled-signature-in-pdf



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

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



[jira] [Updated] (PDFBOX-2776) support "Long Term Validation" signature extensions (LTV)

2020-10-19 Thread Ralf Hauser (Jira)


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

Ralf Hauser updated PDFBOX-2776:

Attachment: nonSigPdf-sig1.pdf

> support "Long Term Validation" signature extensions (LTV)
> -
>
> Key: PDFBOX-2776
> URL: https://issues.apache.org/jira/browse/PDFBOX-2776
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing
>Affects Versions: 2.0.0
>Reporter: Ralf Hauser
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: nonSigPdf-sig1.pdf
>
>
> in recent acrobat readers, every signature is commented w.r.t. "LTV"
> ETSI TS 102 778-4 V1.1.2 (2009-12) Technical Specification
> referenced as part 4 in
> http://en.wikipedia.org/wiki/PAdES 
> It would be great if pdf signatures created with PDFBox would assist in 
> creatign those.
> Target test setup: 
> 1) input of an unsigned PDF-1.5 document
> 2) signature with
> a) local key pair
> b) hsm
> c) remote signature service (e.g. via soap)
> 3) add ocsp response for LTV (crls typically are larger)
> ==> Result: signed pdf where acrobat reader claims it to be "LTV enabled"
> see also PDFBOX-1848
> more in 
> http://stackoverflow.com/questions/26090558/ltv-enabled-signature-in-pdf



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

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



[jira] [Commented] (PDFBOX-2776) support "Long Term Validation" signature extensions (LTV)

2020-10-19 Thread Ralf Hauser (Jira)


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

Ralf Hauser commented on PDFBOX-2776:
-

Testing with:
 
System.setProperty("org.apache.pdfbox.examples.pdmodel.tsa","http://tsa.pki.admin.ch/tsa;);
 TestCreateSignature.init();
 new TestCreateSignature().testAddValidationInformation();

Still looking for a good test file. The attached is a proposal, for the 
sig-cert used therein, there is both a current OCSP and CRL available

OCSP (-Wed Oct 21 15:55:00 CEST 2020):

The certificate was not revoked. According to the OCSP
Response from: http://ocspdr.quovadisglobal.com , created 20201019_1555 
CertID
ser#: 2e4540e4f6993bbe4f737f3d6841df0485582bf, validity of OCSP-Response 
till:20201021_1555

CRL (-Thu Oct 22 14:33:53 CEST 2020):
Found a valid CRL in the local cache. Issued on Oct 19, 2020,
next update on Oct 22, 2020.
size 467KB



> support "Long Term Validation" signature extensions (LTV)
> -
>
> Key: PDFBOX-2776
> URL: https://issues.apache.org/jira/browse/PDFBOX-2776
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing
>Affects Versions: 2.0.0
>Reporter: Ralf Hauser
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
> Attachments: nonSigPdf-sig1.pdf
>
>
> in recent acrobat readers, every signature is commented w.r.t. "LTV"
> ETSI TS 102 778-4 V1.1.2 (2009-12) Technical Specification
> referenced as part 4 in
> http://en.wikipedia.org/wiki/PAdES 
> It would be great if pdf signatures created with PDFBox would assist in 
> creatign those.
> Target test setup: 
> 1) input of an unsigned PDF-1.5 document
> 2) signature with
> a) local key pair
> b) hsm
> c) remote signature service (e.g. via soap)
> 3) add ocsp response for LTV (crls typically are larger)
> ==> Result: signed pdf where acrobat reader claims it to be "LTV enabled"
> see also PDFBOX-1848
> more in 
> http://stackoverflow.com/questions/26090558/ltv-enabled-signature-in-pdf



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

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



[jira] [Updated] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4993:

Component/s: Utilities
 Signing

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing, Utilities
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> {code}
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);
> {code}



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

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



[jira] [Resolved] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-4993.
-
  Assignee: Tilman Hausherr
Resolution: Fixed

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Signing, Utilities
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Assignee: Tilman Hausherr
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> {code}
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);
> {code}



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

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



[jira] [Commented] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4993: improve exception message, as suggested by Ralf Hauser

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> {code}
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);
> {code}



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

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



[jira] [Commented] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4993: improve exception message, as suggested by Ralf Hauser

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> {code}
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);
> {code}



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

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



[jira] [Updated] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4993:

Description: 
{code}
### Eclipse Workspace Patch 1.0
#P pdfbox
Index: 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
===
--- 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
(revision 1882597)
+++ 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
(working copy)
@@ -98,7 +98,13 @@
 {
 if (inFile == null || !inFile.exists())
 {
-throw new FileNotFoundException("Document for signing does not 
exist");
+String err = "Document for signing ";
+if (null == inFile) {
+   err += "is null";
+} else {
+   err += "does not exist "+inFile.getAbsolutePath();
+}
+   throw new FileNotFoundException(err);
 }
 
 try (PDDocument doc = Loader.loadPDF(inFile);
{code}

  was:
### Eclipse Workspace Patch 1.0
#P pdfbox
Index: 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
===
--- 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
(revision 1882597)
+++ 
examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
(working copy)
@@ -98,7 +98,13 @@
 {
 if (inFile == null || !inFile.exists())
 {
-throw new FileNotFoundException("Document for signing does not 
exist");
+String err = "Document for signing ";
+if (null == inFile) {
+   err += "is null";
+} else {
+   err += "does not exist "+inFile.getAbsolutePath();
+}
+   throw new FileNotFoundException(err);
 }
 
 try (PDDocument doc = Loader.loadPDF(inFile);



> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> {code}
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);
> {code}



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

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



[jira] [Updated] (PDFBOX-4994) please track whether revocation information is present/added

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4994:

Fix Version/s: 3.0.0 PDFBox
   2.0.22

> please track whether revocation information is present/added 
> -
>
> Key: PDFBOX-4994
> URL: https://issues.apache.org/jira/browse/PDFBOX-4994
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: patch2776.txt, patch2776test.txt
>
>
> see also PDFBOX-2776
>  



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

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



[jira] [Updated] (PDFBOX-4994) please track whether revocation information is present/added

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4994:

Affects Version/s: 3.0.0 PDFBox
   2.0.21

> please track whether revocation information is present/added 
> -
>
> Key: PDFBOX-4994
> URL: https://issues.apache.org/jira/browse/PDFBOX-4994
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Major
> Attachments: patch2776.txt, patch2776test.txt
>
>
> see also PDFBOX-2776
>  



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

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



[jira] [Updated] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4993:

Fix Version/s: 3.0.0 PDFBox
   2.0.22

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);



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

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



[jira] [Updated] (PDFBOX-4993) if infile is missing, say which one

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4993:

Affects Version/s: 2.0.21

> if infile is missing, say which one
> ---
>
> Key: PDFBOX-4993
> URL: https://issues.apache.org/jira/browse/PDFBOX-4993
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
> ===
> --- 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (revision 1882597)
> +++ 
> examples/src/main/java/org/apache/pdfbox/examples/signature/validation/AddValidationInformation.java
>   (working copy)
> @@ -98,7 +98,13 @@
>  {
>  if (inFile == null || !inFile.exists())
>  {
> -throw new FileNotFoundException("Document for signing does not 
> exist");
> +String err = "Document for signing ";
> +if (null == inFile) {
> + err += "is null";
> +} else {
> + err += "does not exist "+inFile.getAbsolutePath();
> +}
> + throw new FileNotFoundException(err);
>  }
>  
>  try (PDDocument doc = Loader.loadPDF(inFile);



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

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



[jira] [Closed] (PDFBOX-4992) PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows weird characters

2020-10-19 Thread Tilman Hausherr (Jira)


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

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

Closing because it isn't a bug. Yes it's inconvenient, but that's the dark 
secret of PDF that many don't have a proper text extraction.

If anyone wants to see how the type 3 glyphs look, open Type3Font.java in the 
source code, search for {{// for debug you can save the PDF here}} and then add 
code like {{doc.save("SOMEDIRECTORY" + index + ".pdf");}}

Alternatively, change {{renderImage(0)}} to {{renderImage(0, 4)}} and in 
FontEncodingView.java change {{table.setRowHeight(40);}} to 
{{table.setRowHeight(200);}}. See the screenshot I just added.

> PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows 
> weird characters
> --
>
> Key: PDFBOX-4992
> URL: https://issues.apache.org/jira/browse/PDFBOX-4992
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.21
> Environment: windows
>Reporter: Peter van der Weerd
>Priority: Major
>  Labels: type3
> Attachments: 2brightsparks.onfastspring.com - invoice.pdf, 
> Clipboard01.png
>
>
> I copy the text from the original bug (PDFBOX-1107). I experience the same 
> issue. 
> I have quite a few of these documents, but most are classified. I attached a 
> non-classified one.
> I was hoping that the recent version solved this issue, but it doesn't.
>  
> Original text from 1107:
> Opening the PDF via PDFReader 1.6 + 1.7 SNAPSHOT results in an unreadable 
> page. All other pdf viewers I tried have correctly displayed the file.
> The only related log message shown was
> 25.08.2011 11:59:41 org.apache.pdfbox.util.PDFStreamEngine processOperator
> INFO: unsupported/disabled operation: EI
> which is probably unrelated. My guess its the font they used (see screenshot) 
> however if the font is unknown or problematic, shouldn't pdfreader use a 
> default font or something? Maybe I am wrong anyway :)



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

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



[jira] [Updated] (PDFBOX-4992) PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows weird characters

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4992:

Attachment: Clipboard01.png

> PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows 
> weird characters
> --
>
> Key: PDFBOX-4992
> URL: https://issues.apache.org/jira/browse/PDFBOX-4992
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.21
> Environment: windows
>Reporter: Peter van der Weerd
>Priority: Major
>  Labels: type3
> Attachments: 2brightsparks.onfastspring.com - invoice.pdf, 
> Clipboard01.png
>
>
> I copy the text from the original bug (PDFBOX-1107). I experience the same 
> issue. 
> I have quite a few of these documents, but most are classified. I attached a 
> non-classified one.
> I was hoping that the recent version solved this issue, but it doesn't.
>  
> Original text from 1107:
> Opening the PDF via PDFReader 1.6 + 1.7 SNAPSHOT results in an unreadable 
> page. All other pdf viewers I tried have correctly displayed the file.
> The only related log message shown was
> 25.08.2011 11:59:41 org.apache.pdfbox.util.PDFStreamEngine processOperator
> INFO: unsupported/disabled operation: EI
> which is probably unrelated. My guess its the font they used (see screenshot) 
> however if the font is unknown or problematic, shouldn't pdfreader use a 
> default font or something? Maybe I am wrong anyway :)



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

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



[jira] [Updated] (PDFBOX-4992) PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows weird characters

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4992:

Labels: type3  (was: )

> PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows 
> weird characters
> --
>
> Key: PDFBOX-4992
> URL: https://issues.apache.org/jira/browse/PDFBOX-4992
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.21
> Environment: windows
>Reporter: Peter van der Weerd
>Priority: Major
>  Labels: type3
> Attachments: 2brightsparks.onfastspring.com - invoice.pdf
>
>
> I copy the text from the original bug (PDFBOX-1107). I experience the same 
> issue. 
> I have quite a few of these documents, but most are classified. I attached a 
> non-classified one.
> I was hoping that the recent version solved this issue, but it doesn't.
>  
> Original text from 1107:
> Opening the PDF via PDFReader 1.6 + 1.7 SNAPSHOT results in an unreadable 
> page. All other pdf viewers I tried have correctly displayed the file.
> The only related log message shown was
> 25.08.2011 11:59:41 org.apache.pdfbox.util.PDFStreamEngine processOperator
> INFO: unsupported/disabled operation: EI
> which is probably unrelated. My guess its the font they used (see screenshot) 
> however if the font is unknown or problematic, shouldn't pdfreader use a 
> default font or something? Maybe I am wrong anyway :)



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

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



[jira] [Commented] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4990: tell what resource is missing, as suggested by Ralf Hauser

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Resolved] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr resolved PDFBOX-4990.
-
  Assignee: Tilman Hausherr
Resolution: Fixed

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Assignee: Tilman Hausherr
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Commented] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4990: tell what resource is missing, as suggested by Ralf Hauser

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Commented] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4990: tell what resource is missing, as suggested by Ralf Hauser

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Commented] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4990: tell what resource is missing, as suggested by Ralf Hauser

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Updated] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4990:

Affects Version/s: 2.0.21

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Updated] (PDFBOX-4990) say which resource not found when a font is missing

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-4990:

Fix Version/s: 3.0.0 PDFBox
   2.0.22

> say which resource not found when a font is missing
> ---
>
> Key: PDFBOX-4990
> URL: https://issues.apache.org/jira/browse/PDFBOX-4990
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.21, 3.0.0 PDFBox
>Reporter: Ralf Hauser
>Priority: Minor
> Fix For: 2.0.22, 3.0.0 PDFBox
>
>
> ### Eclipse Workspace Patch 1.0
> #P pdfbox
> Index: 
> pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java
> ===
> --- pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (revision 1882597)
> +++ pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/Standard14Fonts.java 
> (working copy)
> @@ -117,10 +117,13 @@
>  try (InputStream resourceAsStream = 
> PDType1Font.class.getResourceAsStream(resourceName);
> InputStream afmStream = new BufferedInputStream(resourceAsStream))
> {
> + if (null == resourceAsStream) {
> + throw new IOException("resource '"+resourceName+"' not found");
> + }
> AFMParser parser = new AFMParser(afmStream);
> FontMetrics metric = parser.parse(true);
> FONTS.put(fontName, metric);
> - }
> + }
> }
>  
> /**
>  



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

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



[jira] [Created] (PDFBOX-4994) please track whether revocation information is present/added

2020-10-19 Thread Ralf Hauser (Jira)
Ralf Hauser created PDFBOX-4994:
---

 Summary: please track whether revocation information is 
present/added 
 Key: PDFBOX-4994
 URL: https://issues.apache.org/jira/browse/PDFBOX-4994
 Project: PDFBox
  Issue Type: Improvement
Reporter: Ralf Hauser
 Attachments: patch2776.txt, patch2776test.txt

see also PDFBOX-2776

 



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

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



[jira] [Commented] (PDFBOX-4992) PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows weird characters

2020-10-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-4992:
-

The reason that almost nothing is visible is related to the first line in the 
sequence above. "1 0" means the width is 1. "-10 -10 10 10" is the glyph 
bounding box. So the glyph bounding box is 20x as large as the glyph really is. 
This is just a very poorly constructed type 3 font.

> PDF created by Bullzip PDF Printer / www.bullzip.com / Freeware Edition shows 
> weird characters
> --
>
> Key: PDFBOX-4992
> URL: https://issues.apache.org/jira/browse/PDFBOX-4992
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.21
> Environment: windows
>Reporter: Peter van der Weerd
>Priority: Major
> Attachments: 2brightsparks.onfastspring.com - invoice.pdf
>
>
> I copy the text from the original bug (PDFBOX-1107). I experience the same 
> issue. 
> I have quite a few of these documents, but most are classified. I attached a 
> non-classified one.
> I was hoping that the recent version solved this issue, but it doesn't.
>  
> Original text from 1107:
> Opening the PDF via PDFReader 1.6 + 1.7 SNAPSHOT results in an unreadable 
> page. All other pdf viewers I tried have correctly displayed the file.
> The only related log message shown was
> 25.08.2011 11:59:41 org.apache.pdfbox.util.PDFStreamEngine processOperator
> INFO: unsupported/disabled operation: EI
> which is probably unrelated. My guess its the font they used (see screenshot) 
> however if the font is unknown or problematic, shouldn't pdfreader use a 
> default font or something? Maybe I am wrong anyway :)



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

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



Jenkins build is back to normal : PDFBox » PDFBox-trunk #169

2020-10-19 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 » Apache PDFBox #169

2020-10-19 Thread Apache Jenkins Server
See 



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



[jira] [Commented] (PDFBOX-4855) Add support for memory mapped file reading

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4855: add a test for the unmapping issue limited to windows environments

> Add support for memory mapped file reading
> --
>
> Key: PDFBOX-4855
> URL: https://issues.apache.org/jira/browse/PDFBOX-4855
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
>
> We should add a RandomAccessRead implementation which supports memory mapped 
> file reading



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

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



[jira] [Commented] (PDFBOX-4855) Add support for memory mapped file reading

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4855: add tests for RandomAccessReadMemoryMappedFile

> Add support for memory mapped file reading
> --
>
> Key: PDFBOX-4855
> URL: https://issues.apache.org/jira/browse/PDFBOX-4855
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
>
> We should add a RandomAccessRead implementation which supports memory mapped 
> file reading



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

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



[jira] [Commented] (PDFBOX-4855) Add support for memory mapped file reading

2020-10-19 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-4855: ignore java.lang.invoke.MethodHandle when running 
animal-sniffer-maven-plugin

> Add support for memory mapped file reading
> --
>
> Key: PDFBOX-4855
> URL: https://issues.apache.org/jira/browse/PDFBOX-4855
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 3.0.0 PDFBox
>
>
> We should add a RandomAccessRead implementation which supports memory mapped 
> file reading



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

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