Main function saveInExportFileWithDrawings takes "in file", "out file", images in base64 and "all" flag. If all is 1, then all pages will be saved. And only pages from second parameter overvise.
saveThumbnail - save Thumbnail of first page of pdf file.