PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Platform printing integrations

Print from cloud-hosted SAP without a site-to-site VPN

Send a SAP document PDF to an on-prem printer without a VPN to that printer. Your integration layer calls the API; the agent connects outbound.

For Teams running SAP in the cloud who only need a printer path, not a network merge

Overview

A site-to-site VPN is the usual answer when a cloud SAP system must speak to a printer on a private LAN. You can skip that VPN for the print path if a PC on the LAN runs the agent and your SAP integration posts a PDF or raw payload over HTTPS. PrintBase is not a certified SAP add-on and it does not appear as an output device type inside SAP.

The practical place to call the API is the middleware you already use to leave SAP: an iFlow, a small service on BTP, or the job that already exports the spool file as PDF. That component holds the API key. SAP itself does not need a route to the printer IP.

Use the spool id or the document number as Idempotency-Key. The agent PC must be the one where the OS printer is installed. Turning that PC off yields AGENT_OFFLINE, which is a clearer failure than a VPN route that dropped.

Integration steps

  1. 01

    Export PDF or raw from SAP

    Use the output you already trust. Convert OT F or a spool to PDF if the printer is a normal office device. Keep ZPL as raw if the device is a Zebra.

  2. 02

    Call the API from middleware

    POST /v1/print-jobs with Bearer auth. Do not store the key in a client form.

  3. 03

    Run the agent inside the plant

    Outbound WebSocket only. No inbound port on the printer or the PC.

  4. 04

    Map plant to printer_code

    Your middleware table, not SAP's spool host, decides which integer to send.

  5. 05

    Return the job id to the process

    Operators should see queued versus AGENT_OFFLINE, not only 'output request created'.

Java

// Middleware beside SAP: print a spool PDF
var json = """
{"printer_code":%d,"content_type":"pdf","content":"" + pdfBase64 + ","copies":1}
""".formatted(printerCode);
var req = HttpRequest.newBuilder(URI.create("https://api.printbase.cloud/v1/print-jobs"))
    .header("Authorization", "Bearer " + apiKey)
    .header("Content-Type", "application/json")
    .header("Idempotency-Key", idempotencyKey)
    .POST(HttpRequest.BodyPublishers.ofString(json))
    .build();
var res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
if (res.statusCode() >= 300) throw new IllegalStateException(res.body());
// {"id":"job_abc","status":"queued"}

Details for this setup

PDF path for a document exported from SAP

Use content_type pdf and exactly one of content (standard base64) or content_url (an http or https URL the agent can download). A private file must be fetched by your server and sent as base64, or exposed as a short-lived URL. On Windows the agent asks a PDF app to print to the named queue; if none is registered, the failure text names Adobe Reader or SumatraPDF as examples. macOS and Linux use lp.

What this does not replace

This is not SAP output management, not a device type, and not a statement about certification. It prints a file your integration can already produce.

Questions

Do I still need a VPN for SAP GUI?

Maybe, for SAP itself. You do not need one so the printer can accept a connection from the cloud. The agent dials out.

Can the printer stay on a private IP?

Yes. The agent is on a computer that can see that printer. The cloud never connects inbound to it.

ZPL from SAP Smart Forms?

If you truly have ZPL bytes, send content_type raw. If you have PDF, send pdf. Do not relabel one as the other.

Is the API key safe in an iFlow?

Put it in the secure parameter store your middleware provides. Do not commit it.

Related guides

  • How to auto-print Business Central documents

    Print a Business Central report PDF via an AL codeunit or a Power Automate HTTP action. No PrintBase BC extension is included.

  • Print from a cloud app to an office without a VPN

    An app on AWS or Azure can print to a branch office by posting a job. The office runs the agent. You do not merge the networks for printing.

  • Print from AWS to a printer behind a firewall

    A server on AWS does not need a path to the printer's private IP. The office agent connects outbound and your server posts a job.

  • How to auto-print NetSuite pick tickets

    Print a NetSuite pick ticket PDF from a user event or scheduled script. No PrintBase SuiteApp is provided; the script calls the API.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds