Below a solution using the DCOM interface via the RDCOMClient. This is not my preferred solution as it only works on Windows. A plattform independent solution would still be appreciated.

library(RDCOMClient)
library(R.utils)

file <- "file.xlsx"                   # relative path to Excel file
ex <- COMCreate("Excel.Application")  # create COM object
file <- getAbsolutePath(file)         # convert to absolute path
book <- ex$workbooks()$Open(file)     # open Excel file
sheet <- book$Worksheets()$Item(1)    # pointer to first worksheet
sheet$Select()                        # select first worksheet
ex[["ActiveSheet"]]$ExportAsFixedFormat(Type=0,    # export as PDF
                                        Filename="my.pdf", 
                                        IgnorePrintAreas=FALSE)
ex[["ActiveWorkbook"]]$Save()         # save workbook
ex$Quit()                             # close Excel
Answer from Mark Heckmann on Stack Overflow
🌐
CloudConvert
cloudconvert.com › xlsx-to-pdf
Excel to PDF | CloudConvert
High Quality Excel (XLSX) to PDF Converter - No watermarks, no sign up required.
🌐
Adobe
adobe.com › acrobat › online › excel-to-pdf.html
Convert Excel to PDF online for free | Acrobat
It’s simple and easy to convert XLSX to PDF using Excel on your Windows computer, you will need to: Open Microsoft Excel and select the Excel spreadsheet you want to convert to PDF. Click the File menu at the top-left corner.
Discussions

How to Convert Excel .XLSX to PDF: No-Cost Ways
PDFgear’s online converting tools are incredibly convenient for various file turning. You don’t need to install anything - just access the converter from any device with the internet, and you’re ready to go. More on reddit.com
🌐 r/PDFgear
7
5
August 27, 2024
Print/save Excel (.xlsx) sheet to PDF using R - Stack Overflow
I want to print an Excel file to a pdf file after manipulating it. For the manipulation I used the .xlsx package which works fine. There is a function printSetup but I cannot find a function to sta... More on stackoverflow.com
🌐 stackoverflow.com
Convert xlsx to html, xml or pdf

Microsoft article on embedding Excel on a webpage

More on reddit.com
🌐 r/excel
2
1
October 4, 2018
When I save my Excel Spreadsheet to PDF it saves it to multiple pages instead of 1
Click on print then amend how you would like the page printed in PDF then saves as PDF More on reddit.com
🌐 r/excel
19
2
March 23, 2021
People also ask

How to change XLSX to PDF?

You can convert XLSX to PDF right on Excel or Google Sheets by exporting or saving the file in PDF format, with the option to save only select sheets or the whole document.


However, for a quick conversion that also lets you make some last-minute design edits, use the XLSX to PDF converter on our platform. Add impact to your data presentation with shapes and graphics from our rich library of elements. Highlight columns in custom colors, draw connections between numerical fields, and underline important figures with our free Draw tool. You can even use Magic Write to insert engaging copy that complements your data.


Our platform lets you easily transform your plain XLSX file to a stunning visual-first sheet before converting it into a shareable PDF.

🌐
canva.com
canva.com › home › sheets › xlsx to pdf
XLSX to PDF converter: Convert XLSX to PDF for free | Canva
What is the best XLSX to PDF converter?
If you’re looking for a free and easy way to convert XLSX files to PDFs, then our platform is the best choice. With our converter, you don’t just get files in the format you need—you also have access to our user-friendly editing tools, including AI-powered ones, that can help you create compelling, on-brand documents. Plus, you can make your PDF shareable, viewable, and ready to present at a moment’s notice.
🌐
canva.com
canva.com › home › sheets › xlsx to pdf
XLSX to PDF converter: Convert XLSX to PDF for free | Canva
Is it safe to convert XLSX to PDF online?
If you’re using our platform as your XLSX to PDF converter, yes, it is very safe to convert your files online. We have products, policies, processes, and systems set in place to protect our users’ rights and data. Read our Security, Privacy, and Safety policies to learn more about how we look after our community and maintain a trustworthy platform where you can create and publish your designs.
🌐
canva.com
canva.com › home › sheets › xlsx to pdf
XLSX to PDF converter: Convert XLSX to PDF for free | Canva
🌐
iLovePDF
ilovepdf.com › excel_to_pdf
Convert Excel to PDF. Documents & tables XLS to PDF
Convert Excel to PDF and set the page orientation as you prefer. Convert Excel to PDF online, easily and free.
🌐
Online2PDF
online2pdf.com › convert-xlsx-to-pdf
Convert XLSX files (Excel) to PDF online & free
XLSX to PDF: You can easily convert your XLSX files to PDF with this online tool - just in a few seconds and completely free.
🌐
Smallpdf
smallpdf.com › blog › how to convert xlsx to pdf online
Convert XLSX to PDF Free Online | Smallpdf
May 12, 2026 - Open the Excel to PDF Converter on Smallpdf. Click “Choose Files” or drag and drop your .xlsx or .xls file into the box.
Find elsewhere
🌐
Google Play
play.google.com › store › apps › details
XLSX to PDF Converter - Apps on Google Play
Use our Excel to PDF tool convert .xlsx spreadsheets into PDF documents for free. No account is needed to use our converter app. Need a hand at saving standard Excel workbook (.xlsx) files to PDF format? You can use our Excel to PDF converter to do so. It’s free to use and is also compatible with older Excel file types, such as the Excel 97-2004 workbook file format (.xls).
Rating: 4.8 ​ - ​ 14.3K votes
🌐
Canva
canva.com › home › sheets › xlsx to pdf
XLSX to PDF converter: Convert XLSX to PDF for free | Canva
Skip to start of “How to convert XLSX to PDF” list ... Changing your XLSX file to a PDF is easy with Canva's XLSX to PDF converter. It's quick, simple, and free–no complicated software or expensive tools needed.
🌐
FreeConvert
freeconvert.com › xlsx-to-pdf
XLSX to PDF Converter - FreeConvert.com
When the status change to “Done” click the “Download PDF” button · Simply upload your XLSX files and click the convert button. You can also batch convert XLSX to PDF format. There is no software to install, it works on any web browser.
Top answer
1 of 4
5

Below a solution using the DCOM interface via the RDCOMClient. This is not my preferred solution as it only works on Windows. A plattform independent solution would still be appreciated.

library(RDCOMClient)
library(R.utils)

file <- "file.xlsx"                   # relative path to Excel file
ex <- COMCreate("Excel.Application")  # create COM object
file <- getAbsolutePath(file)         # convert to absolute path
book <- ex$workbooks()$Open(file)     # open Excel file
sheet <- book$Worksheets()$Item(1)    # pointer to first worksheet
sheet$Select()                        # select first worksheet
ex[["ActiveSheet"]]$ExportAsFixedFormat(Type=0,    # export as PDF
                                        Filename="my.pdf", 
                                        IgnorePrintAreas=FALSE)
ex[["ActiveWorkbook"]]$Save()         # save workbook
ex$Quit()                             # close Excel
2 of 4
3

An open source and cross platform way to do this would be with libreoffice as so:

library("XLConnect")
x <- rnorm(1:100)
y <- x ^ 2
writeWorksheetToFile("test.xlsx", data.frame(x = x, y = y), "Data")
tmpDir <- file.path(tempdir(), "LOConv")
system2("libreoffice", c(paste0("-env:UserInstallation=file://", tmpDir), "--headless", "--convert-to pdf",
    "--outdir", getwd(), file.path(getwd(),"test.xlsx")))

Ideally you'd then remove the folder referenced by tmpDir but that would be platform specific.

Note this assumes libreoffice is in your path. If it isn't, then the command would need to be altered to include the full path to the libreoffice executable.

The reason for the env bit is that headless libreoffice will only do anything otherwise if it isn't already running in GUI mode. See http://ask.libreoffice.org/en/question/1686/how-to-not-connect-to-a-running-instance/ for more info.

🌐
Zamzar
zamzar.com › home › converters › document › xlsx › convertxtoy
Excel to PDF - Convert your XLSX to PDF for Free Online
Do you want to convert a XLSX file to a PDF file ? Don't download software - use Zamzar to convert it for free online. Click to convert your XLSX file now.
🌐
CoolUtils
coolutils.com › online › xlsx to pdf
Convert XLSX to PDF Online — Free Excel to PDF Converter
June 10, 2026 - Converting Excel XLSX spreadsheets to PDF online has never been so simple. Drop your .xlsx file and the converter renders each worksheet with column widths, cell formatting, formulas resolved to values, and charts — producing a print-ready PDF that looks exactly like your spreadsheet.
Rating: 4.8 ​ - ​ 3 votes
🌐
pdfFiller
convert-excel-to-pdf.pdffiller.com › home › functionality index › pdf converter: convert pdf to editable features › convert any format into editable pdf online › convert excel to pdf
Convert EXCEL to PDF Online | pdfFiller
Upload a document in DOC, DOCX, RTF, PPT, PPTX, JPEG, PNG, JFIF, XLS, XLSX, or TXT format and instantly convert it to a high-quality, editable PDF. You can edit or sign your file, turn it into a fillable form, split it, or merge it with another document.
Published   May 29, 2026
🌐
Microsoft Store
apps.microsoft.com › detail › 9nbbghzhwnkg
XLS to PDF - Free download and install on Windows | Microsoft Store
Convert Excel to PDF file quickly and accurately with the XLS to PDF app. Extract tables, data, and formatting effortlessly—no more manual retyping! Key Features: ✅ Fast & Accurate – Convert Excel to PDF in seconds. ✅ Preserves Formatting – Tables, numbers, and layouts stay intact.
🌐
PDFgear
pdfgear.com › xlsx-to-pdf
Convert XLSX to PDF Online Free
Turn XLSX worksheet into PDF without changing format. No file number limits, no email required. Try this 100% free online XLSX to PDF converter now!
Published   September 5, 2022
🌐
Ohio Secretary of State
ohiosos.gov › elections › district-maps
District Maps
U.S. Congressional Districts Map (PDF) Equivalency File (XLSX) SHAPE Files (ZIP) U.S. Congressional Districts Most Populous Counties (PDF) Legal Description (PDF) U.S.
🌐
CoolUtils
coolutils.com › total excel converter › convert xlsx to pdf — turn excel spreadsheets into pdf documents
XLSX to PDF Converter: Convert Excel Files to PDF in Batch | CoolUtils
Convert XLSX to PDF while preserving formatting, page layout, and cell structure. Batch conversion, encryption, command-line support, 100% offline
Rating: 4.7 ​ - ​ 3 votes
🌐
PDF to Excel
pdftoexcel.com
Convert PDF to Excel Free Online - No email required
Easily convert PDF to Excel online. Turn native or scanned PDFs into editable XLSX spreadsheets with our free, fast, and secure PDF to Excel converter.
🌐
Smallpdf
smallpdf.com › home › excel to pdf
Convert Excel to PDF Online – Free & Easy XLSX Converter | Smallpdf
No settings to adjust—just upload your Excel file, convert, and download your PDF in a click. Sharing is a breeze. No Microsoft Office needed. ... Keep your Excel formulas, tables, and layouts looking professional when converting to PDF—no data loss or misalignment. ... Convert Excel (XLSX) to PDF online on Mac, Windows, Linux, iPhone, or Android—no software downloads required.
🌐
Nitro Software
gonitro.com › home › free pdf conversion tools › excel to pdf
Free Excel to PDF Converter Online | Convert Excel to PDF Instantly | Nitro
November 26, 2025 - Select Excel to PDF Make sure Excel to PDF is selected in the dropdown menu (this is the default setting and should already be selected). Convert your file Click the orange Convert Now button.