Re: Very slow on-disk font cache population on Windows with PDFBox 2.0.31

2024-06-25 Thread Adam Rauch
the format, won't it?). I'll look at enabling more logging, and determining the font count and size on these instances, and report back if there's interest. Adam On 6/24/2024 8:16 PM, Tilman Hausherr wrote: Hi, There was a poorly thought change that made it all slower (us

Very slow on-disk font cache population on Windows with PDFBox 2.0.31

2024-06-24 Thread Adam Rauch
ous PDFBox versions. I realize there's not a lot of information to go on here, but I'm curious if anyone else has experienced this with 2.0.31. We're happy to provide more information from our instances... maybe turning on additional logging would be helpful? Count and size of f

Re: Problem with getting page size

2016-08-29 Thread Adam Retter
; 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 the size of the first page of

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 - To

Re: Mangled diacritic characters in metadata

2016-07-19 Thread Adam Retter
angling it. Thanks again. Adam. On 19 July 2016 at 08:13, Maruan Sahyoun wrote: > Hi, > >> Am 18.07.2016 um 14:15 schrieb Adam Retter : >> >> Using pdf-box-2.0.2: >> >> I am trying to set dc:publisher to "Çâmára Münícìpål de Matelâñdia" in >> the me

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

RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Adam Steen
acroForm.getFields().add(radioButton); System.out.println(radioButton.getValue()); //acroForm.refreshAppearances(); // not implemented contents.close(); document.save(new FileOutputStream(fileName)); document.close(); } } Adam -Original Message--

RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-21 Thread Adam Steen
oes not want to render it. Is " pdAcroForm.setNeedAppearances(true);" a hack? Should I be rendering everything myself? Adam -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online.de] Sent: Thursday, 21 January 2016 4:29 PM To: users@pdfbox.apache.org Subject: Re: How do you cre

RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-20 Thread Adam Steen
It seems without building an appearance I am unable to set a default value? Does anyone have any ideas? Adam -Original Message- From: Adam Steen [mailto:ad...@rmt.com.au] Sent: Thursday, 21 January 2016 8:26 AM To: users@pdfbox.apache.org Subject: RE: How do you create a Radio Button

RE: How do you create a Radio Button Group with PDFBox 2.0?

2016-01-20 Thread Adam Steen
Hi I did manage to get a Radio Group functioning, I have posted the code to my question on stack overflow -> http://stackoverflow.com/a/34895158/415681 The next problem will be getting a default value set. Adam -Original Message- From: Tilman Hausherr [mailto:thaush...@t-online

How do you create a Radio Button Group with PDFBox 2.0?

2016-01-19 Thread Adam Steen
800 - i * (21), 16, 16)); widget.setAppearanceCharacteristics(fieldAppearance); acroForm.getFields().add(button); page.getAnnotations().add(widget); } contents.close(); document.save(new FileOutputStream("RadioButtonTest.pdf")); document.close(); Cheers Adam

2.0.0-RC2 ScratchFileBuffer not closed!

2015-12-01 Thread Adam Retter
g 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
regularFont, footerDetail) } private void addFooter(PDDocument doc, PDPage page, PDFont regularFont, FooterDetail footerDetail) { try(final PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, true, true)) { //various positioning, and calls to beginText, setFont, showText

Re: Insert Cover Page (2.0.0)

2015-10-13 Thread Adam Retter
ave(...); > document.close(); > > BR > Maruan > > >> Am 13.10.2015 um 00:23 schrieb Adam Retter : >> >> Thanks, >> >> I have implemented it using merge, but unfortunately that almost >> doubles my processing time :-( >> >> The steps

Re: Insert Cover Page (2.0.0)

2015-10-12 Thread Adam Retter
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 wrote: > Am 12.10.2015 um 22:03 schrieb Adam Retter: >> >> Hey there, >> >

Insert Cover Page (2.0.0)

2015-10-12 Thread Adam Retter
dex 0 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.o

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: > > -XX:+UnlockCommercia

Re: Memory use for large PDFs?

2015-10-03 Thread Adam Retter
see how this would be any more efficient, can someone explain? Also I see that PDFBox 2.0.0 is not yet released but does have an iterator interface on PDPageTree. Is it already stable/reliable enough to use? -- Adam Retter skype: adam.retter tweet: adamrett

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: adam

Re: Functionality in PDFBOX

2011-11-08 Thread Adam Nichols
No. I haven't dealt with any named destinations yet. But if you can get the object id/revision of the page it points to, you should be able to get the page number in the map just like is done with normal bookmarks. On Mon, Nov 7, 2011 at 3:23 PM, Hesham G. wrote: > Adam , > >

Re: Functionality in PDFBOX

2011-11-07 Thread Adam Nichols
I've implemented code which splits PDFs based on bookmarks, combines PDFs, and add bookmarks. In my experience, PDFBox was able to do everything with bookmarks which is specified in the PDF Specification (ISO32000) and I've contributed code in the past which maps bookmarks to page numbers for quic

Re: PDF is wrongly password protected

2011-09-19 Thread Adam Nichols
read-only . > > The crucial point is that all of the pdfs (200-300 per day) are created > and locked down in the same way and yet in the last couple of months I've > had two instances of a file being password protected at the user level. > > Steve Lindsey > > > &

Re: PDF is wrongly password protected

2011-09-16 Thread Adam Nichols
Was the file password protected before you started? There's a method to remove all encryption (I think it's in PDDocument, if I recall correctly). If you start with that method, you can be certain that any old encryption was removed, and all that will remain is what is in your code below. O

Re: Question on bookmarks and actions

2011-09-16 Thread Adam Nichols
If I remember correctly the named destination will resolve to an object id/generation and you can look that up in the PDDocument method... named... getPageNumberMap() (or something similar, I don't have the code in front of me right now). --Adam On 09/15/2011 05:38 PM, nnkfws333 wrote:

Re: Make a PDF form read-only

2011-08-26 Thread Adam Nichols
mpare. --Adam On Thu, Aug 25, 2011 at 8:28 PM, Ken Bowen wrote: > Adam...below > > On Aug 25, 2011, at 7:46 PM, Adam Nichols wrote: > >> AccessPermission can be used without encrypting the PDF.  That's why I >> said it is not related to encryption. > > I would be ve

Re: Make a PDF form read-only

2011-08-25 Thread Adam Nichols
n order to use AccessPermission, then I would agree that it is related to encryption. On Thu, Aug 25, 2011 at 6:02 PM, Ken Bowen wrote: > Hello Adam, > > Thanks for the reply.  Unfortunately, we're not interested in encrypting the > form; only in preventing > further changes bey

Re: Make a PDF form read-only

2011-08-24 Thread Adam Nichols
rce the editability of the file. As long as the program can process the file enough to know what to render, then it has everything it needs to write out a copy and modify the copy. Hope this helps you understand how PDFs work, and how the class works. --Adam On 08/24/2011 08:19 PM, Ken Bowen wrote

Re: Text extraction results in strange characters

2011-06-23 Thread Adam
#x27;ve never actually done any OCR myself, so maybe the OCR libraries out there already take some/most/all of this into account. There might be someone else on this list who has experience and can provide some advice. If not, check with the developers of OCR libs; I'm sure they'll

Re: Text extraction results in strange characters

2011-06-23 Thread Adam
not 100% accurate, but it'd be better than nothing. Developers, I suggest we add this to the FAQ on the website. I've seen it come up a few times, and it's a very interesting explanation. Thanks, Adam From: Daniel Sánchez González To: users@pdfbox.apache.org Date: 06/23/2

Re: Why org.bouncycastle.* packages were specified as mandatory in the manifest in the pdfbox-1.5.0.jar

2011-06-23 Thread Adam
be able to remove bc and still have working crypto capabilities. Once the non-bc version is stable and can handle all RC4, and AES cases that bc can handle, we can mark the bc libs as optional. Thanks, Adam From: Thomas Chojecki To: users@pdfbox.apache.org Date: 06/23/2011 05:53 Sub

Re: Is there a difference between Watermark & Stamp ?

2011-06-16 Thread Adam
read. For example 7.5.5 says "Conforming readers should read a PDF file from its end." Once you know this, you can do the same thing that all PDF software does (or at least, what they should be doing). Hope this helps get you started. Happy reading. ---- Thanks, Adam From: "H

Re: Is there a difference between Watermark & Stamp ?

2011-06-16 Thread Adam
oesn't work, check the user mailing list and see if anyone has any suggestions. If not, check the dev mailing list to see if the functionality currently exists and if not, if anyone has any suggestions on where you should implement it. Thanks, Adam From: "Hesham G."

Re: Pulling project down via subversion (in Eclipse)

2011-05-19 Thread Adam
I use the command line version of svn. It's available for both Linux and Windows. If you are using Windows and want a GUI, you can use tortoiseSVN. They should both work fine with very little memory usage. Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date:

Re: Converting an image to a PDF

2011-04-21 Thread Adam
mage awtImage) constructor, this sounds like it's the answer to embed any image into a PDF. Thanks, Adam From: Russ Pridemore To: users@pdfbox.apache.org Date: 04/21/2011 14:07 Subject: Re: Converting an image to a PDF Yes, I can confirm that works, but may not produce acceptabl

Converting an image to a PDF

2011-04-21 Thread Adam
way to convert a PNG to a PDF? If so, do I need to worry about things like scaling, images becoming blurry or too small to see/read, large images getting cut off b/c they don't fit on a page, etc.? Thanks, Adam - FHA 203b; 203k; HECM; VA; USDA; Conventional - Warehouse Lines; FHA-Aut

Re: PDOptionalContentGroup and Layers

2011-04-15 Thread Adam
don't think this is a limitation of PDFBox, but rather a limitation of the PDF file format itself (and not so much of a limitation as it is a design decision). However, I've never worked with layers specifically, so there could be some exception made for those objects. ---- Thank

Re: Off Topic: pdfbox a good example of a project from which to learn?

2011-04-12 Thread Adam
better way to do it. So you not only learn the best way to do it, but why. For a quick example of this, check out Martijn's patch for PDFBOX-908: https://issues.apache.org/jira/browse/PDFBOX-908 Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 04/12/2011 10:2

Running PDFBox on phones (and phone like devices)

2011-04-06 Thread Adam
splitting up PDFBox into modules, but for those who need something right away, this might help. I don't do anything on small or embedded devices, but I wanted to pass it along for those of you who do. [1] http://proguard.sourceforge.net Thanks, Adam - FHA 203b; 203k; HECM; VA;

Re: Creating a PDF with a digital signature

2011-04-04 Thread Adam
ded to PDFBox due to copyright, but he'll add a small example for basic signatures when he gets time. [1] https://issues.apache.org/jira/browse/PDFBOX-912 Thanks, Adam From: "Marco Steybe" To: users@pdfbox.apache.org Date: 04/04/2011 06:04 Subject: Creating a PDF with a

Re: About bookmark

2011-04-04 Thread Adam
ne, there are certainly no bookmarks! PDOutlineItem item = root.getFirstChild(); } And subsequent bookmarks can then be obtained via: item.getFirstChild() and item.getNextSibling() Thanks, Adam From: "Cescky" To: "users" Date: 04/02/2011 04:24 Subject: Ab

RE: changing pdf document in order it could be printed as book

2011-03-17 Thread Adam
Oops, missed a folder, that should be: org\apache\pdfbox\util Thanks, Adam From: Eugeny Melamud To: "users@pdfbox.apache.org" Date: 03/17/2011 03:15 Subject: RE: changing pdf document in order it could be printed as book Hi, I see no PageExtractor.java in org\apache\pdf

Re: changing pdf document in order it could be printed as book

2011-03-16 Thread Adam
Check out PageExtractor.java in org\apache\pdfbox\util. I think you will find it's just the code you were looking for. Thanks, Adam From: Eugeny Melamud To: "users@pdfbox.apache.org" Date: 03/16/2011 06:56 Subject: changing pdf document in order it could be printe

Re: OFF TOPIC -- Extracting PDF tables by selecting them?

2011-03-16 Thread Adam
yself, but I hopefully someone else on the list will be able to point you in the right direction. Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 03/16/2011 08:23 Subject: OFF TOPIC -- Extracting PDF tables by selecting them? Sorry, I understand pdfbox probably won

Re: Printing a PDF including OTF fonts not working

2011-02-17 Thread Adam
the JIRA issue will just turn into a feature request. In any case, opening an issue and uploading the file is the next step. [1] https://issues.apache.org/jira/browse/PDFBOX Thanks, Adam From: Clemens Lanthaler To: users@pdfbox.apache.org Date: 02/17/2011 12:42 Subject: Re: Printing

Re: Printing a PDF including OTF fonts not working

2011-02-17 Thread Adam
perly with other PDFs? Thanks, Adam From: Clemens Lanthaler To: users@pdfbox.apache.org Date: 02/17/2011 11:57 Subject: Printing a PDF including OTF fonts not working Hi, I have tried to print a document (see attachment) but the pages are completely empty. Also text extraction i

Re: Creating a link with no border

2011-01-18 Thread Adam
It looks to me like you're doing everything correctly, and Adobe Reader renders it properly, so it sounds like that a bug with Mac Preview. The only thing you can do is report it to them and hope they fix it. Setting the border to zero really should work. Thanks, Adam From: &q

RE: Can PDFBox extract text from PDF Documents that have "text boxes" ?

2011-01-17 Thread Adam
you get a sample PDF, attach that as well. Thanks, Adam From: "Lupton, Chris B." To: "users@pdfbox.apache.org" Date: 01/17/2011 06:35 Subject: RE: Can PDFBox extract text from PDF Documents that have "text boxes" ? Thanks for the tip about checking the Fi

Re: TR: still NumberFormatException when parsing type 1 font ([PDFBOX-921] jira issue) with 1.4.0 version

2011-01-14 Thread Adam
Attachments are blocked from the mailing list. You should be able to attach it to the JIRA issue along with a comment that this is not completely resolved and that will automatically trigger an e-mail to all the developers letting us know so we can look into it. Thanks, Adam From

Re: Can PDFBox extract text from PDF Documents that have "text boxes" ?

2011-01-14 Thread Adam
ut what's going on. Thanks, Adam From: "Lupton, Chris B." To: "users@pdfbox.apache.org" Date: 01/14/2011 09:19 Subject: Can PDFBox extract text from PDF Documents that have "text boxes" ? I have PDF Documents that have apparently been edited by

Re: Adobe PDF versions supported by PDFBOX

2010-12-15 Thread Adam
r us to determine what the issue is. Thanks, Adam From: Chandu To: users@pdfbox.apache.org Date: 12/14/2010 22:24 Subject: Adobe PDF versions supported by PDFBOX Hello all, pdfbox release notes doesn't mention anything on the adobe pdf versions it supports. Please let me know if anyone

Re: org.apache.pdfbox.io.PushBackInputStream on some PDFs

2010-12-13 Thread Adam
makes the code simpler, but I'll have to see if it handles all the cases that the current code handles even when force parsing is off. At a glance it appears that it does, but I want to confirm and add some test cases so these things are tested automatically. Thanks, Adam

Re: Execution instruction errors

2010-12-09 Thread Adam
AL-55 [3] https://issues.apache.org/jira/browse/LEGAL-36 "Apache projects must not include material under such licenses in version control or in released source packages" Thanks, Adam From: Michael Schmitz To: users@pdfbox.apache.org Date: 12/09/2010 15:10 Subject: Execution instru

Re: org.apache.pdfbox.io.PushBackInputStream on some PDFs

2010-12-09 Thread Adam
is file. One of our goals is to make PDFBox be able to read non-conforming PDFs as best it can without throwing an exception; this PDF could serve as a good example on some things we need to watch out for. [1] https://issues.apache.org/jira/browse/PDFBOX Thanks, Adam From: Alex Rodrig

Re: Extracting Text from 2 Column PDFs

2010-12-06 Thread Adam
e same distance apart as a space, then the code has no way of knowing if it's the next word or the next column. It it's a lot of space it should be fine, and if it's somewhere in between, it may detect it properly or it may not. The recent patch should make this grey area much more

Re: PrintPDF on UNIX

2010-12-01 Thread Adam
tly without any trouble. ---- Thanks, Adam From: Anindhya Sharma To: "users@pdfbox.apache.org" Date: 12/01/2010 15:02 Subject: PrintPDF on UNIX We are evaluating PDFBox for use, specifically we are interested in the PrintPDF command line utility. Was wondering if anyone has used it

Re: Digital signature with PDFBox?

2010-11-29 Thread Adam
I haven't dealt with signatures in PDFs before, but I'm also interested in the topic. Will the digital signatures be based on section 12.8 of the PDF spec (ISO32000-1:2008)? Thanks, Adam From: Ken Bowen To: users@pdfbox.apache.org Date: 11/25/2010 15:51 Subject: Re: Digital

Re: editing, moving comments and bookmarks?

2010-11-18 Thread Adam
If you run into issues, I might be able to help out, if given a PDF and a very short bit of code which doesn't work (remember, no attachments to the list). If these servers stop crashing I should be able to spare a few minutes to quickly look it over. Thanks, Adam From: Kevin

Re: editing, moving comments and bookmarks?

2010-11-18 Thread Adam
SO32000 to help Hesham, so I'm pretty good at looking at the raw data with a text editor and tracing through to see how everything is laid out and why it is or is not working. Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 11/18/2010 09:28 Subject: Re: editing, mov

Re: editing, moving comments and bookmarks?

2010-11-18 Thread Adam
I've done some work with bookmarks. What did you want to know? What are you trying to do? Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 11/18/2010 09:02 Subject: editing, moving comments and bookmarks? Hi, has anyone had experience using pdfbox to edit a

Re: Error in Acrobat reader when composing a PDF from several PDF sources and adding text

2010-11-15 Thread Adam
You can also check out org.apache.pdfbox.util.PDFMergerUtility.java to make merging the PDFs easier. Thanks, Adam From: Сергей Жиляев To: users@pdfbox.apache.org Date: 11/13/2010 11:31 Subject: Error in Acrobat reader when composing a PDF from several PDF sources and adding text

Re: Edit existing PDF

2010-11-12 Thread Adam
I just found this article[1] which may help you. [1] http://www.smallpawn.com/blog1.php/2010/09/14/insert-text-into-a-pdf-using-java-and-pdfbox Thanks, Adam From: "T. Groch" To: users@pdfbox.apache.org Date: 11/12/2010 03:13 Subject: Re: Edit existing PDF Hi, since th

Re: Is there a difference between Watermark & Stamp ?

2010-11-11 Thread Adam
ou go hacking up the PDF or you'll probably end up with a corrupt document). Thanks, Adam From: "Hesham G." To: Date: 11/11/2010 03:15 Subject: Re: Is there a difference between Watermark & Stamp ? Adam , Thanks a lot for you reply, and sorry for being that late ..

Re: Edit existing PDF

2010-11-10 Thread Adam
block and have doc.close() in the finally block. This will make sure your documents are always closed properly. ---- Thanks, Adam From: "T. Groch" To: users@pdfbox.apache.org Date: 11/10/2010 09:49 Subject: Re: Edit existing PDF Hi Adam, thank you for that tip. In the meantime I ma

Re: Edit existing PDF

2010-11-10 Thread Adam
urce.close(); } catch(Exception sorry) { } } I haven't needed to edit anything other than bookmarks in my PDFs, so I can't help you on that front, but I'm sure someone else on the list will chime in shortly with some helpful pointers. Thanks, Adam From: "T. Groch"

Fw: Is there a difference between Watermark & Stamp ?

2010-11-09 Thread Adam
at your test document actually has a real watermark, or to manually add a watermark to one of your test documents. Thanks, Adam - Forwarded by Adam Nichols/UR/CER/XLDynamics on 11/09/2010 12:04 - From: Adam Nichols/UR/CER/XLDynamics To: users@pdfbox.apache.org Cc: "pdfbox-

Re: Is there a difference between Watermark & Stamp ?

2010-11-08 Thread Adam
test document actually has a real watermark, or to manually add a watermark to one of your test documents. Thanks, Adam From: "Hesham G." To: "pdfbox-send-question" Date: 11/07/2010 00:53 Subject: Is there a difference between Watermark & Stamp ? Hello everyo

Re: Save URLs to PDFs?

2010-11-05 Thread Adam
so, then the content must be different, and it should just be a matter of running `diff` on the files to see what's going wrong. Thanks, Adam From: Yogesh To: gr...@floorsoft.com Cc: users@pdfbox.apache.org Date: 11/05/2010 15:29 Subject: Re: Save URLs to PDFs? Yes. I can dow

RE: copy entire stream of a page ignoring images

2010-10-25 Thread Adam
actually doing. It will also be interesting to see if the one that has 2 images comes out twice as messed up as the one which only has one image. That should at least give you enough information to determine where the issue lies. Thanks, Adam From: José Rodolfo Carrijo de Freitas T

Re: Read Table of contents

2010-10-22 Thread Adam
art 1 Part 2 ...and so on Thanks, Adam From: Nilesh Araligidad To: users@pdfbox.apache.org Date: 10/22/2010 14:06 Subject: Read Table of contents Hello All, I am trying to read the Table of contents from a pdf document. Is there built in functionality in the PDFBOX to read the tab

Re: RES: copy entire stream of a page ignoring images

2010-10-22 Thread Adam
will match up to this version of the PDF spec. Remember, referencing the official PDF specifications and looking at the PDF file in a good text editor is often extremely helpful in debugging issues. Hope you find the above info helpful. Thanks, Adam From: José Rodolfo Carrijo de Fre

Re: PDFBox library - how can I reduce the size of the pdfbox.jar and don't break it

2010-10-14 Thread Adam
If you're not going to be dealing with any encrypted file, you can omit the bouncy castle jar files. I believe you can get rid of Lucerne-related stuff as that should only be used for searching for text. Thanks, Adam From: Leni Kirilov To: users@pdfbox.apache.org Date: 10/14

PDDocument resolution DPI

2010-10-04 Thread Adam Kuran
me if I'm wrong). My map has bad quality, and it isn't keeping the scale - it's exactly 1.33... times to big (1.333... = 96dpi/72dpi). Can I change resolution of the document or resoltion of the page? Do You know any walkaround for this situation. Looking forward Your answer. Best Regards. Adam

Re: Embed PNG/GIF image into existing PDF Document

2010-09-30 Thread Adam
n a limited fashion. It sounds like the best solution would be to see if you can get the PDPixelMap working. I'm not familiar with it and I don't really have enough time to look into it and see what's wrong, but I'd imagine it'd be easy to fix since it (presumably) work

Re: Embed PNG/GIF image into existing PDF Document

2010-09-30 Thread Adam
hat's the case. Good luck Thanks, Adam From: Vinayak To: users@pdfbox.apache.org Date: 09/30/2010 12:31 Subject: Re: Embed PNG/GIF image into existing PDF Document Adam and Thomas, Thanks a lot for your pointers. After searching through the mailing list archives, i came to realiz

RE: Embed PNG/GIF image into existing PDF Document

2010-09-30 Thread Adam
n embedding images, but I'm trying to point you in the right direction. [1] http://markmail.org/message/mzz44sqdxcumsljr [2] http://pdfbox.apache.org/mail-lists.html Thanks, Adam From: "Vinayak Mishra" To: "users@pdfbox.apache.org" Date: 09/30/2010 10:36

Re: Replace Image in PDF with another Image

2010-09-30 Thread Adam
There was someone asking a similar question a few weeks ago. Check out the mailing list archives[1] specifically this message[2]. [1] http://pdfbox.apache.org/mail-lists.html [2] http://markmail.org/message/mzz44sqdxcumsljr Thanks, Adam From: Donal Boyle To: users@pdfbox.apache.org

Re: using bookmark to extract text in pdf

2010-09-14 Thread Adam
I'm not sure how bookmarks fit into your plan, but here's the guide on text extraction: http://www.pdfbox.org/userguide/text_extraction.html Thanks, Adam From: arun segar To: users@pdfbox.apache.org Date: 09/14/2010 06:30 Subject: using bookmark to extract text in pdf

Re: getting and setting names of named destinations

2010-09-14 Thread Adam
just removing one page from a small document (perhaps three pages total) to keep things simple and easy to work with. Thanks, Adam From: "Hesham G." To: Date: 09/14/2010 01:55 Subject: Re: getting and setting names of named destinations Adam , I agree with you that this

Re: getting and setting names of named destinations

2010-09-13 Thread Adam
or may not delete the actual page object, depending on what software you are using). So the other pages don't change object ID nor revision number. ---- Thanks, Adam From: "Hesham G." To: Date: 09/11/2010 02:20 Subject: Re: getting and setting names of named destinations

Re: Clear bookmark children

2010-09-07 Thread Adam
Make a new PDOutlineItem which points to the same destination and then replace the old bookmark with the new one. That should effectively be the same as clearing it out. Then you can use the old PDOutlineItem to copy over the children that you do want to keep. Thanks, Adam From

Re: getting and setting names of named destinations

2010-09-07 Thread Adam
andles the catalog Names. You might be able to look there for an example. PDDocumentNameDictionary destNames = destCatalog.getNames(); I can't say whether or not this will have all the information you're looking for or not, but it should at least be a good first step. Let me know if

Re: getting and setting names of named destinations

2010-09-02 Thread Adam
) and know exactly what to look for, I should be able to take a look. It's just when the code gets long and complex that it'll be an issue. As long as your reports are as short and concise as this one, I'm sure we'll get it resolved quickly. Thanks, Adam From: Hesham

Re: Can't decrypt with default password, but can open without password

2010-08-27 Thread Adam
oblem that'll let us confirm it's working as expected and do some debugging / analysis. [1] https://issues.apache.org/jira/browse/PDFBOX ---- Thanks, Adam From: Gary LosHuertos To: users@pdfbox.apache.org Date: 08/27/2010 15:04 Subject: Re: Can't decrypt with default password,

Re: Can't decrypt with default password, but can open without password

2010-08-27 Thread Adam
); } catch(Exception ex) { } } } Also, if you want to remove the security when you save, just call doc.setAllSecurityToBeRemoved(true); doc.save(fos); // fos being your FileOutputStream fos.close(); Thanks, Adam From: Gary LosHuertos To: users@pdfbox.apache.org Date: 08/27/2010 10:58 Subj

Re: Replacing images contents

2010-08-25 Thread Adam
xpect your code to process them the same as a proper PDF). [1] PDXObjectImage image = (PDXObjectImage) PDXObject.createXObject((COSStream) obj.getObject() ); Thanks, Adam From: Julien Plée To: users@pdfbox.apache.org Date: 08/25/2010 15:00 Subject: Replacing images contents Hello, I have to

Re: need help for stream part in a PDF file

2010-08-25 Thread Adam
ed by a method when you're debugging). That's how I figured most of the things I've done with PDFBox... a debugger and the Javadocs. It's a fast way to learn just enough about the code to get the job done. [1] http://www.pdfbox.org/javadoc/org/pdfbox/pdmodel/interactive/form

Re: need help for stream part in a PDF file

2010-08-24 Thread Adam
ll at least need the code which updates & saves the data before we can help with why it won't update & save. Thanks, Adam From: mathieu fabre To: users@pdfbox.apache.org Date: 08/24/2010 14:09 Subject: Re: need help for stream part in a PDF file No one can help me fo

PDF Validator

2010-08-24 Thread Adam
s, so it doesn't seem like it'd be that much work to add this. All we have to do is put a command line utility in there which loads the PDF and then sees if it's valid or not and outputs the specific errors if it's not. What do you think? Would this be something you would fi

Re: NullPointerException while splitting a PDF document. Please advise.

2010-08-11 Thread Adam
Did this also produce an NPE, or was that just when you extended the Splitter class? Let us know if you're still having issues. Thanks, Adam From: Joe Hansen To: users@pdfbox.apache.org Date: 07/30/2010 09:28 Subject: Re: NullPointerException while splitting a PDF document. P

Re: PDFBox problem with pdf merge

2010-08-11 Thread Adam
Can you open up an issue in JIRA[1] and attach the two PDFs you are trying to merge? Also, are you using the PDFMergerUtility class to do the merging? Please provide the smallest amount of code which still illustrates the problem. [1] https://issues.apache.org/jira Thanks, Adam

Re: Extracting content string corresponding to a bookmark

2010-07-27 Thread Adam
up with text in the document (although it should be close). As long as you know where this bookmark is, and where the next bookmark is, extracting the text in between should not be too difficult. I've not done any text extraction either, but there are others on the mailing lists which

Re: Problem with Text Extraction in pdfbox 1.2.1

2010-07-27 Thread Adam
ng PDF; if it is, we can update the library. If it's non-conforming (i.e. it doesn't follow the PDF specification), we'll take a look and see what the best way to handle it would be. Thanks, Adam From: "Robson Bortoleto" To: users@pdfbox.apache.org Date: 0

Re: Adding named destinations to PDf file

2010-07-19 Thread Adam
-mail was "getting and setting names of named destinations" and I think most or all the other e-mails shared that subject line. You should be able to find the messages in the archive. ---- Thanks, Adam From: Chemi To: users@pdfbox.apache.org Date: 07/18/2010 00:56 Subjec

Re: getting page numbers of named destinations

2010-06-18 Thread Adam
e this helps explain the differences and why one would be chosen over the other. Kevin, I too am interested in how you did this, as I expect I'll have to cross this bridge at some point. Thanks, Adam From: "Hesham G." To: Date: 06/17/2010 20:14 Subject: Re: ge

Re: Is it feasible with PdfBox to generate pdf with form using xml data and get back the form data to server?

2010-06-10 Thread Adam
ou understand how PDFs are laid out, everything becomes tremendously easier no matter which library you are using. [1] http://jasperforge.org/projects/ireport Thanks, Adam From: Pramod Chandoria To: users@pdfbox.apache.org Date: 06/09/2010 23:26 Subject: Is it feasible with PdfBox to ge

Re: Template

2010-06-10 Thread Adam
e.org//website/ireportwebsite/IR%20Website/ir_deploying_reports.html?target=ireport Thanks, Adam From: "Wright, Stephen" To: Date: 06/10/2010 04:13 Subject: Template I am wondering if there is a way to setup a template when using PDFBox to generate a report with java? Than

Re: getting page numbers of named destinations

2010-06-01 Thread Adam
now what you're looking for, it's just a matter of looking at things in PDDocumentCatalog to find it. Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 05/25/2010 11:11 Subject: Re: getting page numbers of named destinations Thanks much! I'm trying this

Re: getting page numbers of named destinations

2010-05-19 Thread Adam
how everything is connected. ---- Thanks, Adam From: Kevin Brown To: users@pdfbox.apache.org Date: 05/19/2010 08:42 Subject: getting page numbers of named destinations Is it possible to, for a PDF, get the named destinations in it, and find out what page each is on? It doesn't

RE: Why would PDFTextStripper.getText() generate a NullPointerException ?

2010-05-11 Thread Adam
e on the will have an idea of where to go next. Of course, you'll have to compile PDFBox to do this (not sure if you're doing that now or just using the 1.1.0 jar files). Hope this helps you at least a little. --Adam From: "Lupton, Chris B." To: Cc: "Lupt

Re: pdfbox

2010-04-30 Thread Adam
\searchengine\lucene for more info on that. Thanks, Adam From: Arovit Narula To: users@pdfbox.apache.org Date: 04/30/2010 07:38 Subject: pdfbox Hello , I am a software engineering student from India.I am building a search engine for pdf docs.I came across your parser.I am planing to use your

  1   2   >