But the testfiles show that the xref is written as text and not as stream so I think the fact that there is a stream in the doc ommits writing a trailer at all
Maruan Sahyoun Am 04.04.2013 um 19:26 schrieb Andreas Lehmkuehler <[email protected]>: > Hi, > > > Am 04.04.2013 18:58, schrieb Maruan Sahyoun: >> Hi Andreas, >> >> I'm currently on a trip but could it be the test in line 595 of COSWriter? I >> have some more time tomorrow > No, it seems to be in line 1142. In the case of a XRef stream the trailer > isn't > written right after the xref table, which is correct according to the spec. > But > in that case the trailer object isn't written at all. I'm still trying to > understandthe circumstances .... > > BR > Andreas Lehmkühler > >> Kind regards >> >> Maruan Sahyoun >> >> Am 04.04.2013 um 18:45 schrieb Andreas Lehmkuehler <[email protected]>: >> >>> Hi, >>> >>> Am 04.04.2013 16:41, schrieb Maruan Sahyoun: >>>> Hi Andreas, >>>> >>>> it's related to PDFBOX-1551 as you already guessed. In addition PDF-1556 >>>> is related to PDFBOX-1551. I linked them in Jira. >>> Thanks. >>> >>> I ran a quick test. As suggested I simply load and save a pdf and got 2 >>> different results: >>> >>> - cweb.pdf (from our testsuite) works fine >>> - one of the pdfs attached to PDFBOX-1551 fails (the trailer is missing) >>> >>> The reason is the trailer. The first pdf uses a xref table the second a xref >>> xstream. After saving the second the trailer is missing. The regression was >>> introduced with PDFBOX-1513. >>> >>> I'm still investigating the details ... any help is appreciated. >>> >>> BR >>> Andreas Lehmkühler >
