You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2024/01/26 20:16:00 UTC

[jira] [Comment Edited] (PDFBOX-2725) [PATCH] Split pdf lose accessibility tags

    [ https://issues.apache.org/jira/browse/PDFBOX-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17811383#comment-17811383 ] 

Tilman Hausherr edited comment on PDFBOX-2725 at 1/26/24 8:15 PM:
------------------------------------------------------------------

I had forgotten about my own comment, and in the last few days, I tried to understand what happens in /K and /ParentTree and even wrote some code for the splitter in the last few days. THEN I looked if there was an existing issue where a user had complained and found that there had been a patch almost 10 years ago, so this is a bit embarassing.

I tried Simons patch but couldn't work with it because many PDFBox API methods have been changed; the patch was for 1.8. It might still be useful, even more useful than what I did.

It's much larger than my code so I'm wondering whether I missed something, and if yes, what, or if it is large because it contains FOP-related code.
Here's an attempt to split pages 1 and 2 from  [^pdfWithAccessabilityTags.pdf] : [^pdfWithAccessabilityTags-p1-2.pdf] 

I don't have Adobe Acrobat or a screen reader, I have the free PDF-XChange Editor and my impression of the result is good. Can anybody look at the output?


was (Author: tilman):
I had forgotten about my own comment, and in the last few days, I tried to understand what happens in /K and /ParentTree and even wrote some code for the splitter in the last few days. THEN I looked if there was an existing issue where a user had complained and found that there had been a patch almost 10 years ago, so this is a bit embarassing.

I tried Simons patch but couldn't work with it because many calls have been changed; the patch was for 1.8. It might still be useful, even more useful than what I did.

It's much larger than my code so I'm wondering whether I missed something, and if yes, what, or if it is large because it contains FOP-related code.
Here's an attempt to split pages 1 and 2 from  [^pdfWithAccessabilityTags.pdf] : [^pdfWithAccessabilityTags-p1-2.pdf] 

I don't have Adobe Acrobat or a screen reader, I have the free PDF-XChange Editor and my impression is good. Can anybody look at the output?

> [PATCH] Split pdf lose accessibility tags
> -----------------------------------------
>
>                 Key: PDFBOX-2725
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2725
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities, Writing
>    Affects Versions: 2.0.0
>            Reporter: Simon Steiner
>            Priority: Major
>              Labels: StructureTree
>         Attachments: out.pdf, pdfWithAccessabilityTags-p1-2.pdf, pdfWithAccessabilityTags.pdf, splittagpdf.patch, splittagpdf_unittestFiles.zip
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFSplit out.pdf
> Adobe Reader says output "Tagged PDF: No"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org