12. Export, Printing and Microsoft Office¶
This chapter answers frequent questions about creating PDF files, exporting pages to Microsoft PowerPoint and Word, copying pages to the clipboard, exporting data to Excel or other formats, and printing.
12.1. PDF Export¶
12.1.1. How can I create a PDF file from UniPlot?¶
There are several ways. Which one you choose depends on your UniPlot release and on whether you need PDF bookmarks.
File > Export > PDF Export… saves the selected pages of the active document as one PDF file. Since R2025.1 Ghostscript is no longer required: if Ghostscript and a PostScript printer driver are set up, UniPlot creates the PDF with Ghostscript, otherwise with Microsoft Print to PDF. With the option Use Ghost Script for PDF Export (Tools > More Options > Installation) switched on, an incomplete Ghostscript set-up first shows Incorrect PDF Settings and the PDF Configuration dialog. When you cancel the dialog, UniPlot uses the Microsoft export and offers to switch the option off. Releases before R2025.1 create the PDF through Ghostscript and a PostScript printer driver, see PDF export fails with a Ghostscript or PostScript driver error (“Invalid Post script driver”, “Incorrect PDF setting”, “/undefined in .setpdfwrite”). What do I need?.
File > Print… and select the printer Microsoft Print to PDF. This works in every release on Windows 10 and later and usually gives a good graphical quality. Select the printer, click OK and enter the file name.
File > Export > Send To PowerPoint and save the presentation as PDF in PowerPoint. Read The diagrams become much smaller or broken when I save the PowerPoint presentation as PDF. How can I avoid this? first, because the choice of the metafile format matters.
In a UniScript, call DocPrintPDF.
PDF bookmarks (the option Create bookmark with tree structure in the PDF Export dialog, built from the page names) are only created if Ghostscript is used for the PDF export. With the Microsoft export no bookmarks are generated.
See also: File=>PDF-Export, Bookmarks, File=>Print.
12.1.2. PDF export fails with a Ghostscript or PostScript driver error (“Invalid Post script driver”, “Incorrect PDF setting”, “/undefined in .setpdfwrite”). What do I need?¶
Fixed in R2025.0
The quickest fix is to update UniPlot (Help > Check for updates…). Since R2025.1 Ghostscript is no longer needed for the standard PDF export: without a complete Ghostscript set-up UniPlot uses Microsoft Print to PDF. If Use Ghost Script for PDF Export (Tools > More Options > Installation) is switched on, UniPlot first shows the message Incorrect PDF Settings and opens the PDF Configuration dialog. If you cancel it, UniPlot uses the Microsoft export and offers to save this choice, so the question is not asked again.
If you must keep an older release, or if you want to keep using Ghostscript (needed for PDF bookmarks), the PDF export requires two components:
Ghostscript from https://www.ghostscript.com/. Install the 64-bit version together with 64-bit UniPlot. Restart UniPlot after the installation. Installing software may require administrator rights or the approval of your IT department.
A PostScript printer driver installed as a Windows printer. A printer does not have to be connected. Use the generic Microsoft driver MS Publisher Imagesetter (recommended) or MS Publisher Color Printer, see How do I add the printer “MS Publisher Imagesetter” for the PDF export in Windows?. If no PostScript driver is available, UniPlot tries to install and use MS Publisher Imagesetter itself.
Then run File > Export > PDF Export…, click PDF Configuration…, select the PostScript Driver and check that the GhostScript DLL (the Ghostscript executable) was found. If the driver list looks wrong, click Search once, then Default, then OK.
Version notes for older releases:
Ghostscript 9.20 and 9.53.x are known to work with all older releases. Install the standard Ghostscript package for Windows (not Ghostpcl or Ghostxps; these are different programs and do not work).
Releases R2022.3 to R2022.6 are not compatible with Ghostscript 9.56.1 and newer (including 10.x), which are the versions offered for download today. The PDF export then fails, for example with
Error: /undefined in .setpdfwrite, although Ghostscript is installed. This is fixed in R2023.1: since then the PDF export is compatible with Ghostscript versions after 9.53.3. Update to R2023.1 or later, or install Ghostscript 9.53.3 for the old release.In release R2024.4 the PDF generation failed (error in
DocPrintPDF). It is fixed in R2025.0; reinstalling Ghostscript does not help.
If you are not allowed to install Ghostscript, cancel the PDF Configuration dialog or switch off Use Ghost Script for PDF Export. Without Ghostscript UniPlot then uses the Microsoft export (no PDF bookmarks). Alternatively use File > Print… with Microsoft Print to PDF.
See also: File=>PDF-Export, Tools=>More Options, DocPrintPDF.
12.1.3. How do I add the printer “MS Publisher Imagesetter” for the PDF export in Windows?¶
Releases that create the PDF through Ghostscript need a PostScript printer driver. If UniPlot cannot install it automatically, add it manually. The printer does not have to exist physically:
Open the Windows Control Panel and go to Devices and Printers.
Click Add a printer.
Click The printer that I want isn’t listed.
Select Add a local printer or network printer with manual settings and click Next.
Select Use an existing port (for example
LPT1:) and click Next.In the list of manufacturers select Generic, then select the printer MS Publisher Imagesetter and click Next.
Do not change the printer name and click Next.
Select Do not share this printer and click Next.
Click Finish.
Restart UniPlot. Plot your diagram and choose File > Export > PDF Export…; the PDF is now created directly.
See also: PDF export fails with a Ghostscript or PostScript driver error (“Invalid Post script driver”, “Incorrect PDF setting”, “/undefined in .setpdfwrite”). What do I need?, File=>PDF-Export.
12.1.4. How can I install the PostScript printer for the PDF export with a script (software distribution)?¶
On computers where you cannot use the Windows printer dialogs, the generic driver can be added with the Windows printing administration scripts (run as administrator). The paths below are for an English Windows; adapt the language folder if needed:
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs" -a -m "MS Publisher Color Printer" -i "%windir%\inf\ntprint.inf"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -a -p "MS Publisher Color Printer" -m "MS Publisher Color Printer" -r "lpt1:"
Afterwards select the printer in the PDF Configuration dialog of the PDF export (File > Export > PDF Export…, button PDF Configuration…): click Search, then Default, then OK. For an unattended setup the printer name can be stored in the UniPlot settings with WriteProfileString("Settings", "pdf-printer", "<printer name>").
See also: File=>PDF-Export.
12.1.5. The PDF is cut off, empty, too large or shows coloured elements in black and white. How do I fix it?¶
These problems come from the PostScript driver that is used with Ghostscript (older releases, or current releases with a complete Ghostscript set-up).
Install the Windows PostScript driver MS Publisher Imagesetter (see PDF export fails with a Ghostscript or PostScript driver error (“Invalid Post script driver”, “Incorrect PDF setting”, “/undefined in .setpdfwrite”). What do I need?) and restart UniPlot.
Select MS Publisher Imagesetter as PostScript Driver in the PDF Configuration dialog of the PDF export.
Export again.
Other drivers behave differently: freePDF cuts pages and content; MS Publisher Color Printer gives correct colours but may enlarge the page. With MS Publisher Imagesetter the colours and the page size were correct. Ghostscript 9.54 and newer may produce an empty PDF (Unrecoverable error, exit code 1) with older UniPlot releases, see PDF export fails with a Ghostscript or PostScript driver error (“Invalid Post script driver”, “Incorrect PDF setting”, “/undefined in .setpdfwrite”). What do I need?.
Keep all content inside the page boundary and, if needed, set the page margins to 0 with File > Page Margins…. If one of the two methods fails after a Windows update, try the other as described in How can I create a PDF file from UniPlot?.
See also: File=>PDF-Export.
12.1.6. PDF export with “Microsoft Print to PDF” fails with an error (for example error code 1001) although Ghostscript is installed. What can I do?¶
“Microsoft Print to PDF” normally works, but on some computers it fails at random, often after a Windows update.
Update UniPlot to the latest release.
In the PDF Configuration dialog of the PDF export click Search once, then Default, then OK.
Install the generic PostScript printer MS Publisher Imagesetter (or MS Publisher Color Printer, see How do I add the printer “MS Publisher Imagesetter” for the PDF export in Windows?), select it as PostScript Driver and click Search and Default again.
If the error mentions a PostScript driver and the Microsoft printer is not offered, you can set the printer in the UniPlot settings with
WriteProfileString("Settings", "pdf-printer", "Microsoft Print to PDF")(restart UniPlot afterwards).If only the Ghostscript part fails, remove all other Ghostscript installations and install Ghostscript 9.53.3 or 9.20, or print with File > Print… and Microsoft Print to PDF (no bookmarks). Switching off Use Ghost Script for PDF Export is not enough while Ghostscript is set up: the PDF export then still uses Ghostscript.
Restrictions set by your IT department can also block the Ghostscript call.
See also: File=>PDF-Export, Tools=>More Options.
12.1.7. Why is my PDF rasterized (diagrams exported as images) instead of vector graphics?¶
Coloured transparency and gradients are not fully supported by the PDF export and can force image output for a diagram, even with Ghostscript 10.x configured. Avoid transparency (and gradients) in diagrams that must stay vector graphics, or print with File > Print… and Microsoft Print to PDF. If a specific page remains rasterized, compare a working and a non-working page and look for objects that force image output.
See also: File=>PDF-Export.
12.1.8. Text boxes with min/max values overlap in a PDF created with a PDF printer. Why?¶
The text field @f{xyvalue(...)} uses the original position of the value when the page is printed through a PDF printer such as Microsoft Print to PDF. Use @f{xystatvalue(Data1,ymax.name.unit,%g)} instead, which works with the UniPlot PDF export and with printers.
12.2. Export to PowerPoint¶
12.2.1. The export to PowerPoint (especially with a PowerPoint template) suddenly fails with an error such as “Presentation.NewWindow: Object does not exist”. Is this fixed?¶
Fixed in R2025.3
Yes. An update of Microsoft PowerPoint (Microsoft 365, version 2508, build 19127.20192, from September 2025) broke the UniPlot export to PowerPoint. File > Export > Send To PowerPoint then failed, especially when a PowerPoint template was used. This is repaired in R2025.3. Update to R2025.3 or later (Help > Check for updates…).
If you cannot update yet (for example because the software is distributed centrally), ask the UniPlot support for a workaround. As a quick test, export without the template or try another Page Size option.
After you have installed a fixed release:
Delete any patch script you received for this problem from the Autoload folder of your user directory (open it with Help > Open User Directory…).
Make sure that no other script in the Autoload folder (for example an old copy of
rs_send.ic) overrides the export function. It would replace the fixed version.
See also: File=>Send to PowerPoint, PageSendToPowerPoint.
12.2.2. How does the PowerPoint export work and which options should I choose?¶
Right-click outside the page (or on the page tab) and choose Export > Send To PowerPoint (or use File > Export > Send To PowerPoint). PowerPoint must be installed. Each selected UniPlot page becomes one slide with a vector graphic. The most important options:
Page Size: Complete Page exports the page format chosen when the document was created (for example A4). Bound Box (Enclosing all elements) (the default) uses an imaginary rectangle around all elements of the page. It enlarges a small diagram and helps if diagrams are trimmed at the edges. Objects outside the page are exported as well. A freely defined export area is not possible.
Meta File Format: the graphic format of the slide pictures, see Which Meta File Format (WMF, EMF, EMF+) should I use for the PowerPoint export?.
Use PowerPoint Template with a template selected by the … button. The last slide of the template is used for the UniPlot page; a text object
UniPlot-Framedefines position and size of the picture and a text objectUniPlot-Page-Titleis replaced by the page title. If the template has blank areas around the picture, change Page Size and make sure theUniPlot-Frameobject has the size you want.Do not mix portrait and landscape pages; PowerPoint documents have one slide format.
Pages exported with UniPlot R2017 or later are marked and can be updated after the data changed: open the presentation in PowerPoint and choose Export > Update Active PowerPoint Document in UniPlot. Do not rename the pages in UniPlot after the export. Since R2024.3 axis links are handled correctly in the PowerPoint export. For pages with many data points and markers the export as a bitmap (200 dpi, format (3) BMP) is available since R2022.4; it loads instantly and avoids very slow PowerPoint and PDF files.
See also: File=>Send to PowerPoint, PageSendToPowerPoint.
12.2.3. Which Meta File Format (WMF, EMF, EMF+) should I use for the PowerPoint export?¶
The PowerPoint export dialog offers four formats:
(0) WMF: Old Format: oldest format, centred text and transparency are rendered less well. Isoline labels can be shown as white boxes; use another format for maps.
(1) EMF: (Default) Fast but no Anti Aliasing: fast; small differences such as text that looks compressed at small zoom, extra grid lines or an incomplete drawing can occur.
(2) EMF+: Slower than EMF but better quality: anti-aliasing and transparency, and the correct handling of fonts such as Poppins, but slower.
(3) BMP: For big files only (lower quality): bitmap export for pages with very many points (since R2022.4).
The setting is stored in the registry value SendTo_EMF_Type; it can also be changed with WriteProfileInt("settings", "SendTo_EMF_Type", 1).
If the presentation is later saved as PDF, see The diagrams become much smaller or broken when I save the PowerPoint presentation as PDF. How can I avoid this?.
See also: File=>Send to PowerPoint.
12.2.4. The diagrams become much smaller or broken when I save the PowerPoint presentation as PDF. How can I avoid this?¶
Pages sent to PowerPoint with the Meta File Format (2) EMF+ appeared much smaller (about a quarter of the size) after the presentation was saved as a PDF file in PowerPoint; they look correct in PowerPoint itself. This is fixed in UniPlot R2026.5; update to the latest release (Help > Check for updates…). For older releases use one of these workarounds:
In the PowerPoint export dialog set the Meta File Format to (1) EMF: (Default) Fast but no Anti Aliasing (or (0) WMF) instead of (2) EMF+. The quality is slightly lower (no anti-aliasing).
Create the PDF directly in UniPlot (File > Export > PDF Export… or File > Print… with Microsoft Print to PDF) instead of saving it in PowerPoint.
In PowerPoint use File > Print and select the Microsoft Print to PDF printer. This renders EMF correctly but loses the vector graphics and may add white margins or change the aspect ratio.
If the plots are also small in the PPTX itself, check that nothing hidden lies below the frame, select Complete Page or Bound Box (Enclosing all elements) correctly and make sure the UniPlot-Frame object in the template is large enough. Extra grid lines, missing parts and a tiny diagram can also depend on the metafile format; try another one and try Graphics Rendering Screen and Graphics Rendering Printer under Tools > More Options > Installation.
See also: Which Meta File Format (WMF, EMF, EMF+) should I use for the PowerPoint export?, File=>Send to PowerPoint.
12.2.5. A UniPlot page pasted into PowerPoint, or the picture size after the export, does not match what I expect. Why?¶
The size of an exported picture follows the page and print settings (page margins) of the UniPlot document or template. Documents based on different templates with different margins give different sizes; unify the settings or adjust the object size in PowerPoint.
If a page pasted into PowerPoint is much smaller than the frame, try the different graphics output modes under Tools > More Options > Installation (Graphics Rendering Screen, Graphics Rendering Printer) and check the Windows display settings (display scaling), which can change the picture size.
To export to a given size, fix the slide or placeholder size in a PowerPoint template; the exported picture follows the
UniPlot-Frameobject.
See also: File=>Send to PowerPoint, Tools=>More Options.
12.2.6. Images embedded in a UniPlot page (BMP, TIF, …) are missing in the PowerPoint export. Why?¶
Pictures that are themselves metafiles (WMF/EMF, for example created earlier with File > Export > Metafile/Bitmap-Export) are not exported to PowerPoint; only the graphs are. Re-create the picture as PNG or BMP and insert that file into the page.
See also: File=>Metafile/Bitmap-Export.
12.2.7. Text in the PowerPoint or JPG export is shifted or cut off (subscripts, special fonts). What can I do?¶
Subscripts written in LaTeX notation are cut off: part of the subscript lies outside the clipped export area of the text box. Double-click the text to open the Text Object dialog, set Edge Distance to about 0.15 cm and export again.
Text boxes are shifted with fonts that have unusual metrics (for example Poppins) in the EMF format: select (2) EMF+ as Meta File Format (slower; see The diagrams become much smaller or broken when I save the PowerPoint presentation as PDF. How can I avoid this? if the presentation is later saved as PDF). Alternatively keep EMF and set the vertical alignment of every text box using this font to bottom, switch off the clip option of the text and make the height depend on the content.
Isoline labels are white boxes: do not use WMF Old Format (Win32), see Which Meta File Format (WMF, EMF, EMF+) should I use for the PowerPoint export?.
See also: File=>Send to PowerPoint.
12.2.9. Can I place two UniPlot pages side by side on one PowerPoint slide (two UniPlot-Frame objects)? Can a page stay linked?¶
No. The export inserts exactly one UniPlot page per slide. The template uses one text object UniPlot-Frame for the position and size of the picture; additional UniPlot-Frame objects are ignored. To show two diagrams side by side:
place both diagrams on one UniPlot page and export that page, or
automate a custom layout with UniScript (PageSendToPowerPoint).
A live link from a slide to the UniPlot page is not available, but exported pages are marked in the presentation and can be refreshed with Export > Update Active PowerPoint Document after the data changed (see How does the PowerPoint export work and which options should I choose?).
See also: File=>Send to PowerPoint.
12.3. Images, Clipboard, Word and Outlook¶
12.3.1. How can I change the size of an exported image?¶
There is no option to enter exact pixel dimensions. The size of the exported picture follows the page. You can influence it as follows:
In File > Export > Save Pages as Metafile or Bitmap Graphics… choose the file type and the Resolution (96, 300 or 600 DPI). A higher resolution gives a larger bitmap. For other resolutions up to 1400 DPI use the program upimage.exe.
Change the page margins with File > Page Margins… before exporting; the white border around the diagrams belongs to the page. Changing
dxanddyof a diagram only changes the diagram inside the page.For a picture object inside a page, open its Properties and change width and height as a percentage of the original size.
For the PowerPoint export fix the slide or placeholder size in the template.
See also: File=>Metafile/Bitmap-Export.
12.3.2. How can I exclude a diagram or object from printing and from the export?¶
Double-click the object (text, table, drawing object) and activate Do not print on the Property tab. This also works for objects on the background page.
A whole diagram has no such option. Use one of these workarounds:
Hide the diagram: double-click an empty area of the diagram to open its settings and switch off the graphs of the diagram. It is then neither shown nor printed.
Move the diagram outside the page area. It stays in the document but is not printed or exported to PDF. For the PowerPoint export choose Page Size > Complete Page; with Bound Box (Enclosing all elements) an object outside the page is still exported.
See also: File=>Send to PowerPoint.
12.3.3. How can I copy a page to PowerPoint or Word without losing transparency?¶
Not with the clipboard: Copy Page and PageCopyToClipboard do not keep transparency (for example semi-transparent markers). Use File > Export > Send To PowerPoint with the Meta File Format (2) EMF+.
See also: PageCopyToClipboard, Edit=>Copy Page.
12.3.4. How can I turn a pasted UniPlot page into a picture in PowerPoint (the “Convert” command does not work)?¶
The PowerPoint command to convert the object is not available for UniPlot objects. Instead:
Choose Edit > Copy Page in UniPlot and in PowerPoint use right-click > Paste Options > Picture.
Or paste the page as object, double-click it to open it in UniPlot, copy it again and paste it as picture.
Or use File > Export > Send To PowerPoint, where the metafile format and the page size can be selected. This creates a new presentation with one picture per page.
Pasting as picture also keeps the size of the PowerPoint file small.
See also: Edit=>Copy Page, Overview Clipboard.
12.3.5. UniPlot crashes when I paste a copied page into an Outlook e-mail. What is the workaround?¶
Pasting a UniPlot page object directly into Outlook with Ctrl+V can crash UniPlot (other Office programs are not affected). Use one of these workarounds:
In Outlook use right-click > Paste as image.
Paste the page into PowerPoint first, copy it again from there and paste it into Outlook.
Paste it into Paint, select the whole area, copy it and paste it into Outlook.
See also: Edit=>Copy Page.
12.3.6. How can I embed an Excel table in a UniPlot page, and why are the cell colours missing in a table linked to Excel?¶
To embed a formatted Excel table choose Edit > Insert New Object and select Microsoft Excel Worksheet. Changes you make in Excel update the embedded object.
A table that is linked to an Excel sheet (Diagram=>More Functions=>Diagramm=>Create Table Linked to Excel Sheet) imports only the cell values of the range. Cell colours, borders and conditional formatting are not transferred. If the exact appearance matters, embed the worksheet as an object as described above or insert the range as a picture.
See also: Edit=>Insert New Object, Editing an Embedded Object.
12.4. Exporting Data (Excel, CSV, MATLAB, MDF4)¶
12.4.1. How can I export selected channels of a data file (NC/NC2, MF4, BLF) to Excel, CSV or TXT?¶
UniPlot first imports measurement files into the NC2 format (this also stores the formula channels), so the data file must be imported before the export. This is why NC Export… may first show a file dialog; the name and directory of the current NC2 file are shown at the top of the Data Browser.
Import the data file. The folder of the NC2 file is set in Tools > More Options > Data Import and Data Browser > Data File Directory (empty means the folder of the data file).
Choose File > Export > NC Export… and select the file.
Select the export format (for example XLSX or CSV) and the destination directory. Tick the option to select channels to choose the channels in the next window.
Select the channels in the list and confirm.
The export formats are CSV, CSV-UTX, XLS, XLS-UTX, XLSX, XLSX-NOHEADER, XLSX-UTX, TDM, NC, NC-UP, MATLAB and MDF4. Files with millions of rows can be exported. This exports the raw NC data, not the filtered or calculated curves of a diagram. Other formats such as IFILE (indicating) or BLF are not available. The .xls formats are limited to 16384 rows and 255 channels, so prefer XLSX.
For a batch export from UniScript, import the file and call NC_ExportData.
See also: File=>Export Data, NC_ExportData.
12.4.2. How can I export the data of all curves of a document to Excel at once?¶
From UniPlot R2022.6 open the IPZ document, right-click in the plot and choose Save All-Data…. The 2D and 3D datasets of the document are exported to one Excel file in numeric format, laid out like the pages of the document, and UniPlot asks whether hidden datasets are exported too. Numbers that are shown as text in Excel have to be converted to numbers there.
In older releases save each curve separately: right-click the curve and choose Save 2D-Data…. If an NC file exists, File > Export > NC Export… can write it as XLSX with a channel selection (see How can I export selected channels of a data file (NC/NC2, MF4, BLF) to Excel, CSV or TXT?).
See also: File=>Export Data.
12.4.3. How do I export the data of a 3D map to Excel?¶
Right-click the plot, choose More Data Functions > Save 3D-Data…, enter a file name and save. The data is opened in Excel. See also the file functions for saving a 3D matrix or hull.
See also: File=>More File Functions=>Save 3D Data Matrix, File=>More File Functions=>Save 3D Data Hull.
12.4.4. How can I copy a data table to Excel without rows and columns being swapped?¶
Load the channels onto a page as a data table (a text object of type data table), select all cells and copy them. Paste into Excel. Both layouts of the data table (channels as columns and channels as rows) are copied with the UniPlot rows arriving as Excel rows. If the result still looks transposed, check which layout is set in the table properties.
See also: The Clipboard, Copying Datasets.
12.4.5. Why do the time channel and other channels lose decimal places in the CSV text export?¶
A script that reduces the precision of the CSV text export (to keep the files small) is probably active in an Autoload folder. Remove the script to export with full precision (the files become larger), or use the Excel (.xlsx) export, which keeps the precision with an acceptable file size.
See also: File=>Export Data.
12.4.6. The MATLAB export does not contain the units of some channels. Why?¶
Units can be missing for channels that contain calculated values and for units with non-ASCII characters such as °C. Workarounds: export to CSV or Excel and import that file in MATLAB, or avoid special characters in the units.
See also: Export of netCDF files to MATLAB, File=>Export Data.
12.5. Printing and Disk Space¶
12.5.1. What are the large .bak files and how can I avoid them?¶
A .bak file is the backup of the previous version of a template (IPZ) that UniPlot keeps when the document is saved. You can delete these files. To stop creating them, enable Tools > More Options > UniPlot Document Options > Remove backup files: the old document is then removed after the new one was saved successfully.
See also: Tools=>More Options.
12.5.2. Can I view an IPW file in a web browser or convert it to PDF?¶
IPW files are opened in UniPlot. From there use File > Export > PDF Export… to create a PDF or File > Export > Send To PowerPoint to create a presentation.
See also: File=>PDF-Export.
id-1204245