howto save PDF instead of showing in browser window


does someone know how to save a generated pdf in local filesystem? I want to store all pdf and after that to send per email.

i am able to call the pdf from a function:

function dadabik_rechnung_mypdf(){

thank you for your friendly help


DaDaBIK™ is a product conceived and developed by Eugenio Tacchini
Copyright © 2001-2022 Eugenio Tacchini
Proudly ❤️ made in Emilia

Your current DaDaBIK version​

You are using DaDaBIK version 11.8-Elba enterprise, installed on 10.02.2023 (installation code: 1865663e582dad9f52), the latest version of DaDaBIK is 11.8-Elba released on 05.12.2022

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 8.1.16

mysql version: 10.6.12-MariaDB-0ubuntu0.22.04.1

Web server: Apache

Client: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 OPR/