Re: Reg:Converting pdf into image.

2009-10-28 Thread Daniel Wilson
. but it always giving an null as a result.so while coming to convertToImage() method its giving the object null reference error.so i am struggling to move further. please assit me to move further. Thanks in advance. RajaSubramanian. - Original Message - From: Daniel Wilson

Re: Reg:Converting pdf into image.

2009-10-28 Thread Daniel Wilson
=pagedrawer.getPage() //System.Drawing.Graphics image = page.convertToImage(); java.awt.image.BufferedImage image=page.convertToImage(); java.io.File file = new java.io.File((pdf+i+.png)); ImageIO.write(image, png, file); } } - Original Message - From: Daniel Wilson

Re: Reg:Converting pdf into image.

2009-10-27 Thread Daniel Wilson
Please see the code in trunk\src\main\java\org\apache\pdfbox\PDFToImage.java. You may well want to adjust it to your needs, but that is the primary example for that work. Daniel Wilson On Tue, Oct 27, 2009 at 7:47 AM, Raja Subramanian raj...@sybrant.comwrote: Dear sir/madam

Re: Reg:Converting pdf into image.

2009-10-27 Thread Daniel Wilson
...@sybrant.comwrote: Hi Daniel Wilson, Thanks for your reply. I am not using java.I am using Dot Net(C#/Vb.net). please assit me to proceed further. Thanks and Regards, Raja Subramanaian. - Original Message - From: Daniel Wilson williamstonconsult...@gmail.com To: pdfbox-users

Re: Reg:Converting pdf into image.

2009-10-27 Thread Daniel Wilson
that Type is not implemented yet. so now i am help less to move further. so anyone please help me to move further. Thanks in Advance. Regards, Raja Subramanian. - Original Message - From: Daniel Wilson williamstonconsult...@gmail.com To: pdfbox-users@incubator.apache.org Sent

Re: Error reading a PDF

2009-08-12 Thread Daniel Wilson
looking for ? Thanks , Hesham -- From: Daniel Wilson williamstonconsult...@gmail.com Date: Wednesday, August 12, 2009 4:37 PM To: pdfbox-users@incubator.apache.org Subject: Re: Error reading a PDF Are you using the trunk version (compiling from

Re: PDFToImage problems

2009-06-16 Thread Daniel Wilson
1. Which version of PDFBox are you using? 2. Are there any errors listed in PDFBox.log? On Mon, Jun 15, 2009 at 7:13 PM, Alan Thomas jalantho...@verizon.netwrote: Ran PDFToImage on a PDF file of scanned-in forms. It produced an output PNG image for each page. Each file was 32KB in size

Re: PDFBox String Drawing

2009-05-21 Thread Daniel Wilson
Sebastian, Are you using PDFBox 0.7.3? Andreas has fixed most of those font problems in 0.8.0. If 0.8.0 doesn't work for you either, please create an issue and attach one of the PDF's with which you're having problems. Thanks. Daniel Wilson On Thu, May 21, 2009 at 3:50 AM, Sebastian Ortiz

Re: letter are replaced by box

2009-05-14 Thread Daniel Wilson
Which version of PDFBox are you using? What you describe sounds very much like the font troubles we had in 0.7.3. 0.8.0 solves many of these. (Thanks to Andreas). Daniel Wilson On Thu, May 14, 2009 at 10:53 AM, henry du henry@gmail.com wrote: Hello: I used the OpenOffice to convert MS

Re: letter are replaced by box

2009-05-14 Thread Daniel Wilson
. Is there are way to extend fonts library for PDFBox? or there is other problem. Thank you very much for help, Henry On Thu, May 14, 2009 at 11:24 AM, Daniel Wilson williamstonconsult...@gmail.com wrote: Which version of PDFBox are you using? What you describe sounds very much like the font

Re: PDFBox.log file: disable or change location?

2009-05-11 Thread Daniel Wilson
There is likely a better way. Currently, in order to disable it, comment out all the code in the constructor of LoggingObject. Daniel Wilson On Mon, May 11, 2009 at 5:13 PM, Hannes Erven han...@erven.at wrote: Hi folks, PDFBox always creates a PDFBox.log file in the current directory

Re: Please help !

2009-05-04 Thread Daniel Wilson
The development version (0.8.0) has far better font support. I believe you will need to download the source code compile it, but I think it will do what you want. If one of the other developers knows where a build is available, please correct me! Daniel Wilson On Mon, May 4, 2009 at 7:29 AM

Re: Null Pointer Class Cast Exceptions

2009-04-27 Thread Daniel Wilson
Jamie, can you attach a PDF that throws all these exceptions? Thanks. Daniel Wilson On Mon, Apr 27, 2009 at 2:00 AM, Jamie Band ja...@stimulussoft.com wrote: Here's an additional error: WARNING: java.lang.NullPointerException at org.apache.pdfbox.util.TextPosition.init(TextPosition.java

Re: PDF to Html

2009-04-24 Thread Daniel Wilson
have a look at the class PDFText2HTML The description in the comments is: * Wrap stripped text in simple HTML, trying to form HTML paragraphs. Paragraphs * broken by pages, columns, or figures are not mended. As far as PDF - fully formatted HTML ... I don't think so. Daniel Wilson 2009/4/24

Re: Re: IOException upon opening a PDF

2009-04-08 Thread Daniel Wilson
I have tried w/ the PDF I mentioned. I can attach it to a bug report. Daniel Wilson 2009/4/8 Andreas Lehmkühler andr...@lehmi.de Does this need to be reported as a bug? If so, what do I need to do? Did you ever try to open that document with the current trunk version? Daniel Wilson

Re: IOException upon opening a PDF

2009-04-02 Thread Daniel Wilson
I am aware of a bug to that effect. I've seen the same error in one of my test PDF's. Daniel Wilson On Thu, Apr 2, 2009 at 9:51 AM, tacal...@insb.uscourts.gov wrote: I am working with PDFBox-0.7.3-dev and receive the following error when opening a PDF file: Exception in thread main

Re: Re: PDF to Image - give me NullPointerException

2009-03-28 Thread Daniel Wilson
thanks -- looks good! If I'd realized it was that simple I'd have done it! Daniel Wilson 2009/3/27 Andreas Lehmkühler andr...@lehmi.de Hi Daniel, as you perhaps have already seen I picked up your suggestions and it works fine. We just skip the processing if there isn't any content

Re: PDF to Image - give me NullPointerException

2009-03-25 Thread Daniel Wilson
, but this one stumps me! If you don't get to the bottom of the NPE first, I'll try to have a look at it tonight when I'm back to my PDFBox environment. Daniel Wilson On 3/25/09, Andreas Lehmkühler andr...@lehmi.de wrote: When trying to convert PDF to image, where the PDF image is generated

Re: PDF to Image - give me NullPointerException

2009-03-25 Thread Daniel Wilson
... Daniel Wilson On Wed, Mar 25, 2009 at 9:47 AM, Daniel Wilson williamstonconsult...@gmail.com wrote: I'm loading the PDF in the Adobe plugin in FireFox and I see some names on the lower right-hand corner of page 3. I'm seeing it as a 211-page document. I also see page 2 as blank. Out

Re: Using PDFToImage

2009-01-12 Thread Daniel Wilson
PDFToImage already is a console app. Note the main() method's handling of command-line params. If you want to write your own console app, use the objects PDFToImage uses. See lines 134, 137, 164, 165. PDDocument document PDDocument.load( pdfFile ); PDFImageWriter W = new