# How to report to a custom file path

**URL:** <https://faq.inetsoftware.de/t/how-to-report-to-a-custom-file-path/59>\
**Category:** API\
**Tags:** version4, version3\
**Created:** [June 7, 2016, 1:39pm UTC](https://faq.inetsoftware.de/t/how-to-report-to-a-custom-file-path/59 "2016-06-07T13:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardRoedel](https://faq.inetsoftware.de/user_avatar/faq.inetsoftware.de/richardroedel/32/27_2.png) [@RichardRoedel](https://faq.inetsoftware.de/u/RichardRoedel)\
**Post date:** [June 7, 2016, 1:39pm UTC](https://faq.inetsoftware.de/t/how-to-report-to-a-custom-file-path/59/1 "2016-06-07T13:39:39Z")

</div>

See the [CompareAndExportToSpecificFilename](https://static.217.19.98.91.clients.your-server.de/t/how-to-specify-the-export-file/53/1) sample for an additional sample along these lines.

For this create a new class with extending the default class **ReportPDFPresenter**.  
In this class should now the `getExportStream()` overrided.

the last constructor parameter isn’t needed, if the `getExportStream()` overrided

```
public class PersonalReportPDFPresenter extends ReportPDFPresenter{

    public PersonalReportPDFPresenter( boolean detailed, boolean appendSettings) {
        super( detailed, appendSettings, null );
    }

     @Override
     protected OutputStream getExportStream() throws IOException {
         return new FileOutputStream( <export file> );
     }
}

```

After them use the pdf comparer and add the personal presenter.

```
new PDFComparer() .addPresenter( personalReportPDFPresenter) .compare( <file1>, <file2> );

```

[View full sourcecode](https://github.com/i-net-software/pdfc-samples/blob/master/src/main/java/report/ReportingToSpecificFilename.java)
