PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

zcl_pdf

A standalone ABAP class that draws simple PDFs without Adobe Document Server: text in built-in fonts, text fitted into a box and rectangles, returned as a raw string to store, send or display.

Generating a PDF from ABAP without Adobe Document Server (ADS) means relying on the ABAP stack's built-in, non-ADS capabilities, which the maintainer found very limited on a project. zcl_pdf is a standalone alternative for when ADS is not available: it writes text in the Helvetica, Times or Courier built-in fonts, measures text strings, fits text into a box at the largest size that still fits, draws rectangles, and returns the PDF as a raw string to store, send as an HTTP response or show in SAP GUI. It supports only the basic functionality the maintainer needed, though adding more is described as fairly simple. There is no package to install: the class is created by hand and the source pasted into it.

Facts

Last pushLicenceMIT

Where it sits

Lives in
Provides
Document outputABAPDocument outputcapabilityProducing a document a person receives — a printed form, a generated PDF, a filled template — and getting it to a printer or a queue rather than returning it as a payload.

Who is behind it

Bjørn Espen RaadimBjørn Espen RaadimPersonMaintains this
In the atlas: maintains 1, contributes to 1
@beraadim
maintainerAboPersonContributes to this
In the atlas: contributes to 8
@AndreaBorgia-Abo
Lars HvamPersonContributes to this
In the atlas: maintains 13, contributes to 92, wrote 1
@larshp
2 contributors

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
Inside its host
Distributed through
Copied into the project

Connections1

README

quoted from beraadim/zcl_pdf under MIT, read
beraadim/zcl_pdf/README.mdOn GitHub

zcl_pdf

A pure stand alone ABAP class for creating PDFs in SAP on any ABAP system

I created this class on my spare time on one of my projects. We ended up using the class in the project instead of using the built in (non ADS ) capabilities in the abap stack which is very limited. IF you want more flexibility, your option is usually to go for ADS (Adobe Document Server). If ADS is not available, this class could be an alternative.

The class supports only basic functionality which I needed at the time, but it should be fairly simple to add more.

Currently, the class is capable of:

  • Create text in the PDF built in fonts
    • Helvetica
    • Times
    • Courier
  • Measure text strings (for the supported fonts)
  • Fit text within a defined box constrain with largest possible font size
  • Draw rectangles
  • Get the PDF as a raw string which can be stored as files or sent as http responses or shown directly in SAP GUI (see example).

To use:

  1. Create a class named ZCL_PDF
  2. Change to "Source Code Based" editing
  3. Past in the code from the file zcl_abap.abap
  4. Activate class

You can switch back to Form based coding if that is what you prefer.

To test: See the report ZTEST_ZCL_PDF to see an example on how create a simple pdf and display the pdf within SAP GUI.

MIT, read
Document output
  1. abap2xlsxLibrary that reads and generates Excel spreadsheets from ABAP
  2. zcl_docxABAP class filling a tagged Word .docx template with data
  3. XTTABAP template engine for Excel, Word, HTML and PDF
  4. SAP Forms Service by AdobeAdobe Document Services on BTP for print and interactive PDFs
  5. HandlebarsABAPSingle-file Handlebars templating for ABAP 7.40 SP02 and up
  6. open-abap-pdfStandalone PDF generator written in ABAP
  7. SAP Spool PDFSubmits an ABAP report to the spool and converts the output to PDF

Details

Sources3
Added by handdiscovered herechecked
github.com/beraadim/zcl_pdftree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainabap, integration-and-messaging
abaplint
issues under its own abaplint configuration867
lines2,721
statements1,221
objects2
files4
analysed, master
abaplint version2.120.84
Flavors1
Standard ABAP
“Get the PDF as a raw string which can be stored as files or sent as http responses or shown directly in SAP GUI (see example).” — beraadim/zcl_pdf — READMEchecked
Contributors2

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:beraadim-zcl-pdf
JSON
/artifacts/beraadim-zcl-pdf.json
MCP
Connecting an agent