S7-300 STEP 7 Program to PDF: Export and Document Guide
Documentation of SIMATIC S7-300 PLC programs is a recurring task for control engineers, commissioning teams, and maintenance crews. Whether the deliverable is an archive copy for a customer, a printed handover book for a maintenance technician without a STEP 7 license, or supporting material for an S7-300 to S7-1500 migration, exporting a STEP 7 project (or selected blocks) to PDF is the most portable and license-free distribution method available.
This guide covers the supported workflow inside STEP 7 V5.x and the auxiliary tooling required to produce clean, paginated PDF deliverables. It also covers the alternative ZIP archive path, block-level printouts, and migration documentation specifics.
1. Why Export S7-300 Programs to PDF
The STEP 7 programming environment used for the S7-300 family (typically STEP 7 V5.5 / V5.6, or older V5.4 SPx) is a licensed product. A recipient of a project does not need STEP 7 to read a PDF; they only need a free PDF viewer. The PDF export therefore decouples the documentation deliverable from the licensing state of the receiver's PC, from the operating system version, and from the STEP 7 Service Pack level.
Typical use cases that justify a PDF export are:
- Handover documentation shipped with a new machine where the end customer does not own a STEP 7 license.
- Acceptance test records that must include ladder (LAD), function block diagram (FBD), or statement list (STL) listings as evidence.
- Migration analyses where the legacy S7-300 source is published as a reference for the S7-1500 port, in line with the Siemens migration guide workflow.
- Field service where the engineer needs offline reference material on a tablet without STEP 7 installed.
- Audit and regulatory archives where a fixed-format, non-editable copy of the control logic must be retained.
2. Prerequisites
Before starting, verify the following items are available on the engineering workstation:
- STEP 7 V5.5 or V5.6 installed with the S7-300 PLC support package. The program can also be opened with the legacy S7-PLCSIM or with the optional S7-Graph, S7-SCL, S7-HiGraph, or S7-PDIAG add-ons, depending on the source project.
- The S7-300 program (offline copy in a
.s7pproject, an archived.zip, or a decompiled.awl/ source file tree). - A virtual PDF printer driver installed (see Section 4).
- Sufficient disk space. A medium-sized S7-300 program (200 blocks, 50 KByte of STL source) typically produces a 4 to 8 MByte PDF, depending on the selected symbol table and cross-reference options.
- For newer TIA Portal environments, see Section 9; the workflow is similar but the menu paths differ.
RUN; printing online updates the block consistency checks and may block compilation if the S7-300 is mid-scan.3. STEP 7 Print Configuration
STEP 7 V5.x routes every printable view (block, symbol table, reference data) through the standard Windows print spooler. The first time the user prints a block, STEP 7 prompts for the Page Setup dialog. The following parameters are recommended for clean PDF output.
3.1 Page Setup Parameters
| Parameter | Recommended value | Notes |
|---|---|---|
| Page format | A4 or Letter | Match the regional standard of the recipient. |
| Orientation | Landscape for FBD/LAD, Portrait for STL/SCL listings | STL columns fit Portrait at 9-10 pt; FBD/LAD networks fit Landscape at 8 pt. |
| Margins | 15 mm top/bottom, 12 mm left/right | Reduces line-wrap on FBD segments with 6+ inputs. |
| Header / Footer | Project name, block number, author, date | Add via File > Page Setup > Header/Footer in SIMATIC Manager. |
| Font | Courier New 9 pt (STL) / Arial 8 pt (FBD/LAD) | Monospaced font is required for STL column alignment. |
| Symbols in printout | Enable for handover docs, disable for source-control archives | Symbol-resolved printouts show the symbolic name on every operand. |
3.2 Block Folder Print Options
In SIMATIC Manager, right-click the S7 Program > Blocks folder and select Print > Print Object. The dialog exposes a tree of selectable items:
- Block list – generates a one-line-per-block index (FB, FC, DB, OB, SFB, SFC, VAT, UDT).
- Block contents – prints each selected block in full (ladder networks, STL instructions, or SCL source).
- Symbol table – prints the global symbol table sorted by symbol or by address.
- Cross references – prints the reference data: where-used, operand overlap, and program structure.
- System data – hardware configuration, including the S7-300 rack layout and module parameterization.
4. PDF Printer Software Options
A virtual PDF printer is a Windows print driver that writes the rendered output to a .pdf file instead of paper. The following table compares the most common free and commercial options in the context of S7-300 documentation.
| Software | License | PDF/A support | Output quality | Notes |
|---|---|---|---|---|
| PDFCreator (pdfforge) | Free (GPL) / commercial Plus | Yes (Plus edition) | Vector text, searchable | Open-source, recommended for engineering workstations; supports COM automation for batch printing. |
| CutePDF Writer | Free (ad-supported) | No (basic edition) | Vector text, searchable | Lightweight, installs quickly; popular default for STEP 7 print sessions. |
| Foxit PDF Printer | Bundled with Foxit Reader | Limited | Vector text, searchable | Often pre-installed on Siemens engineering PCs shipped with the S7-300 starter kits. |
| Microsoft Print to PDF | Built into Windows 10/11 | No (rasterizes some content) | Mixed – vector when possible | No third-party install required. Suitable for one-off exports; quality can drop on complex FBD with overlapping nets. |
| Adobe PDF Printer (Acrobat Pro) | Commercial | Yes (PDF/A-1, PDF/A-2) | Highest, vector + accessibility | Required when delivering PDF/A-compliant archive copies to regulated industries. |
| PDF24 | Free | Yes | Vector text | Includes a small OCR stage; useful when the S7-300 source is supplied as scanned printout pages. |
For a single engineering workstation, the CutePDF Writer / Foxit PDF Printer combination is the most common deployment. For enterprise documentation, PDFCreator's COM interface allows batch conversion of an entire S7 project in a single script run.
4.1 Recommended Installation Order
- Install the chosen PDF printer driver before opening STEP 7 for the first time so that the virtual device appears in the Windows print queue immediately.
- Reboot after the install, even if the installer does not request it; this avoids the "driver not detected" error inside STEP 7's print dialog on first use.
- Open a sample PDF from any application to confirm the driver writes the file to the configured
Documentsfolder. - Set the default output folder to a dedicated path such as
C:\Project_PDF\<ProjectName>\to keep deliverables organized.
5. Step-by-Step Export Procedure
The following procedure produces a complete, paginated PDF deliverable for an S7-300 program. Adapt the section selections to the project size.
5.1 Open the Project
- Launch SIMATIC Manager.
- Open the project via File > Open > User Project and navigate to the
.s7pfile (or unzip a.ziparchive first; see Section 7). - Expand the S7-300 station tree to verify the offline blocks are present and that the project is in a consistent state (no yellow "offline/online mismatch" triangles).
5.2 Configure Page Setup
- Select File > Page Setup from the menu bar.
- Set margins, orientation, and font per Section 3.1.
- Add a header line containing the project name, CPU article number (for example
6ES7315-2EH14-0AB0), and revision counter. - Click OK to commit the layout for the current print session.
5.3 Select Blocks for Print
- Right-click the Blocks folder and choose Print > Print Object.
- In the dialog, enable the checkboxes for: Block list, Block contents, Symbol table, Cross references, and (if needed) System data.
- For block contents, mark only the OBs, FBs, FCs, and DBs that are part of the deliverable; skip the system blocks (SFBs/SFCs) to keep the PDF lean.
- Click OK. The standard Windows print dialog opens.
5.4 Print to PDF
- From the printer dropdown, select the virtual PDF driver (for example "CutePDF Writer" or "PDFCreator").
- Click Properties if a higher resolution is needed; set 600 dpi for FBD segments with small contact labels, 300 dpi for plain STL listings.
- Click Print. The virtual driver prompts for the output path and filename. Save as
<ProjectName>_S7-300_<Revision>.pdf. - Open the resulting PDF and verify the pagination, especially that no block is split across two pages in a way that hides a network boundary.
5.5 Repeat for Source Files (SCL / S7-Graph)
For projects containing SCL or S7-Graph sources, export the source files as well, because the generated PDF from compiled blocks does not show SCL comments. Right-click the Sources folder, choose Generate Source as STL/SCL if a compiled view is missing, then open the source in the SCL or STL editor and print it to PDF.
6. Block-Level Documentation
When the full project PDF is too large (exceeding 100 MByte) for a single email attachment, export the program block-by-block and concatenate the files with a free PDF tool such as PDFCreator or Foxit PDF Editor. The recommended block-by-block sequence is:
- OB1 (and other OBs) – main cyclic logic, error OBs (OB82, OB86, OB100, OB121, OB122).
- FBs in numerical order, with each FB followed by its instance DB.
- FCs in numerical order.
- Shared DBs in numerical order, with the structure (UDT definition printed first if used).
- Symbol table – single PDF, sorted by address.
- Cross references – produced via Options > Reference Data > Display, then File > Print.
Concatenate the files in this order to produce a single deliverable that follows the natural reading order of the S7-300 program: cyclic tasks, reusable functions, shared data, and finally the naming and reachability maps.
7. Alternative Export: ZIP Archive
When the recipient owns STEP 7, the most lossless handover is the project archive rather than a PDF. STEP 7 V5.x includes File > Archive / File > Retrieve which produces a .zip file containing the .s7p project. To produce a ZIP manually for the same purpose:
- Close the project in SIMATIC Manager.
- Navigate to the project folder in Windows Explorer.
- Select the project root folder (the one containing the
.s7pfile). - Right-click > Send to > Compressed (zipped) folder.
- Name the archive
<ProjectName>_<CPU>_<FW>_<Date>.zip, for examplePumpStation_CPU315-2PNDP_FW3.3.7_2024-09-12.zip.
The ZIP archive preserves the offline project exactly, including SCL sources, HW Config, NetPro, and the symbol table. It is the recommended primary deliverable, with the PDF as a secondary human-readable reference.
8. S7-300 to S7-1500 Migration Documentation
For engineers executing the Siemens-supported migration path from S7-300 to S7-1500, the PDF export plays a specific role: the legacy program is the reference implementation against which the TIA Portal port is validated. The Guide for Migrating SIMATIC S7-300/S7-400 to SIMATIC S7-1500 recommends archiving the original S7-300 source in a non-proprietary form so that the S7-1500 program can be regression-tested against the original logic.
Recommended export for a migration project:
- Export the S7-300 program to PDF per Sections 5-6.
- Export the S7-300 program to ZIP per Section 7.
- Generate a TIA Portal V17 (or later) port of the program. Export the TIA Portal project to PDF via the TIA Portal Project tree > Documentation or the Print project function.
- Bind the two PDFs in the same folder with a versioned name:
PumpStation_S7-300_revA.pdfandPumpStation_S7-1500_revA.pdf. Cross-reference the block list of both documents for review.
9. TIA Portal Variation (S7-300 in TIA)
STEP 7 V5.x and TIA Portal are separate development environments. The S7-300 can be programmed in either, but TIA Portal only supports a subset of S7-300 CPUs (those listed in the TIA Portal hardware catalog under "SIMATIC S7-300"). When the source project is already a TIA Portal project, the PDF workflow differs slightly:
- Open the project in TIA Portal.
- Select Project tree > PLC_1 > Program blocks.
- Right-click the Program blocks folder and choose Print or use the Documentation editor (Project tree > Documentation).
- The TIA Portal print engine can produce PDF directly via the Microsoft Print to PDF driver or any installed virtual printer.
- Use Project > Archive to produce the TIA-equivalent of the S7-300 ZIP archive.
For projects originally created in STEP 7 V5.x and migrated to TIA Portal via the migration tool, the original STEP 7 V5.x PDF remains the authoritative reference; the TIA Portal PDF is a derived artifact.
10. Troubleshooting Matrix
| Symptom | Likely cause | Fix |
|---|---|---|
| Virtual PDF printer not visible in STEP 7 print dialog | Printer driver installed after STEP 7 first start | Close and reopen SIMATIC Manager; re-register the driver via printui /s. |
| PDF produced is 0 bytes or empty | Driver lost the output path on a UAC-protected folder | Redirect output to Documents or C:\Temp; disable UAC prompt for the spooler service. |
| LAD networks cut off at right margin | Portrait orientation selected for FBD/LAD | Switch to Landscape; reduce font to 7-8 pt. |
| STL columns misaligned in PDF | Variable-width font selected | Force Courier New 9 pt in Page Setup > Font. |
| Block contents missing operand comments | Comments not enabled in print options | Enable Print block comments in Options > Customize > Print. |
| PDF too large (> 50 MByte) for email | Cross-reference tables and symbol table printed at high zoom | Split the deliverable per Section 6; or compress the PDF with Ghostscript -dPDFSETTINGS=/ebook. |
| Symbol names missing in printout | Symbolic representation disabled | Enable LAD/FBD/STL > Display > With symbols before printing. |
| System data (HW Config) prints without module descriptions | MLFB (article number) lookup table missing | Install the latest STEP 7 hardware support package (HSP) for the S7-300 modules used. |
| Output file locked by another process | Adobe Reader has the previous PDF open | Close the PDF reader before regenerating the file with the same name. |
| Error 0x80070005 access denied when saving PDF | Output folder under read-only network share | Map a writable local folder; copy the PDF to the network share afterwards. |
11. Verification
After the PDF is produced, perform the following verification before distributing the file:
- Open the PDF in a viewer that is independent of the generation tool (for example, SumatraPDF or Adobe Reader). Confirm the page count matches the expected number of blocks plus symbol table plus cross references.
-
Spot-check three blocks: the first OB1 page, the middle FB, and the last DB. Verify that the operand addresses (for example
I 0.0,DB10.DBD4) are visible, that the comments are present, and that the network delimiters are clean. -
Search test: use the PDF viewer's search function to look for a known symbol (for example
MOTOR_RUN). The search must return the expected number of hits and the hits must be on the correct page. - Cross-reference integrity: compare a printed cross reference against the offline cross-reference view in STEP 7 (menu Options > Reference Data > Display). The hit counts must match.
- Hash the file with SHA-256 and record the hash in the project release notes so the recipient can verify that the PDF has not been altered in transit.
-
Open the ZIP archive on a second PC to confirm that the
.s7popens cleanly in STEP 7 V5.5 or later. This is the strongest integrity test for the working copy.
12. Field-Proven Tips
- Stamp the watermark: Use the PDF printer's stamp / overlay feature to add a watermark such as "AS BUILT - Rev B" on every page. This is faster than opening each PDF in an editor afterwards.
- Use a master template: Save a STEP 7 .s7p template with a pre-configured Page Setup and a populated header/footer. Every new project that descends from this template will inherit the print configuration.
-
Batch print across stations: When the project contains multiple S7-300 stations (line + line + line), set up a SIMATIC Manager multi-project (
.s7f) and run the print across all stations in one pass. - Include the changelog: Append a one-page revision history (project > right-click > Object properties > History) at the end of the PDF so the recipient sees which firmware and which STEP 7 SP the export was taken from.
-
Sanitize customer data: Before sending a PDF outside the company, mask any IP addresses in NetPro, any serial numbers in the hardware configuration, and any usernames in the PLC's password list (S7-300 CPUs from
6ES731x-xxx10-0AB0onwards support password protection). -
Keep the source offline: The PDF is a snapshot. Store the original offline project (and the
.ziparchive) in a versioned source-control system or in a Siemens PLM / Teamcenter vault. The PDF is a derivative artifact and should never replace the source.
What is the fastest way to convert an S7-300 STEP 7 program to PDF?
Install a free virtual PDF printer such as CutePDF Writer or PDFCreator, open the project in SIMATIC Manager, right-click the Blocks folder, choose Print > Print Object, select block contents + symbol table + cross references, and pick the virtual PDF driver as the target printer.
Can I email an S7-300 program as a PDF to a customer who has no STEP 7 license?
Yes. The PDF is a static, non-editable view of the block contents, symbol table, and cross references. The customer can open it in any PDF reader. For full project reconstruction, also send a .zip archive so the customer can re-open the project in STEP 7 if they later obtain a license.
Does the PDF export work for SCL and S7-Graph source files?
Yes. Open the source files from the Sources folder in the SCL or S7-Graph editor and print them to the same virtual PDF driver. The compiled blocks in the Blocks folder can be printed separately, but only the SCL source contains the SCL-style comments and the natural-language algorithm description.
How do I keep the S7-300 PDF under 10 MByte for email?
Disable cross-reference output, split the project into per-block PDFs (one FB per file), and skip the system data (HW Config). Alternatively, compress the final PDF with Ghostscript using gswin64c -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=out.pdf in.pdf to reduce the file size by 40-60%.
What is the difference between the PDF export and the STEP 7 Archive function?
The PDF export is a non-editable, human-readable snapshot suitable for documentation and review. The STEP 7 Archive (File > Archive) produces a .zip of the project that can be re-opened in SIMATIC Manager, edited, recompiled, and downloaded to the S7-300 CPU. For a complete handover, deliver both: the PDF for reading, the ZIP for working with the program.