File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes  driver.getRenderer().setOptions(rendererOptions) giving error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark " driver.getRenderer().setOptions(rendererOptions) giving error" Watch " driver.getRenderer().setOptions(rendererOptions) giving error" New topic
Author

driver.getRenderer().setOptions(rendererOptions) giving error

sreenu valireddi
Greenhorn

Joined: Apr 23, 2014
Posts: 18
Hi All,

I am using FOP-1.0.jar and i am getting error , method setOptions(Map<String ,String>) is undefined for type Renderer . How can i resolve it.


java.util.Map rendererOptions = new java.util.HashMap();
rendererOptions.put("ownerPassword", "mypassword");
rendererOptions.put("allowCopyContent", "TRUE");
rendererOptions.put("allowEditContent", "FALSE");
rendererOptions.put("allowPrint", "TRUE");
driver.getRenderer().setOptions(rendererOptions);

Thanks in Advance
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4490
    
    8

What is the return type for the getRenderer() method? Does that type have a setOptions() method, and what type of argument does that take? That will probably explain why you're getting this error.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: driver.getRenderer().setOptions(rendererOptions) giving error