Documentation
7-PDF Attach Extract And Remove Files – GUI & CLI Documentation
Operate via Tabbed GUI or Command Line
The 7-PDF Attach Extract And Remove Files tool offers two convenient usage modes:
- an intuitive tabbed GUI for visual interaction
- a powerful CLI (Command Line Interface) for automation and integration
The graphical user interface supports all main features by click – ideal for single-use cases. The CLI enables batch processing and professional workflows in automated environments like ERP, DMS, printing systems and more.

Video Tutorial – Tab Functions Overview (PDF Invoice Tab not yet included)
This video illustrates the "Attach", "Extract" and "Remove" tabs for handling attachments in PDF documents. The "PDF Invoice to ZUGFeRD" tab is not yet included, but works identically to the other tabs.
See our short step-by-step guide for converting with Word, Excel or other apps using the "PDF Invoice to ZUGFeRD" tab here...
🖱️ Tab Overview – GUI Functions
Tab | Function |
---|---|
Attach file to PDF | Embeds external files into PDF/A-3 (e.g. ZUGFeRD XML) |
Extract file from PDF | Extracts embedded files from PDF |
Remove file from PDF | Removes embedded files by name or type |
PDF Invoice to ZUGFeRD | Triggers ZUGFeRD conversion via built-in web service |
Privacy | Consent for processing when using web service |
License/Info | Shows license status |
💡 CLI Mode – Command Line Operation
Ideal for power users, automation, integration with ERP, print servers, or batch processing.
Example usage:
PDFAttachExtractAndRemoveFiles.exe -mode "console" -usage "attach" -inpdf "invoice.pdf" -infile "factur-x.xml"
Available CLI Parameters
Parameter | Description |
---|---|
-mode | gui (default), console , hidden |
-usage | attach , extract , remove , generate |
-inpdf | Path to input PDF (PDF/A-3) |
-infile | File to attach (e.g. XML) |
-outpath | Target folder for extracted files |
-fileext | File type filter (e.g. .xml ) |
-byName | Extract/remove specific file by name |
-estandard | ZUGFeRD version: ZF1 , ZF2 , ZF21 |
-apiToken | API token for KI-based conversion |
-logfile | Optional log file output (for hidden ) |
Command Examples
:: Attach file:
PDFAttachExtractAndRemoveFiles.exe -mode "console" -usage "attach" -inpdf "invoice.pdf" -infile "factur-x.xml" -estandard "ZF2"
:: Extract file:
PDFAttachExtractAndRemoveFiles.exe -mode "console" -usage "extract" -inpdf "invoice.pdf" -outpath "C:\\Output" -fileext ".xml"
:: Remove file:
PDFAttachExtractAndRemoveFiles.exe -mode "console" -usage "remove" -inpdf "invoice.pdf" -byName "factur-x.xml"
:: Generate ZUGFeRD PDF:
PDFAttachExtractAndRemoveFiles.exe -mode "console" -usage "generate" -inpdf "invoice.pdf" -apiToken "YOUR_TOKEN"
🔌 API Access via FastAPI & CURL
With a Pro, Team or Enterprise subscription, you gain full API access to our FastAPI-based Invoice Extractor. Automate ZUGFeRD e-invoice conversion directly from your ERP, DMS or web systems.
Access is provided via a secure token-based HTTP POST endpoint returning structured JSON and ZUGFeRD XML – perfect for developers and integration scenarios.
File upload is encrypted via HTTPS and processed securely on German infrastructure. A valid result includes the ZUGFeRD XML response.
Use our documented REST API via /extract-invoice/
endpoint.
Example: Convert PDF to ZUGFeRD XML via CURL
curl -X POST https://generator.7-pdf.de/extract-invoice/ \
-H "accept: application/json" \
-H "Authorization: Bearer [[ T O K E N - C O D E ]]" \
-H "Content-Type: multipart/form-data" \
-F "file=@/Users/benutzername/Documents/Invoice.pdf"
Note: Replace [[ T O K E N - C O D E ]]
with your valid API token. The endpoint returns structured JSON and optionally ZUGFeRD XML.
Sample Response:
{ "success": true, "invoice_number": "2825056", "xml": "<?xml version=\"1.0\" ?>\n<rsm:CrossIndustryInvoice ...", "validation_file": "passed", "validation_string": "passed" }
Test this endpoint using tools like Postman or integrate it into your own scripts.
Your API Access Benefits
- Automated processing of PDF invoices in ERP/DMS/Web apps
- No manual steps – 100% server-side handling
- Flexible integration (CURL, Postman, Python, PHP, etc.)
- Secure token authentication
Although no technical lock is currently in place, occasional use with
Starter
or Basic
may succeed – but official access is limited to advanced plans.
🔐 Licensing & Free Conversions
- 25 free ZUGFeRD conversions included in the full version
- License or API key is automatically detected
- Trial expiry triggers an in-app notice
📍 Additional Notes
- Only PDF/A-3b files supported (ISO 19005-3; use 7-PDF Printer Professional to generate them)
- GUI supports drag & drop and visual feedback
- CLI ideal for headless automation
Registration of the license key in the application
Your personal license key can be activated as a full version after you have acquired the license in the already installed program using the button "Insert license-key, ..." in the tab "Info". As an illustration, we have a graphic below that shows the button "Enter license key, ..." within the software:
Note: When the license key is entered, it is validated and activated over the Internet (via SSL). Therefore, make sure you have an active internet connection for the unique registration process of the application! In rare cases, locally installed third-party application firewalls may block the program's access to the Internet. When using such third-party firewalls, make sure to grant the necessary rights for access to the Internet for the one-time registration process of the application.
Unfortunately, the issue of software piracy is also harmful to us and we have to face this piracy. This is the only way for us to continue to provide you with maintenance or support services free of charge. The internet is only necessary once for the registration process! What is stored on your systems remains on your systems!
Automatic license distribution for 7-PDF Attach Extract and Remove FULLVERSION
In addition to the manual entry in the installed program, licensing can also be automated in the context of a deployment. For this you set a corresponding registry entry.
For licensing as part of a deployment on "many" (!) PCs, Citrix od TS Systems, at the same time, please contact us. This requires a special key (!) that you can distribute directly, either via an INI file or better via a registry entry. The license key you purchased is not a special key, so there is no point in entering it plain into the registry.
The screenshot below shows the path to capture the special license key within the registry (SpecialKey).
By setting the license key in the "Code" key, the software then launches as a FULL VERSION.
On Citrix and TS Systems it is usually sufficient to start the application with "Run as administrator" and to manually enter the license key you have acquired as admin in the application for licensing. The registry key shown in the figure above is set by the application itself in this scenario. However, this step must be carried out manually for each terminal server. If you have a large number of terminal servers, it is advisable to contact us as well. This scenario also requires a special key that you can distribute automatically.
Automatic deployment / software distribution
To distribute the software, the setup supports the installation parameters /SILENT
and /VERYSILENT
.
If you have further questions about the program, please feel free to contact our free email support. Otherwise, we wish you great success and enjoyment with PDF Attach Extract And Remove Files!