Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

In PDF Processing...

Thread view: 
imranbaseer - 15 Nov 2007 13:09 GMT
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.
Chris ( Val ) - 15 Nov 2007 13:20 GMT
> Hi members,
>       I am PDF Processing...When i tried to execute the following code ,it
[quoted text clipped - 17 lines]
>
> }

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?

--
Chris
imranbaseer@gmail.com - 16 Nov 2007 11:00 GMT
> > Hi members,
> >       I am PDF Processing...When i tried to execute the following code ,it
[quoted text clipped - 28 lines]
>
> - Show quoted text -

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"
Chris ( Val ) - 21 Nov 2007 13:41 GMT
On Nov 16, 10:00 pm, imranbas...@gmail.com wrote:

> > > Hi members,
> > >       I amPDFProcessing...When i tried to execute the following code ,it
[quoted text clipped - 33 lines]
>         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.

--
Chris
Andrew Thompson - 15 Nov 2007 14:34 GMT
> 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)

--
Andrew T.
PhySci.org


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.