Klasse mit welcher simple PDF's merges gemacht werden können
Klasse: cl_rspo_pdf_merge
Beispiel:
* PDF Files mergen ---------------------------------------------------
TRY.
DATA(lo_pdf_merger) = NEW cl_rspo_pdf_merge( ).
CATCH CX_RSPO_PDF_MERGE.
ENDTRY.
LOOP AT lt_pdf_merge ASSIGNING FIELD-SYMBOL(<fs_pdf_merge>).
lo_pdf_merger->add_document( <fs_pdf_merge>-pdf ).
ENDLOOP.
lo_pdf_merger->merge_documents( IMPORTING merged_document = lv_merged_content rc = DATA(lv_rc) ).
* wenn Fehler, initiales PDF (ohne PDF Anlagen) anzeigen.
if lv_rc <> 0.
* lo_pdf_merger->get_err_doc_index( importing index = DATA(lv_docindex) ).
* lo_pdf_merger->get_document( exporting index = lv_docindex importing document = DATA(lv_errordoc) ).
ls_stream-value = lv_content.
endif.