After upgrading to PDFBox 3, the PreflightParser.validate() function
returns an error.
"Trailer Syntax error, /XRef cross reference streams are not allowed"
Code:
fun isValid(bytes: ByteArray): Boolean {
val fileName = "tmp_${UUID.randomUUID()}.pdf"
val file = File(fileName)
val document =
load your PDF somewhere and link to it.
>
> If there is really a cross reference stream, then the error message is
> correct (and 2.0.29 is at fault), because that is a PDF 1.5 feature and
> PDF/A-1b is based on 1.4.
>
> Tilman
>
>
> On 20.09.2023 17:00, Morten Stulen wro
what is required to fix the
validation for XRef?
ᐧ
On Sat, Sep 23, 2023 at 5:22 AM Tilman Hausherr
wrote:
> I get the same "error" with 2.0.29.
>
> Tilman
>
>
> On 20.09.2023 17:00, Morten Stulen wrote:
> > After upgrading to PDFBox 3, the PreflightParser.va
online.com%2Fosa%2Fvalidate.aspx>
> and
> only the v3 PDF has the XRef validation error.
>
> If the PDFBox 3 validation is correct, what is required to fix the
> validation for XRef?
>
> ᐧ
>
> On Sat, Sep 23, 2023 at 5:22 AM Tilman Hausherr
> wrote:
&g
Thanks for the help! :)
ᐧ
On Tue, Sep 26, 2023 at 7:59 PM Tilman Hausherr
wrote:
> On 26.09.2023 11:49, Morten Stulen wrote:
> >
> > If the PDFBox 3 validation is correct, what is required to fix the
> > validation for XRef?
>
>
> save your file
5 matches
Mail list logo