Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Achieving Page Rotation with Rendering Plugin #25

Open
sohaiba opened this issue Aug 7, 2015 · 0 comments
Open

Achieving Page Rotation with Rendering Plugin #25

sohaiba opened this issue Aug 7, 2015 · 0 comments

Comments

@sohaiba
Copy link

sohaiba commented Aug 7, 2015

Hello!

We are using the rendering plugin (0.4.4) with grails version 2.2.4 to generate a pdf file via the RenderingService. Our controller uses the following lines of code to generate and save the file locally on the server:

new File(completeFileName).withOutputStream { outputStream ->
            pdfRenderingService.render(controller: this, template: 'report/ReportPdfTmpl', model:[id : id], outputStream)};

We are trying to rotate the first page 90 degrees counterclockwise so that even if it is printed as portrait, it still has a default landscape orientation. This is similar to what we can achieve via the transform : rotate (-90deg) property in html markup in a browser. Is it possible to achieve this for the generated pdf? If so, please let us know how.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant