Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > RocketCake
Display of PDFs
Author Text

david
Registered User
Quote
2022-10-09 12:20:04

I am an engineer about to retire. I am considered a 'Subject-Matter Expert' by my many clients. I feel obliged to pass on my expertise to the next generation, and have decided to build a website.

I have a lot of PDF files, which I have started to incorporate using the 'PDF Document' control. When I preview or local publish these, and view the result on the machine I created the website on, the result is perfect. On any other machine, I get a variety of terrible results. Edge shows HTML code. Firefox which works perfectly on the source machine, wants to open each PDF file individually even though the Firefox versions and add-ons are cloned.

I am using the free version of RocketCake. Happy to upgrade if necessary. Happy to accept suggestions of alternative strategies. Very reluctant to learn HTML!


micaelo
Registered User
Quote
2022-10-09 12:54:50

I'm only a 2-months-newbie with RocketCake and haven't tried the PDF insert yet. But I guess you can avoid this sort of trouble by just listing the PDFs as text links, maybe along with a short description or extract on what the PDF is about, and maybe along with a small PDF icon so viewers can easily recognise there is a linked file.

This way you would not have to worry about RocketCake's PDF insert code and about how the viewers' browsers might handle the code. It's then up to the viewers how they deal with linked PDFs i.e. download or read in the browser.

Also, I think this way you are much faster with creating your website, particularly as you say you have lots of PDF files.


david
Registered User
Quote
2022-10-09 14:25:56

'text link'... Yes, but to where?

At the moment, on the one machine that behaves as I expect, each PDF insert shows a scrolling window of the PDF and allows a download. This is exactly what I want, AND is very fast to implement.


david
Registered User
Quote
2022-10-09 17:07:33

I think I get it. If I publish to local disk, and the shared disk I publish to is not on the same machine as the PDFs, it does not access them.

I need to publish to the internet to test it properly.

Sigh.


micaelo
Registered User
Quote
2022-10-09 17:08:50

david wrote:
'text link'... Yes, but to where?

You would need to upload the pdf files to the server separately. If you upload the PDFs to the same directory as the html file with the text links just enter filename.pdf
🔎︎

If you upload the PDFs to a subfolder you will have to enter
subfolder/filename.pdf

As for the "terrible" results on other machines: That's out of your control and depends on how viewers configure their browsers. For example, I can set my Firefox to display a PDF in a scroll box, or I can set it to display the PDF in a browser tab, or I can set it to open the PDF in my default PDF viewer. (And forget about Edge. It will be gone shortly, anyway.)


micaelo
Registered User
Quote
2022-10-09 17:19:10

david wrote:
"I think I get it. If I publish to local disk, and the shared disk I publish to is not on the same machine as the PDFs, it does not access them."

Once you have published to local disk copies of your PDFs should sit in the rc_images folder. If you want to check how the website looks on other machines you must take the entire RocketCake output there, i.e. the rc_images folder, the html file(s) and (unless disabled) the css file(s).


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact