Re: Bouncycastle Provider Suddenly Stopped Working wehn I went to PDFBox 2.0

2015-07-01 Thread Thomas Chojecki
Hi all, for crypto stuff the bc provider need to be signed (provider signature). Making a standalone jar (jar with dependencies) will break the signature of the jar. So registering the BC as provider will not work. You can see in the exception this message "JCE cannot authenticate the prov

Re: Can't map code X in font exception

2015-07-01 Thread Tilman Hausherr
Am 02.07.2015 um 06:20 schrieb Alex Sviridov: Yes you are right - warnings. So is it possible to avoid them? - You could disable logging in the logging config - You could remove the log entry in your own source code (if you're building from source) @John - why do we get this warning if the

Re: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> John Hewson hat am 2. Juli 2015 um 06:10 geschrieben: > > > > > On 1 Jul 2015, at 07:52, Tilman Hausherr wrote: > > > >> Am 01.07.2015 um 10:16 schrieb Alex Sviridov: > >> In my application I have real time memory graphs and they show that memory > >> is very fast filled. > >> When there

Re: Bouncycastle Provider Suddenly Stopped Working wehn I went to PDFBox 2.0

2015-07-01 Thread Andreas Lehmkühler
Hi, > Torgeir Veimo hat am 2. Juli 2015 um 05:54 > geschrieben: > > > I recently had some unexpected bouncy castle issues and didn't realise > until I read this that the 2.0.0-SNAPSHOT actually includes the bouncy > castle class files! Will the practice be abandoned for release jars? > It will

Re[2]: Can't map code X in font exception

2015-07-01 Thread Alex Sviridov
This is really very serious problem. It itakes me more 10 minuts to get thumbnail images for 15 pages for the following file https://yadi.sk/i/Hhzh7coNhcTgV on win7 In Lunux it's done in 3-4 seconds. This is problem. How to solve it? Среда, 1 июля 2015, 23:56 -04:00 от Tres Finocchiar

Re[2]: Can't map code X in font exception

2015-07-01 Thread Alex Sviridov
Yes you are right - warnings. So is it possible to avoid them? Среда, 1 июля 2015, 22:46 +02:00 от Tilman Hausherr : >Am 01.07.2015 um 22:39 schrieb Alex Sviridov: >> I have the following situation. I generate pdf files in libre office on >> ubuntu. The default font is Liberation Serif/Sans.

Re: PDFRenderer, PDDocument memory issue

2015-07-01 Thread John Hewson
> On 1 Jul 2015, at 07:52, Tilman Hausherr wrote: > >> Am 01.07.2015 um 10:16 schrieb Alex Sviridov: >> In my application I have real time memory graphs and they show that memory >> is very fast filled. >> When there is no more free memory getPageThumbImage hangs - no exception, >> nothing. Bu

Re: Can't map code X in font exception

2015-07-01 Thread Tres Finocchiaro
>From my experience the font mapping (1.8 branch) causes quite a bit of noise in the logs. And since 1.8 doesn't support embedding of fonts, the best way to suppress the warnings is to either use the same font on both platforms, or compile in a custom font mapping which will allow pdfbox to fallba

Re: Bouncycastle Provider Suddenly Stopped Working wehn I went to PDFBox 2.0

2015-07-01 Thread Torgeir Veimo
I recently had some unexpected bouncy castle issues and didn't realise until I read this that the 2.0.0-SNAPSHOT actually includes the bouncy castle class files! Will the practice be abandoned for release jars? It will definitely cause deployment issues if this practice is kept with the final 2.0.0

Re: java.lang.NoClassDefFoundError: org/apache/fontbox/ttf/Type1Equivalent

2015-07-01 Thread Bob Trigg
Thanks, Tilman. On Wed, Jul 1, 2015 at 2:20 PM, Tilman Hausherr wrote: > Am 01.07.2015 um 22:34 schrieb Bob Trigg: > >> I've updated my dependencies to use fontbox 2.0.0 SNAPSHOT from 20150701, >> and got the above error. When I backdate the version in my dependencies &

Re: java.lang.NoClassDefFoundError: org/apache/fontbox/ttf/Type1Equivalent

2015-07-01 Thread Tilman Hausherr
Am 01.07.2015 um 22:34 schrieb Bob Trigg: I've updated my dependencies to use fontbox 2.0.0 SNAPSHOT from 20150701, and got the above error. When I backdate the version in my dependencies the error does not occur. Has anyone else encountered this problem? Make sure that pdfbox and fontbo

Re: Can't map code X in font exception

2015-07-01 Thread Tilman Hausherr
Am 01.07.2015 um 22:39 schrieb Alex Sviridov: I have the following situation. I generate pdf files in libre office on ubuntu. The default font is Liberation Serif/Sans. After that I run my application (with pdfbox) on windows and open that file from ubuntu. And I get a lot of exceptions. I s

Can't map code X in font exception

2015-07-01 Thread Alex Sviridov
I have the following situation. I generate pdf files in libre office on ubuntu. The default font is Liberation Serif/Sans. After that I run my application (with pdfbox) on windows and open that file from ubuntu. And I get a lot of exceptions. I suppose I have exception for every character! Be

java.lang.NoClassDefFoundError: org/apache/fontbox/ttf/Type1Equivalent

2015-07-01 Thread Bob Trigg
I've updated my dependencies to use fontbox 2.0.0 SNAPSHOT from 20150701, and got the above error. When I backdate the version in my dependencies the error does not occur. Has anyone else encountered this problem? -- Bob Trigg PHP Engineer at *metrodigi <http://www.metrodigi.c

Re: Bouncycastle Provider Suddenly Stopped Working wehn I went to PDFBox 2.0

2015-07-01 Thread Andreas Lehmkuehler
Hi, Am 01.07.2015 um 20:27 schrieb Evan Williams: I am, as I have said before, taking a working application that used PDFBox 1.8.9 amd updating it for 2.0. I have fixed everything (with the help of the excellent people on this list) but one bug persists. I have visual signature code which is a

Bouncycastle Provider Suddenly Stopped Working wehn I went to PDFBox 2.0

2015-07-01 Thread Evan Williams
I am, as I have said before, taking a working application that used PDFBox 1.8.9 amd updating it for 2.0. I have fixed everything (with the help of the excellent people on this list) but one bug persists. I have visual signature code which is an adaptation of the Visible Signature example include

Re: Dries Horions boxable PDFBox Table class

2015-07-01 Thread Tilman Hausherr
Am 01.07.2015 um 14:34 schrieb Mark Bolduc: Thanks. Can you point me to where I can find published projects where people have created more higher level functionality? Yes, this ones: https://github.com/dhorions/boxable (which is the one you mentioned) https://stackoverflow.com/questions/28059

Re: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Tilman Hausherr
Am 01.07.2015 um 10:16 schrieb Alex Sviridov: In my application I have real time memory graphs and they show that memory is very fast filled. When there is no more free memory getPageThumbImage hangs - no exception, nothing. But the code stops. When I do pdfDocument=null,pdfRenderer=null I get

Re: Re[10]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread John Hewson
> On 1 Jul 2015, at 05:15, Alex Sviridov wrote: > > Ok. Thank you again. I just don't understand one thing. What is the reason to > keep so large data if I only need to take page images and the most important > I DO IT BY PAGE? > > Is there no way not to keep data for previous pages if I nee

Re: Re[10]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 14:15 geschrieben: > > > Ok. Thank you again. I just don't understand one thing. What is the reason to > keep so large data if I only need to take page images and the most important I > DO IT BY PAGE? PDFBox doesn't know that you are doing it page by pag

RE: Dries Horions boxable PDFBox Table class

2015-07-01 Thread Mark Bolduc
Thanks. Can you point me to where I can find published projects where people have created more higher level functionality? Regards Mark Bolduc -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online.de] Sent: Wednesday, July 01, 2015 2:40 AM To: users@pdfbox.apache.org Sub

Re[10]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
Ok. Thank you again. I just don't understand one thing. What is the reason to keep so large data if I only need to take page images and the most important I DO IT BY PAGE? Is there no way not to keep data for previous pages if I need only data for page N? Среда, 1 июля 2015, 14:08 +02:00 от

Re: Re[8]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 13:59 geschrieben: > > > Ok. Thank you very much for explanation. Could you say where this scratch > file is located linux/windows? java.io.File.createTempFile is used to create that file. It uses the default temp directory. It's "/tmp" on linux. I'm not

Re[8]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
Ok. Thank you very much for explanation. Could you say where this scratch file is located linux/windows? Среда, 1 июля 2015, 13:54 +02:00 от Andreas Lehmkühler : >> Alex Sviridov < ooo_satu...@mail.ru > hat am 1. Juli 2015 um 13:38 >> geschrieben: >> >> >> The file is here https://yadi.sk

Re: Re[6]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 13:38 geschrieben: > > > The file is here https://yadi.sk/i/Y0fTuvHmhbZiE Ah, that explains a lot. The pdf is a scanned document, every page holds a color image, consuming a lot of memory when processed > I tried with load (fileName,true). The result - n

Re[6]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
The file is here https://yadi.sk/i/Y0fTuvHmhbZiE I tried with load (fileName,true). The result - now I don't have memory problems. However now I have 2 problems: 1) All the thumbnail images are loaded. However, the speed is VERY SLOW. One thumbnail image is loaded about 4 seconds! 2) Beside

Re: Re[4]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 13:09 geschrieben: > > > I decided to show all the code. I also send the pdf file - some file from > internet I use for testing. The attachment didn't make it due to some restrictions to the mailing list. Please post a link to the origin source or anothe

Re[4]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
I decided to show all the code. I also send the pdf file - some file from internet I use for testing. Task task = new Task() {     @Override protected Integer call() throws Exception {     for (int i=0;i: > > >> Alex Sviridov < ooo_satu...@mail.ru > hat am 1. Juli 2015 um 12:58 >> geschrieb

Re: Re[2]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 12:58 geschrieben: > > > Thank you for answer. I tried pdfbox-app-2.0.0-20150630.220424-1464.jar the > result is the same. > > When I create images I add them to javafx FlowPane. However, the problem is > not in images because I repeat - I get 400mb whe

Re[2]: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
Thank you for answer. I tried pdfbox-app-2.0.0-20150630.220424-1464.jar the result is the same. When I create images I add them to javafx FlowPane. However, the problem is not in images because I repeat - I get 400mb when I do pdfDocument=null,pdfRenderer=null. Bedised, when I do pdfDocument

Re: PDFRenderer, PDDocument memory issue

2015-07-01 Thread Andreas Lehmkühler
> Alex Sviridov hat am 1. Juli 2015 um 10:16 geschrieben: > > > I want to display all page thumbnails. However I came across memory size > problem with PDFRenderer or PDDocument - I don't know which one. > > I have the following code: >    >     private PDDocument pdfDocument; >      >

PDFRenderer, PDDocument memory issue

2015-07-01 Thread Alex Sviridov
I want to display all page thumbnails. However I came across memory size problem with PDFRenderer or PDDocument - I don't know which one. I have the following code:        private PDDocument pdfDocument;          private PDFRenderer pdfRenderer;     public WritableImage getPageThumbImage(