In PDF Processing...

I

imranbaseer

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.
 
C

Chris ( Val )

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"));
}

}

What are the details of the exception?

What does the documentation have to say about
the "getProperty(*)" method if it can't satisfy
the request?
 
A

Andrew Thompson

Hi members, ...

Multi-posters lose their audience very quickly.

Please refrain from multi-posting in future.

(X-post to c.l.j.p./g., w/ f-u to c.l.j.p. only)
 
I

imranbaseer

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"));
}

What are the details of the exception?

What does the documentation have to say about
the "getProperty(*)" method if it can't satisfy
the request?

10
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at
com.adobe.acrobat.gui.ReaderPrefs.getClientProperties(ReaderPrefs.java:
1063)
at com.adobe.acrobat.Viewer.getProperties(Viewer.java:1191)
at com.adobe.acrobat.Viewer.getProperty(Viewer.java:1186)
at PdfPack.PdfCheck1.main(PdfCheck1.java:110)
Exception in thread "main"
 
C

Chris ( Val )

Hi members,
I amPDFProcessing...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"));
}
}
What are the details of the exception?
What does the documentation have to say about
the "getProperty(*)" method if it can't satisfy
the request?
- Show quoted text -

10
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at

[snip]

Not sure if you've solved your problem yet, but it
looks like the problem is in your Hashtable.

Fixing that first, might eliminate the other errors.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top