Re: Problem with getting page size

2016-08-29 Thread Adam Retter
. > > Tilman > > > Am 24.08.2016 um 16:31 schrieb Adam Retter: >> >> I am using PDFBox 2.0.2 and trying to add a cover page to my PDF. The >> Cover Page needs to have the same dimensions as the first page of the >> PDF. >> >> I am trying to retrieve th

Problem with getting page size

2016-08-24 Thread Adam Retter
/S001738351246a.pdf The output PDF (with my cover page) is here: https://dl.dropboxusercontent.com/u/35135948/out.pdf Thanks Adam -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk

Re: Mangled diacritic characters in metadata

2016-07-19 Thread Adam Retter
s mangling it. Thanks again. Adam. On 19 July 2016 at 08:13, Maruan Sahyoun <sahy...@fileaffairs.de> wrote: > Hi, > >> Am 18.07.2016 um 14:15 schrieb Adam Retter <adam.ret...@googlemail.com>: >> >> Using pdf-box-2.0.2: >> >> I am trying to set dc:publis

Mangled diacritic characters in metadata

2016-07-18 Thread Adam Retter
something I am doing incorrectly, perhaps I need to specify UTF-8 somewhere (my character set)? or is this a bug in pdf-box? Cheers Adam. -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk - To un

2.0.0-RC2 ScratchFileBuffer not closed!

2015-12-01 Thread Adam Retter
using try-with-resources, i.e. try(final PDDocument doc = PDDocument.load(pdf.asFile)) { ... } As far as I can see I am not manually specifying any Scratch files, are there any known issues with these not being correctly freed in 2.0.0? Cheers Adam. -- Adam Retter skype: adam.retter tweet: adamr

Re: Insert Cover Page (2.0.0)

2015-10-13 Thread Adam Retter
; document.save(...); > document.close(); > > BR > Maruan > > >> Am 13.10.2015 um 00:23 schrieb Adam Retter <adam.ret...@googlemail.com>: >> >> Thanks, >> >> I have implemented it using merge, but unfortunately that almost >&g

Re: Insert Cover Page (2.0.0)

2015-10-13 Thread Adam Retter
eginText, setFont, showText, endText } } -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org

Insert Cover Page (2.0.0)

2015-10-12 Thread Adam Retter
for an existing PDF? Perhaps subsequently adding an example to https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/ could help others? Thanks Adam. -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk

Re: Insert Cover Page (2.0.0)

2015-10-12 Thread Adam Retter
the two PDFs together. This takes an additional 10 seconds. I guess that if we had the ability to insert a page then it would be much faster than a merge? On 12 October 2015 at 21:23, Tilman Hausherr <thaush...@t-online.de> wrote: > Am 12.10.2015 um 22:03 schrieb Adam Retter: >> >&g

Re: Memory use for large PDFs?

2015-10-03 Thread Adam Retter
Hi Roberto, Thanks for your suggestions, please find my responses inline below... > Now, would you mind running your profiling using JFR and JMC. You need at > least JDK 1.7u40, and you can enable basic flight recording using at least > the following arguments to the JVM: > >

Memory use for large PDFs?

2015-09-26 Thread Adam Retter
ects are the culprit (at least with regards to the GC churn). Is PDFBox suitable for processing larger PDF documents, and if so, what stupid thing am I doing that is eating all the RAM and destroying performance? Thanks Adam. -- Adam Retter skype: adam.retter tweet: adamrette