In PDF Processing...



Hi members,
I am PDF Processing...When i tried to execute the following code ,it
thows NULLPOINTER exception...The exception occured at this line System.out.
println(view.getProperty("Default_Zoom_Type"));..... I dont know how to solve
tis.....Please refer the following code and give me the solution for this.....

Thank in advance...

import com.adobe.acrobat.Viewer;
import java.io.*;
public class PdfCheck1{
public static void main(String ar[])throws Exception{
Viewer view = new Viewer();
InputStream input = new FileInputStream("E:\\Imran\\PRO\\PDF\\ListofPages.
pdf");
view.setDocumentInputStream(input);
System.out.println(view.getPageCount());
System.out.println(view.getProperty("Default_Zoom_Type"));
}
}

with regards,
J.Imran Baseer.

.



Relevant Pages

  • PDF Processing
    ... I am in PDF Processing...When i tried to execute the following code,it ... thows NULLPOINTER exception...The exception occured at this line System.out. ... with regards, ...
    (comp.lang.java.softwaretools)
  • PDF Processing
    ... I am PDF Processing...When i tried to execute the following code,it ... thows NULLPOINTER exception...The exception occured at this line System.out. ... public class PdfCheck1{ ...
    (comp.lang.java.gui)
  • Re: In PDF Processing...
    ... I am PDF Processing...When i tried to execute the following code,it ... thows NULLPOINTER exception...The exception occured at this line System.out. ... public class PdfCheck1{ ...
    (comp.lang.java.programmer)
  • Re: Thread termination
    ... > I would like to execute some code when a thread terminates, ... public class ThreadStarterWithFinish ... static void Normal() ...
    (microsoft.public.dotnet.general)
  • Executing 2 Threads
    ... I’m having a bit of difficulty with a threading scenario. ... Basically I’m creating 2 threads and trying to execute them one after the ... At the top level I have s series of windows services running ... public class Helper1:Helper ...
    (microsoft.public.dotnet.framework)