Experimental feature
The following procedure is an experimental feature, pending further integration into ARGO editor.
This tutorial will teach you how to:
- Customize main colors of the online PDF reader
- Customize the reader favicon in your web browser
- Add a custom loading screen with your colors
Nota Bene :
You can customize your reader with the webview assets within ARGO editor, available with the "Advanced" plan (Contact an account manager to learn more about Advanced plan).
These so-called "control" assets are interpreted when the Smartlink opens in a browser and are not present in the final display. They simply send instructions to the PDF reader when it opens in order to customize its interface, as shown in the examples below.
You need to set up 2 Webview assets to customize the reader.
They have the following names:
- loadingAnimation : allows you to set the loading screen of your smartlink when it opens in a browser. The loading screen is displayed until document is loaded.
- Chrome : allows you to customize the colors of the reader and the favicon once your smartlink is opened in a browser
Webview asset: loadingAnimation |
1 - Open ARGO editor with the Smartlink of your choice. Remain on 1st page
2 - Select the Html asset and drag it in a blind spot over your document (the asset will be invisible in the final display)
3 - fill the title of the Html asset with name loadingAnimation
Warning: Do not modify the title of this asset in your editor, otherwise it will not be executed. You must leave the title as is, with the same case.
4 - Remove the default cover icon from the Html asset so that it is not visible in the final display
Click on the "cross" icon next to "Add" in the Cover Icon field.
The default image is then replaced by a transparent layer: your asset is no longer visible when you visualize your smartlink in a browser.
5- Open the Html asset editing window by clicking on the "Edit HTML" field
You will now be able to customize the optimized template for our document presentation.
Copy / paste the code below (replace red fields with your own content)
N.B : click on the red links to get information (size, format...)
<div id="loaderZ" style="background-color: #dedede"> html[dir=ltr] body .loaderLogoZ { html[dir=ltr] body #loadingContentZ { @keyframes spin { |
Save your Smartlink edition and open it in your browser. If you have correctly set up the code above, you have customized the loading screen of your document: congratulations!
Webview asset: chrome |
1 - Select a new Html asset and drag it in editor next to your document, still on page 1 (the asset will also be invisible in the final display)
2 - Fill the title of the Html asset with name chrome
Warning: Don't modify the title of this asset in editor, otherwise it won't be executed. You must leave the title as is, with the same case.
3 - Remove the default cover icon from the Html asset so that it is not visible in the reader.
Click on the "cross" icon next to "Add" in the Cover Icon field.
The default image is then replaced by a transparent layer: your asset is no longer visible.
4 - Open the editing window of the Html asset
Copy / paste the code below in your Html asset and customize your template as you just did for the loadingAnimation asset (replace the red fields by your own content).
N.B : click on the red links to get information (size, format...)
<script id='controller.style'> /* also: PDFZ.api.setFavicon({ var primaryColor = "#000B37"; PDFZ.api.setColors({ </script> |
Once these two assets have been added and set up on your document first page, save your Smartlink edition.
Go back to the ARGOflow manager and open your Smartlink in browser.
If you have successfully set up the fields of these two Html templates, you should see a custom loading screen when you open the Smartlink and visualize your colors in the PDF reader.
CONGRATULATIONS, you have customized your own PDF reader!
You can now copy/paste these two assets on the first page of all your smartlinks to apply this template to all your documents.
You can also customize these templates differently on each of your smartlinks according to your needs.
Enjoy ARGOflow solution
Comments
Please sign in to leave a comment.