I also thought that it was optional. But after Callas reports I notice that
the ISO docs say "SHALL HAVE":

chapter "6.8.3.3 Structure hierarchy":

"Each structure element dictionary in the structure hierarchy *shall
have* a Type entry with the name value of StructElem."

Once again, thanks for your help.

2010/11/3 1T3XT info <i...@1t3xt.info>

> On 3/11/2010 8:56, jmrrva wrote:
> > Hello,
> >
> > By  the way, I sent a fix some days ago related to the PDF/A conformance:
> >
> >
> http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg53900.html
> >
> > It is a very minor modification to PdfStructureElement.java.
>
> I think the Type is Optional, but... I've added it anyway.
>
> Modified Paths:
> --------------
>     trunk/src/core/com/itextpdf/text/pdf/PdfName.java
>     trunk/src/core/com/itextpdf/text/pdf/PdfStructureElement.java
>
> Modified: trunk/src/core/com/itextpdf/text/pdf/PdfName.java
> ===================================================================
> --- trunk/src/core/com/itextpdf/text/pdf/PdfName.java   2010-11-02
> 18:10:59 UTC (rev 4617)
> +++ trunk/src/core/com/itextpdf/text/pdf/PdfName.java   2010-11-03
> 09:27:04 UTC (rev 4618)
> @@ -1475,6 +1475,11 @@
>      public static final PdfName STRF = new PdfName("StrF");
>      /** A name */
>      public static final PdfName STRIKEOUT = new PdfName("StrikeOut");
> +    /**
> +     * A name.
> +     * @since iText 5.0.6
> +     */
> +    public static final PdfName STRUCTELEM = new PdfName("StructElem");
>      /** A name */
>      public static final PdfName STRUCTPARENT = new
> PdfName("StructParent");
>      /** A name */
>
> Modified: trunk/src/core/com/itextpdf/text/pdf/PdfStructureElement.java
> ===================================================================
> --- trunk/src/core/com/itextpdf/text/pdf/PdfStructureElement.java
> 2010-11-02 18:10:59 UTC (rev 4617)
> +++ trunk/src/core/com/itextpdf/text/pdf/PdfStructureElement.java
> 2010-11-03 09:27:04 UTC (rev 4618)
> @@ -73,6 +73,7 @@
>          init(parent, structureType);
>          this.parent = parent;
>          put(PdfName.P, parent.reference);
> +        put(PdfName.TYPE, PdfName.STRUCTELEM);
>      }
>
>      /**
> @@ -84,6 +85,7 @@
>          top = parent;
>          init(parent, structureType);
>          put(PdfName.P, parent.getReference());
> +        put(PdfName.TYPE, PdfName.STRUCTELEM);
>      }
>
>      private void init(PdfDictionary parent, PdfName structureType) {
>
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
> ------------------------------------------------------------------------------
> Achieve Improved Network Security with IP and DNS Reputation.
> Defend against bad network traffic, including botnets, malware,
> phishing sites, and compromised hosts - saving your company time,
> money, and embarrassment.   Learn More!
> http://p.sf.net/sfu/hpdev2dev-nov
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> 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
>
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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 via email to