You can select PDF documents in RocketCake which then get shown directly in the browser on the generated website. For that, use the PDF Document element and select a file from your disk.

The file will automatically be uploaded by RocketCake as well when you use the "Publish to the Internet" feature, so you don't need to keep track of all the files.
Note: Safari on iOS will only show the first page of the pdf document directly in the page, and it cannot be scrolled. This is a limitation of this browser of iOS. If you want to also have an embedded, scrollable PDF on that operating system, you can do this by embedding a PDF viewer script, in your page, which does the work for you. You can for example use Google's PDF Viewer for this. For this, simply create a JavaScript Code element on the page where your PDF Document element is, and paste this code in there:
var isIOS = /iPad|iPhone|iPod/.test(navigator.platform);
if (isIOS)
{
var ifd = document.getElementsByTagName("IFRAME")[0];
if (ifd)
{
var currentURL = ifd.src;
var newURL = 'https://drive.google.com/viewerng/viewer?embedded=true&url='+currentURL+'';
ifd.src = newURL;
alert(ifd.src);
}
}
This will then replace your embedded PDF document with the Goodle PDF viewer, if your page is opened on an iOS device like iPad or iPhone.
Copyright © by Ambiera e.U.