Promotic
WikipediaLinkedInYoutubeTwitterFacebook

PDF

PDF (abbreviation for Portable Document Format) is a file format developed by the Adobe company. It can be used for storage of documents independently on software and hardware where the document originated. The PDF file type may contain both text and images while the format secures identical viewing of such document on any device. The PDF documents can be cretaed in commercial software Acrobat by Adobe, but also in other programs (often only as export to PDF).

There are many free PDF viewers available for various platforms, but the best known is the viewer Adobe Reader. Some active type content (for example interactive forms, 3D graphics, video, audio, etc.) may not be supperted by many PDF viewers. The PDF format files have the .pdf suffix. PDF is an open standard that is easily portable (viewing is independent on used software and hardware) and therefore very popular.

 

1. View file

Examples of opening Document.pdf file
The example of PmWebDir object viewer opening:
Opens Web browser and displays the Document.pdf file, that is offered by the PmWebDir object.
JavaScriptVBScriptSelect and copy to clipboard

pMe.PmPanel.OpenView("/Web/WebDir", "target:_blank;", "file:Document.pdf");
Example of file opening by the ShellExecute method for reading:
VBScriptSelect and copy to clipboard

Pm.ShellExecute "open", "#data:Document.pdf", "", "#data:", 1

2. Print into file

In the PROMOTIC application it is possible to print by sending the data to a virtual printer (OS Windows 10 contains "Microsoft Print to PDF") that does not print on a paper but into a digital file. In OS Windows 8, 7 and older systems it is necessary to install another third party software.
Printing panel with printer selection:
JavaScriptVBScriptSelect and copy to clipboard

pMe.Root.Print("");

3. Save as PDF file

wkhtmltopdf is open source (LGPLv3) command line tool for rendering HTML pages into PDF using the Qt WebKit rendering engine. This run entirely "headless" (no GUI). This software tool can be used for saving the content of PROMOTIC SCADA application HTML pages into PDF.
 
Note: This software tool so far cannot save the content of trend viewer (curves).
Saving graphic panel with open source (LGPLv3) tool wkhtmltopdf as PDF:
Web page:
 
https://wkhtmltopdf.org/
 
All files for download:
 
https://wkhtmltopdf.org/downloads.html
 
Command line command example:
C:\Program Files\wkhtmltopdf\bin>wkhtmltopdf.exe --debug-javascript --javascript -delay 5000 --orientation Landscape http://localhost d:\pmc.pdfe.pdf
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice