Quantcast

Support for merging PDFs and 508 Accessibility Tags

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Support for merging PDFs and 508 Accessibility Tags

dependablejoe
Is there any support, future, pending, current, or paid,  for retaining accessibility tags in PDF files when merging?

I am using iText 5.2.1.
I am using Java 1.6.0_26.


I have written code to merge two files, see source below.

Using Adobe Reader Pro X, I have verified that my two source files have accessibility tags and that the resultant file does not have the tags.



import java.io.*;
import java.util.*;


import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfStamper;
import com.itextpdf.text.pdf.PdfCopyFields ;
import com.itextpdf.text.pdf.AcroFields;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.XfaForm;
import com.itextpdf.text.pdf.PdfCopy;
import com.itextpdf.text.pdf.PdfImportedPage;


public class itext
{
        public itext() {};

        public void doAppend()
        {
                try {

                        PdfReader reader1 = new PdfReader ("file1.pdf");
                        PdfReader reader2 = new PdfReader ("file2.pdf");

                        PdfCopyFields copy = new PdfCopyFields(new FileOutputStream ("aNewPDF.pdf"));

                        copy.addDocument(reader1);
                        copy.addDocument(reader2);

                        copy.close();
                }
                catch(Exception de)
                {
                        System.out.println("exception: " + de.toString());
                }
        }

        public static void main (String[] argv)
        {
                itext itext = new itext();

                itext.doAppend();
        }
}





James Gittelson, CSC Team
SPAS Program, Software Engineer

800 K St, NW, Suite 1100; Washington, DC 20005
North American Public Sector | Office: 202.906.8507 | fax: 202.741.4206 |
www.csc.com
[hidden email]


This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Support for merging PDFs and 508 Accessibility Tags

iText Info
Op 5/06/2012 22:51, James Gittelson schreef:
Is there any support, future, pending, current, or paid,  for retaining accessibility tags in PDF files when merging?

That would be a question for our paid professional services.

In tagged PDF, there is a StructTreeRoot that can be consulted to find the complete structure of a document.
From this structured tree, there are references to the corresponding content.
This is done using "Marked Content" operators in the content stream.

Merging these different structures probably isn't impossible, but it's not that trivial either.
Do you want iText Professional Services to make an assessment of the time it would take to implement this?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Support for merging PDFs and 508 Accessibility Tags

Leonard Rosenthol-3

If you are simply appending entire documents, then it’s fairly straightforward (though not trivial).  Page range insertion (or deletion) of tags is quite complex.

 

Leonard

 

From: iText Info [mailto:[hidden email]]
Sent: Wednesday, June 06, 2012 4:26 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Support for merging PDFs and 508 Accessibility Tags

 

Op 5/06/2012 22:51, James Gittelson schreef:

Is there any support, future, pending, current, or paid,  for retaining accessibility tags in PDF files when merging?


That would be a question for our paid professional services.

In tagged PDF, there is a StructTreeRoot that can be consulted to find the complete structure of a document.
From this structured tree, there are references to the corresponding content.
This is done using "Marked Content" operators in the content stream.

Merging these different structures probably isn't impossible, but it's not that trivial either.
Do you want iText Professional Services to make an assessment of the time it would take to implement this?


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Support for merging PDFs and 508 Accessibility Tags

dependablejoe
In reply to this post by dependablejoe
>If you are simply appending entire documents, then it's fairly straightforward (though not
>trivial).  Page range insertion (or deletion) of tags is quite complex.

>Leonard



Yes, I just have documents, which are both tagged, and want to simply append one to the other.


>then it's fairly straightforward (though not trivial)


Straightforward and non-trivial sound fine to me.  Can you point me in the right direction to get started?



>Do you want iText Professional Services to make an assessment of the time it would take to >implement this?

Not at this moment, thanks.




From: iText Info [
mailto:info@...]
Sent: Wednesday, June 06, 2012 4:26 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Support for merging PDFs and 508 Accessibility Tags

Op 5/06/2012 22:51, James Gittelson schreef:
Is there any support, future, pending, current, or paid,  for retaining accessibility tags in PDF files when merging?

That would be a question for our paid professional services.

In tagged PDF, there is a StructTreeRoot that can be consulted to find the complete structure of a document.
>From this structured tree, there are references to the corresponding content.
This is done using "Marked Content" operators in the content stream.

Merging these different structures probably isn't impossible, but it's not that trivial either.
Do you want iText Professional Services to make an assessment of the time it would take to implement this?



James Gittelson, CSC Team
SPAS Program, Software Engineer

800 K St, NW, Suite 1100; Washington, DC 20005
North American Public Sector | Office: 202.906.8507 | fax: 202.741.4206 |
www.csc.com
[hidden email]


This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Support for merging PDFs and 508 Accessibility Tags

Leonard Rosenthol-3

You will need to study the relevant sections of the PDF standard (ISO 32000-1:2008) to understand how the tagging/structure of PDF works.   Then you’ll need to modify the Appending capabilities of iText to handle the merging.  You might find that a special call is needed so that you do a block copy instead of page by page…

 

Leonard

 

From: James Gittelson [mailto:[hidden email]]
Sent: Wednesday, June 06, 2012 4:59 PM
To: [hidden email]
Subject: Re: [iText-questions] Support for merging PDFs and 508 Accessibility Tags

 

>If you are simply appending entire documents, then it's fairly straightforward (though not
>trivial).  Page range insertion (or deletion) of tags is quite complex.

>Leonard



Yes, I just have documents, which are both tagged, and want to simply append one to the other.


>then it's fairly straightforward (though not trivial)


Straightforward and non-trivial sound fine to me.  Can you point me in the right direction to get started?



>Do you want iText Professional Services to make an assessment of the time it would take to >implement this?

Not at this moment, thanks.




From: iText Info [
[hidden email].]
Sent: Wednesday, June 06, 2012 4:26 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Support for merging PDFs and 508 Accessibility Tags

Op 5/06/2012 22:51, James Gittelson schreef:
Is there any support, future, pending, current, or paid,  for retaining accessibility tags in PDF files when merging?

That would be a question for our paid professional services.

In tagged PDF, there is a StructTreeRoot that can be consulted to find the complete structure of a document.
>From this structured tree, there are references to the corresponding content.
This is done using "Marked Content" operators in the content stream.

Merging these different structures probably isn't impossible, but it's not that trivial either.
Do you want iText Professional Services to make an assessment of the time it would take to implement this?



James Gittelson, CSC Team
SPAS Program, Software Engineer

800 K St, NW, Suite 1100; Washington, DC 20005
North American Public Sector | Office: 202.906.8507 | fax: 202.741.4206 |
www.csc.com
[hidden email]


This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Support for merging PDFs and 508 Accessibility Tags

iText Info
In reply to this post by dependablejoe
Op 6/06/2012 22:58, James Gittelson schreef:

>then it's fairly straightforward (though not trivial)


Straightforward and non-trivial sound fine to me.  Can you point me in the right direction to get started?

What you'll need to do is very close to what is done when you merge bookmarks whilst concatenating documents.
If I'm not mistaken, you should already have received a mail from Frank Gielen regarding professional services.
We're already doing some work for CSC in Belgium. Frank would be happy to discuss what can be done.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Loading...