PDF version question

2016-08-29 Thread Tsuchihashi, Kensho
Hi, I am working for a software vendor that provides full text search functionality. This function is based on "Elastic Search", which seems to use Apache's Tika 1.6 library. Customer wants to know which version of Adobe PDF is supported in our software and I believe it is dependent on whatever

Re: "OutOfMemoryError: Java heap space" even when using MemoryUsageSetting.setupTempFileOnly()

2016-08-29 Thread John Hewson
> On 28 Aug 2016, at 04:30, Tilman Hausherr wrote: > > Am 28.08.2016 um 10:53 schrieb or...@beeriprint.co.il: >> looks like MemoryUsageSetting.setupTempFileOnly() has no affect ? >> do I use it incorrectlly ? > > You're using it correctly. The solution is below: > >> >> ** I can overcome this

Re: Question on lines in PDFs

2016-08-29 Thread Tilman Hausherr
Am 29.08.2016 um 22:40 schrieb Clark, Raymond C: Is there a way to pull out information on lines and rectangles from a PDF using PDFBox? Here's some code for that: http://stackoverflow.com/a/38933039/535646 Tilman - To unsu

Question on lines in PDFs

2016-08-29 Thread Clark, Raymond C
Hi all, I found some code online which has been very helpful. I am using one class (PrintTextLocations) that extends PDFTextStripper to pull out information on text and another class (PrintImageLocations) that extends PDFStreamEngine to pull out information on text. Is there a way to pull out

Re: Embedded file locked?

2016-08-29 Thread Tilman Hausherr
No - I looked at the PDF specification, lock is available only for annotations and for signatures. TIlman Am 29.08.2016 um 10:13 schrieb nico.pren...@vlh.de: Hello all, is there a possibility to lock an embedded file like the setLocked(*true*)flag within PDAnnotationFileAttachment? I don't w

Re: PDFBox - replace text, add color to text, delete text

2016-08-29 Thread Tilman Hausherr
Am 29.08.2016 um 09:02 schrieb Yurii Luchkiv: Hello PdfBox team. Is there any good examples where I can check how to replace text or add color to text or underline a text? I found some examples like: https://svn.apache.org/repos/asf/pdfbox/tags/1.5.0/pdfbox/src/main/java/org/apache/pdfbox/exampl

Re: Problem with getting page size

2016-08-29 Thread Adam Retter
Thank you, that was exactly the issue. All working now :-) On 24 August 2016 at 18:23, Tilman Hausherr wrote: > Your page has also a cropbox. You need to set that as well. Alternatively, > just take the widths of the cropbox and use them for the new mediabox. > > Tilman > > > Am 24.08.2016 um 16:

Re: Check for scripts in a PDF

2016-08-29 Thread Maruan Sahyoun
Dear Davide, you had a specific question " ... access the acroForm (even in a pdf file with scripts and forms) it's null. …" but the samples you are lonking to > Am 29.08.2016 um 13:16 schrieb Davide Zoni : > > Hallo, > > yuo can find something a multimedia example here (i'm aware that the co

RE: Check for scripts in a PDF

2016-08-29 Thread Davide Zoni
Hallo, yuo can find something a multimedia example here (i'm aware that the code suggested by Tilman might not work here) : http://media.washingtonpost.com/wp-adv/advertisers/Adobe/Obama/090808/ObamaPort.pdf or here (the first one): http://www.pdfscripting.com/public/Free-Sample-PDF-Files-with

Re: Check for scripts in a PDF

2016-08-29 Thread Maruan Sahyoun
Hi, > Am 29.08.2016 um 11:09 schrieb Davide Zoni : > > Hi everybody again, > > i'm trying to figure out if your method is suitable for my necessities but > everytime i try to access the acroForm (even in a pdf file with scripts and > forms) it's null. could you upload a sample PDF to a publi

RE: Check for scripts in a PDF

2016-08-29 Thread Davide Zoni
Hi everybody again, i'm trying to figure out if your method is suitable for my necessities but everytime i try to access the acroForm (even in a pdf file with scripts and forms) it's null. Am i loading the file in a wrong way? Am i missing something? Best regards. _

Re: Embedded file locked?

2016-08-29 Thread Gilad Denneboom
When you lock an annotation it means it can't be moved around or edited unless the lock is removed (which is easily done). What would locking an embedded file mean, exactly? On Mon, Aug 29, 2016 at 10:13 AM, wrote: > Hello all, > > is there a possibility to lock an embedded file like the setLock

Re: Embedded file locked?

2016-08-29 Thread Maruan Sahyoun
Dear Nico, > Am 29.08.2016 um 10:13 schrieb nico.pren...@vlh.de: > > Hello all, > > is there a possibility to lock an embedded file like the setLocked(true) flag > within PDAnnotationFileAttachment? I don't want to add a link to the pdf > document, but i'd like to lock the embedded file... >

Embedded file locked?

2016-08-29 Thread Nico . Prenzel
Hello all, is there a possibility to lock an embedded file like the setLocked(true) flag within PDAnnotationFileAttachment? I don't want to add a link to the pdf document, but i'd like to lock the embedded file... PDAnnotationFileAttachment txtLink = new PDAnnotationFileAttachment(); txtLink.s

PDFBox - replace text, add color to text, delete text

2016-08-29 Thread Yurii Luchkiv
Hello PdfBox team. Is there any good examples where I can check how to replace text or add color to text or underline a text? I found some examples like: https://svn.apache.org/repos/asf/pdfbox/tags/1.5.0/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceString.java But as I see from