AI OnAI Off
Thanks Paul for your input!
We fixed this by having a separate CMS page with required layout for the PDF.
We had used NRECO PDF Generator library for our purpose, which turns view into a PDF.
Given browsers have the ability to print to PDF, you could just create a print stylesheet instead.
I have this WishlistPageController and It has its own Default View.
I have created another view for Wishlist to be rendered/printed as a PDF. For this I have created an action method(WishlistprintPDF) inside WishlistPageController.
Now I need to call this WishlistprintPDF Action method from by DefaultView.
I have tried used Ajax call -> It returns a bytestream, which i currently don't prefer
What I need is a straight forward url base route to the WishlistprintPDF Action method from my defaultView.
Any help is much appreciated!