Convert AEM page to PDF - pdf-generation

I want to convert AEM html page to Pdf (using AEM 6.5) and a link will be provided to users for to download that PDF.
The AEM page is a Product Description Page with mutiple tabs and also contains images and tables.
Hence, can you please suggest the best way I can achieve this (preferably open source) and also have control on the styling on the content in the generated PDF?

Related

I'm generating a pdf with laravel-dompdf and I am using server path to show images in the pdf. Is it secure?

I am using laravel-dompdf to generate a pdf but to show images in that pdf I tried the route and controller approach but it's working for webpage but not for pdf. That's I am using the server path (/home/shashank/work/jobs/storage/app/{{$photo}}).
I want to know if it's safe or not.

Magnific Popup: Is Ajax content indexed by Google? (SEO)

I'm planning to modernize the photo gallery on my website. Currently I use the Colorbox plugin to open the large image and legend in a lightbox after clicking on a thumbnail. Google indexes the pictures and legends yet optimal.
My new photo gallery should be responsive and I want to show not only the photo and legend inside of the lightbox, but also further information like date, location, camera, tags, etc. That's why I will use the Ajax option rather than the standard gallery option of the lightbox plugin.
The thumbnails are compiled dynamically based on filtering and sorting settings and the information about the photos is stored in a database. So I will use a PHP script to get the necessary information and to set up the HTML code for the Ajax call dynamically. That should be no problem.
My question is: Will the contents that is loaded via Ajax in the Magnific Popup be indexed by Google?
Unfortunately I do not think so, because if I make a Google search for a part of the text which is displayed in the Ajax Lightbox on http://dimsemenov.com/plugins/magnific-popup/, this page does not appear in the Google results...
Is there a solution? Or can you recommend another responsive Lightbox wherein the Ajax content will be indexed?
Thank you for any suggestion!
Michelle

Generate PDF from view using iTextSharp

My requirement is to have a button in my view and clicking on that should generate a PDF report from that view. (Should avoid making another trip to database to get data for the PDF report).
I decided to use iTextSharp. Could some body please post some examples or direct me to a proper article?
I answered something similar on this link.
You will need to sort out the caching of the data from the DB though, this version just queried it again.
How to make a pdf report of a particular view in mvc3

Image Hosting Website Script Deactivates FancyBox Capability

I'm running a Vanilla Forum with a FileUpload plugin, allowing users to upload images and insert the corresponding code directly into the body of their post. These images work with FancyBox when clicked, linking together nicely within the page. However, should a user use a third-party image hosting site (i.e. Imagevenue, Imageshack, Postimage.org) and copy and paste the resulting image code, it deactivates the FancyBox feature associated with all images previously on the page, so when you click on an image uploaded via FileUpload it opens in a new window now instead of in a FancyBox.
My question is one of two things:
a) Is it possible to fix this formatting issue so that if a user does choose to use a third-party image hosting service then it will not affect the fancybox of my previous images.
or
b) Is it possible to block this type of image code from being inputted in the body of a post to prevent this from ever happening.
Thank you and please reply if you would like more information!
Most likely the generated code from those third-party hosting sites has not an image extension (JPG, PNG, GIF) so fancybox doesn't know what type of content needs to handle.
If you are binding fancybox like
$(".fancybox").fancybox();
... you could force the type of content to image like
$(".fancybox").fancybox({
type : "image"
});
I don't really see how pasting the code of a new image will disable the code for existing ones if you want to elaborate.

How to create multipage report using Spring?

How do I generate a multipage report in iReport where each page contains different invoice of a customer?
Also, each invoice will get its own datasource which is the detail as well as a support form of payment.
I've found how to implement a subreport here:
http://krams915.blogspot.com/2010/12/spring-3-mvc-jasper-sub-reports-using.html but I don't know how to create the multipage.
You can use page break after subreports. The contents after page break will be displayed in another page .

Resources