答复: Signature lost when converted from PDF to jpg

2017-09-20 Thread YE ...
that you have somewhere, or http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html , or the files from https://github.com/jai-imageio/jai-imageio-core https://github.com/jai-imageio/jai-imageio-jpeg2000 Tilman Am 20.09.2017 um 08:40 schri

Re: Signature lost when converted from PDF to jpg

2017-09-19 Thread YE ...
/d5418a966daecda62bcf056ddc1e79c99a4c6546/1505873315791/converted_with_no_signature.jpg?zid=__itemtoken__3f1caa712e322f4ae4fa483fdd2089d341ff7ba9 And yes I am using 2.0.7. Regards, Ye From: Tilman Hausherr Sent: Wednesday, September 20, 2017 6:31 AM To: users@pdfbox.apache.org

Signature lost when converted from PDF to jpg

2017-09-19 Thread YE ...
Hi, I am using pdfbox to convert PDF to jpgs. I have a case that the original PDF has signature but when converted to PDF the signature is lost. Is there any special setting for exporting signature? Original PDF: https://shujubiji.cn/share/repositories?id=AV6dC1CSCNMzogJYCA5Q&token=__itemto

Re: PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-19 Thread YE ...
Hi Tilman, I manually installed the two missing fonts on centos, AdobeKaitiStd, and STSong then the conversion worked. Thanks for your help. In retrospect, it seems on centos PDFbox couldn't correctly use fallback Chinese font for adobekaitistd. 发自我的 iPhone 在 2017年8月19日,下午8:

Re: PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-19 Thread YE ...
tYaHei to > display. > > Either you don't have these fonts installed, or maybe you used an older > PDFBox version? > > Tilman > > >> Am 19.08.2017 um 09:19 schrieb YE ...: >> Hi Tilman, >> >> >> Thanks for the quick reply. I will ch

Re: PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-19 Thread YE ...
er news. Tilman Am 18.08.2017 um 11:56 schrieb YE ...: > > Hi, > > I am from China and using PDFBox to convert pdf files to images. It > worked excellently in most cases. Thanks a lot for the team's great work. > > > However recently I used it to convert some invoices i

PDFbox unable to render Chinese font correctly when converting pdf to images

2017-08-18 Thread YE ...
Hi, I am from China and using PDFBox to convert pdf files to images. It worked excellently in most cases. Thanks a lot for the team's great work. However recently I used it to convert some invoices in PDF to images and then some Chinese characters weren't converted correctly. Attached is a sam

Re: Possible bug in StandardSecurityHandler class?

2016-05-06 Thread Joe Ye
Thanks Tilman! On Thu, May 5, 2016 at 10:53 PM, Tilman Hausherr wrote: > Am 05.05.2016 um 19:10 schrieb Joe Ye: > >> Hi, >> >> While troubleshooting an encryption related issue, I discovered that >> currentAccessPermission.set

Possible bug in StandardSecurityHandler class?

2016-05-05 Thread Joe Ye
Hi, While troubleshooting an encryption related issue, I discovered that currentAccessPermission.setReadOnly() is called in method pdfbox.pdmodel.encryption.PublicKeySecurityHandler#prepareForDecryption but NOT in pdfbox.pdmodel.encryption.StandardSecurityHandler#prepareForDecryption. Could you pl

Re: PDDocument.load no longer has the force option?

2015-12-14 Thread Joe Ye
er necessary. > > Perhaps the problem you’re encountering is due to other changes in the > parser > in 2.0, if you could post a PDF publicly then we can take a look at it. > > — John > > > On 11 Dec 2015, at 07:02, Joe Ye wrote: > > > > Hi, > > > >

PDDocument.load no longer has the force option?

2015-12-11 Thread Joe Ye
Hi, With the latest version 2.0.0-RC2, I found that the force flag of the below method signature (to skip corrupt PDF objects) no longer exists. This broke some of our existing usage. Could you advise if there's an alternative way to do it (i.e. skip corrupt objects)? public static PDDocument

Re: Problem with extracted JPEG images with RGB colorspace (from a PDF)

2015-12-08 Thread Joe Ye
xtractImages.java or do this to get a jpeg > stream: > > InputStream dctStream = > img.createInputStream(Arrays.asList(COSName.DCT_DECODE.getName())); > > > > Tilman > > > Am 07.12.2015 um 13:54 schrieb Joe Ye: > >> Hi, >> >> >> We'

Problem with extracted JPEG images with RGB colorspace (from a PDF)

2015-12-07 Thread Joe Ye
Hi, We've been using PDFBox to extract images from PDF files and recently upgraded to PDFBox version 2.0.0-RC2. I noticed that class PDXObjectImage is renamed/rewritten and method PDXObjectImage.write2OutputStream we used to write images to disk no longer exists? Therefore, I've been trying to