Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sreenu valireddi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4565
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic