Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to save a generated PDF file as a new version of an existing document

Last updated on 23 February 2025

Admin
PDF Conversion

Overview

Sometimes there might be a situation where it would be good to create new PDF copies from an existing document but also keep track of the document's version history. This article explains how you can save a new PDF file as a new version of an existing PDF document in a way that the old PDFs will stay visible in the version history.

Solution

To save a generated PDF file as a new version of an existing document:

1) You need to have 2 PDF files: B and C. Both are, for example, copies of the Word document A but C has the latest corrections.

2) Open PDF file C in your PDF viewer and select "Save as".

3) In the "Save as" window, navigate to the M-Files vault and find document B.

4) Right click document B and select "Check out".

5) Double click document B (that is checked out) and select "Yes" when the system verifies if you want to replace the existing file.

6) Check in document B in M-Files.

Now you should have a PDF document in M-Files, whose latest version is file C while the older versions are still file B. Replacing document B with file C doesn't remove the document object C form the vault, if it exists there. However, since its contents are saved in the newest version of document B, you can delete document C from the vault if you want.

It is important to have PDF file C generated before you start replacing document B with file C since, for instance, using the "Save as PDF" option from a Word file is not able to generate the new PDF file directly into M-Files as a new version of an existing document object.

Still need help?

On this page