[ https://issues.apache.org/jira/browse/PDFBOX-5890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-5890: ------------------------------------ Description: While trying to answer the attached SO question, I noticed that the content stream had {{/P /Prop1 BDC}} instead of {{/P << /MCID 0 >> BDC}}. While I was able to fix the PDF so that the PAC test succeeded, PDF-XChange (which allows to see the structure tree in the free version) wasn't able to work with it. Thus we should favor using MCID directly instead of resource entries when possible, this will also make files smaller and easier to debug. I'm also adding a simplified method that passes the MCID directly. (was: While trying to answer the attached SO question, I noticed that the content stream had {{/P /Prop1 BDC}} instead of {{/P << /MCID 0 >> BDC}}. While I was able to fix the PDF so that the PAC test succeeded, PDF-XChange (which allows to see the structure tree in the free version) wasn't able to work with it. Thus we should favor using MCID directly instead of resource entries when possible, this will also make files smaller and easier to debug. I'm also adding a simplified method that uses the MCID directly.) > BDC sequence with resource reference instead of with MCID > --------------------------------------------------------- > > Key: PDFBOX-5890 > URL: https://issues.apache.org/jira/browse/PDFBOX-5890 > Project: PDFBox > Issue Type: Bug > Affects Versions: 2.0.32, 3.0.3 PDFBox > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Priority: Minor > Labels: StructureTree > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > > While trying to answer the attached SO question, I noticed that the content > stream had {{/P /Prop1 BDC}} instead of {{/P << /MCID 0 >> BDC}}. While I was > able to fix the PDF so that the PAC test succeeded, PDF-XChange (which allows > to see the structure tree in the free version) wasn't able to work with it. > Thus we should favor using MCID directly instead of resource entries when > possible, this will also make files smaller and easier to debug. I'm also > adding a simplified method that passes the MCID directly. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org