-
1. Re: getting pdf bytes?
norman.richards Sep 12, 2007 5:12 PM (in response to dustismo)Look up the documentStore component in the same conversation and pull out the document by id.
-
2. Re: getting pdf bytes?
dustismo Sep 12, 2007 6:56 PM (in response to dustismo)Thanks for the response. I don't think that will work for me though.
What I want is a way to use the pojoCache to store the pdf, so I can have a servlet that the user requests a pdf from and after checking that the user has access to the pdf then it serves it from the cache or -- renders it, caches it, sends it
the problem with access the DocumentStore from the conversation is that the user has to have already triggered the render from their browser.. I'd like to be able to trigger the rendering from within my servlet..
Any further advice would be helpful..
thanks,
Dustin -
3. Re: getting pdf bytes?
pmuir Sep 13, 2007 5:27 AM (in response to dustismo)I would suggest the alternative approach of extending DocumentStore to do the caching for you.
You should be able render the document without the user hitting the page using Renderer (as you do for mail).
Post any problems you get with this approach and we can look at getting patches into Seam to fix (I've never tested Renderer for PDFs).