Interface IZUGFeRDExporter

    • Method Detail

      • load

        IZUGFeRDExporter load​(java.lang.String pdfFilename)
                       throws java.io.IOException
        factory: loads a PDF file and returns an appropriate exporter
        Parameters:
        pdfFilename - binary of a PDF/A1 compliant document
        Returns:
        the generated exporter
        Throws:
        java.io.IOException - if anything is wrong with filename
      • load

        IZUGFeRDExporter load​(byte[] pdfBinary)
                       throws java.io.IOException
        Makes A PDF/A3a-compliant document from a PDF-A1 compliant document (on the metadata level, this will not e.g. convert graphics to JPG-2000)
        Parameters:
        pdfBinary - binary of a PDF/A1 compliant document
        Returns:
        the generated exporter
        Throws:
        java.io.IOException - (should not happen at all)
      • load

        IZUGFeRDExporter load​(java.io.InputStream pdfSource)
                       throws java.io.IOException
        Makes A PDF/A3a-compliant document from a PDF-A1 compliant document (on the metadata level, this will not e.g. convert graphics to JPG-2000)
        Parameters:
        pdfSource - source to read a PDF/A1 compliant document from
        Returns:
        the generated ZUGFeRDExporter
        Throws:
        java.io.IOException - if anything is wrong with inputstream
      • ensurePDFIsValid

        boolean ensurePDFIsValid​(jakarta.activation.DataSource dataSource)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • setXML

        IZUGFeRDExporter setXML​(byte[] zugferdData)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getNamespaceForVersion

        java.lang.String getNamespaceForVersion​(int ver)
      • getPrefixForVersion

        java.lang.String getPrefixForVersion​(int ver)
      • disableAutoClose

        IZUGFeRDExporter disableAutoClose​(boolean disableAutoClose)
      • attachFile

        void attachFile​(java.lang.String filename,
                        byte[] data,
                        java.lang.String mimetype,
                        java.lang.String relation)