To open a record in a given layout in the print layout editor
This function will open a specific print layout of a given record.
Result: Will open the print layout called Invoice of the current record.
printAndSaveRecord, which saves a given record in a given layout as PDF in the internal file system and returns the path as a link.
printRecord, which prints to a PDF from a given record in a given layout and opens the file with a program set as default.