Re: PDF Processing



10 is the number of pages of the pdf file.....
nullpointer exception in getproperty() method........

Andrew Thompson wrote:
...
I am PDF Processing...When i tried to execute the following code ,it
thows NULLPOINTER exception...

Did you mean a NullPointerException?

If so,
a) Please don't SHOUT at us.
and
b) Please be specific.

Programming is hard. Debugging is harder.
Debugging an application remotely, where the
exceptions and errors are being 'paraphrased' is
even harder again.

Don't make it hard on us (please).

...The exception occured at this line System.out.
println(view.getProperty("Default_Zoom_Type"));

I would have guessed that if any property either does not
exist, or is not defined for that PDF file, it returns null.

OTOH, that does not explain the exception, since the output
should simply have been
null
like this line would print..
System.out.println((String)null);

Indeed, the NPE suggests the viewer itself is null, but if
so, the page count could not have been referenced on the
previous line*.

*
System.out.println(view.getPageCount());

Which leads me to..
Please copy/paste the stacktrace. As well as the
output you are seeing.


--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200711/1

.



Relevant Pages

  • Re: Extracting pages from PDF based on colour figures
    ... I then print each PDF file on the appropriate printer. ... that can also be used to extract pages ... Exception in thread "main" java.lang.NoClassDefFoundError: ... I also noticed that the coloured boxes around hyperlinks are selected as ...
    (comp.text.tex)
  • Re: How to get graphics into the PDF file
    ... All graphics and formatting are preserved as the report is converted to PDF. ... The only exception, detailed in several places on the Web page, README files ...
    (microsoft.public.access.reports)
  • Re: how do create a link on my page to buy a pdf file.
    ... Isn't it the same way you would link any PDF with the exception the file would ... be password protected, once the money is paid, you would then send the password? ...
    (microsoft.public.publisher.webdesign)
  • Re: Exception in Addin , plzzz help
    ... Can you provide your code and show the exact line of exception? ... I have addin in word which converts the word document into PDF. ... While the conversion the active printer of the document is set to the ...
    (microsoft.public.office.developer.com.add_ins)