--- title: "extract files from PDF/A3()" slug: "basic-extract-files-from-pdf" updated: 2025-09-17T19:55:43Z published: 2025-09-22T09:16:10Z canonical: "docs.lobstersoftware.com/basic-extract-files-from-pdf" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # extract files from PDF/A3() This function extracts all files from a PDF/A3 ZUGFeRD container **a** and places them in directory **b**. This is especially useful if the container contains other files in addition to the embedded XML. Returns the number of extracted files or *-1* if an error occurred. ## Parameters | Parameter | Description | | --- | --- | | a | The path and name of the PDF/A3 ZUGFeRD container. | | b | The path of the directory in which to extract. | | c | (optional) If *true*, the XML invoice file is not extracted into **b**. Default: *false*. |