Hello,
We are evaluating Prince to attempt to take a couple pages within our Angular app and generate print friendly PDF pages (headers, footers, page nums, etc.).
We can point prince to the URL of one of the pages, and it generates a PDF but the file is blank with the Prince trial logo.
We went and made a simple Angular 1.x app to simplify our test. The page has some static text in the body and some dynamic content. When we use the URL, it looks like Prince does not wait long enough for our dynamic content to load.
Are we doing something wrong? Is it possible for Prince to know when the client side logic has finished on the page? Our pages do not get modified after initial load, but we rely heavily on Angular to format those pages.
We are aware of the workaround using PhantomJS or Selenium to load the page, save it, then pass the local file to Prince but ideally we would like to avoid this solution in the Pipeline we are developing.
You can see our simple page at:
http://prince.celestialwake.com
I've also attached a zip to this post with the assets for the site.
Any help here would be greatly appreciated.
Thanks,
Jeff
We are evaluating Prince to attempt to take a couple pages within our Angular app and generate print friendly PDF pages (headers, footers, page nums, etc.).
We can point prince to the URL of one of the pages, and it generates a PDF but the file is blank with the Prince trial logo.
We went and made a simple Angular 1.x app to simplify our test. The page has some static text in the body and some dynamic content. When we use the URL, it looks like Prince does not wait long enough for our dynamic content to load.
Are we doing something wrong? Is it possible for Prince to know when the client side logic has finished on the page? Our pages do not get modified after initial load, but we rely heavily on Angular to format those pages.
We are aware of the workaround using PhantomJS or Selenium to load the page, save it, then pass the local file to Prince but ideally we would like to avoid this solution in the Pipeline we are developing.
You can see our simple page at:
http://prince.celestialwake.com
I've also attached a zip to this post with the assets for the site.
Any help here would be greatly appreciated.
Thanks,
Jeff