You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Virginjus Kandrotas <vk...@yahoo.com> on 2010/06/30 11:30:48 UTC

Re: AW: “CIDset in subset font is incomplete” error by pdf/a-1b validation

Hallo Jeremias,

you are right only one issue in current trunk is XMP dc:date serialization. I have found the error in source code “org.apache.xmlgraphics.xmp.XMPSchemaAdapter” class and fixed it for me. Here is my changes:

protected void addObjectToArray(String propName, Object value, XMPArrayType arrayType) {
        if (value == null) {
            throw new IllegalArgumentException("Value must not be null");
        }
        QName name = getQName(propName);
        XMPProperty prop = meta.getProperty(name);
        if (prop == null) {
            prop = new XMPProperty(name, value);
            prop.convertSimpleValueToArray(arrayType);
            meta.setProperty(prop);
        } else {
            prop.convertSimpleValueToArray(arrayType);
            prop.getArrayValue().add(value);
        }
    }

the problem was that the first value was added as simple XMPProperty, not an array. I don't now how it can effect rest code, but for me it works and now pdf/a-1b is valid against adobe validator.

Best regards,

Virginijus

--- Jeremias Maerki <de...@jeremias-maerki.ch> schrieb am Di, 29.6.2010:

> Von: Jeremias Maerki <de...@jeremias-maerki.ch>
> Betreff: Re: AW: “CIDset     in subset font is incomplete”     error by pdf/a-1b validation
> An: fop-users@xmlgraphics.apache.org
> Datum: Dienstag, 29. Juni, 2010 10:44 Uhr
> Virginijus,
> 
> the XMP issue and the font issue are two completely
> different issues.
> In the screenshots you posted I couldn't see any indication
> that
> Acrobat was complaining about fonts even though it was
> embedded as a
> subset. At the moment, the only issue I'm seeing is
> Bugzilla #49499.
> 
> On 25.06.2010 15:24:05 Virginjus Kandrotas wrote:
> > Hi Jeremias,
> > 
> > does it mean that with current fop 0.95 version and
> trunk it is not
> > possible to create valid pdf/a-1b document and only
> one possibility is
> > work around with ansi encoded fonts what adds extra
> document sizes?
> > 
> > regards,
> > 
> > Virginijus 
> > 
> > --- Jeremias Maerki <de...@jeremias-maerki.ch>
> schrieb am Fr, 25.6.2010:
> > 
> > > Von: Jeremias Maerki <de...@jeremias-maerki.ch>
> > > Betreff: Re: AW: “CIDset    in subset
> font is incomplete”    error by pdf/a-1b
> validation
> > > An: fop-users@xmlgraphics.apache.org
> > > Datum: Freitag, 25. Juni, 2010 11:46 Uhr
> > > Virginjus,
> > > 
> > > yes, I agree with them after reviewing the XMP
> spec from
> > > 2008. I
> > > originally wrote the XMP support with the spec
> from
> > > September where the
> > > requirement for the arrays were not explicit. On
> the web,
> > > you can find
> > > various examples where dc:date is not used in an
> rdf:Seq. I
> > > wrote the
> > > XMP parser so it can handle both cases. So
> Adobe's
> > > implementation is
> > > a bit picky then.
> > > 
> > > I've opened a Bugzilla issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=49499
> > > No promises when I get to it, though.
> > > 
> > > Thanks for following up with Adobe. I've never
> had any luck
> > > so I've
> > > pretty much given up on that front.
> > > 
> > > On 25.06.2010 09:34:58 Virginjus Kandrotas
> wrote:
> > > > Hello Jeremias,
> > > > 
> > > > I have discussed my problem with Adobe
> developers on
> > > Adobe support site. They found that my dc:date in
> my pdfa
> > > document has wrong value. By the XMP
> specification 
> > > dc:date should become seq Date value, but fop
> generates only
> > > Date value.  For example actual dc:date looks
> like :
> > > >
> > >
> <dc:date>2010-06-22T13:58:12+02:00</dc:date>,
> > > > 
> > > > valid should be: 
> > > > <dc:date>
> > > >         <rdf:Seq>
> > > 
> > > >       
> > >
>    <rdf:li>2010-06-22T13:58:12+02:00</rdf:li>
> > > 
> > > >     
> > >    </rdf:Seq>
> > > >       </dc:date>
> > > > 
> > > > do you agree with them, if yes can you
> please fix it
> > > in Trunk ?
> > > > 
> > > > Regards,
> > > > 
> > > > Virginijus
> > > > 
> > > > --- Jeremias Maerki <de...@jeremias-maerki.ch>
> > > schrieb am Di, 22.6.2010:
> > > > 
> > > > > Von: Jeremias Maerki <de...@jeremias-maerki.ch>
> > > > > Betreff: Re: AW: “CIDset   in
> > > subset font is incomplete”   error by
> > > pdf/a-1b validation
> > > > > An: fop-users@xmlgraphics.apache.org
> > > > > Datum: Dienstag, 22. Juni, 2010 18:25
> Uhr
> > > > > Virginijus,
> > > > > 
> > > > > earlier, you were talking about
> problems with the
> > > font, but
> > > > > the only
> > > > > thing Acrobat 9.2 seems to bark at is
> some
> > > problem in the
> > > > > XMP metadata.
> > > > > And that one, I believe, is bogus.
> "dc:date" is
> > > part of the
> > > > > XMP
> > > > > specification and therefore not
> considered an
> > > extension
> > > > > schema, so FOP
> > > > > does not have to generate any extension
> schema
> > > > > information.
> > > > > 
> > > > > I don't know if it's related but I had
> trouble
> > > using a
> > > > > private XMP
> > > > > extension schema (without PDF/A) when
> opening the
> > > PDF in
> > > > > Acrobat Reader
> > > > > 9.x whereas Acrobat Reader 8.x opened
> the file
> > > without
> > > > > problems. In the
> > > > > end I don't trust Acrobat at all. New
> versions
> > > fix old
> > > > > problems and
> > > > > introduce new ones. It's one big mess.
> > > > > 
> > > > > So, what does pdfaPilot say?
> > > > > 
> > > > > On 22.06.2010 16:47:40 Virginjus
> Kandrotas
> > > wrote:
> > > > > > Hello Jeremias,
> > > > > > 
> > > > > > I have tested pdfa function with
> the files
> > > you
> > > > > attached. Unfortunately
> > > > > > validation result is the same as
> with my own
> > > fo input
> > > > > and configuration
> > > > > > files. We are using Adobe
> Profesional 9.2
> > > Version. see
> > > > > validation
> > > > > > result screen-shots and generated
> PDF in
> > > attachments.
> > > > > > 
> > > > > > Regards,
> > > > > > 
> > > > > > Virginijus
> > > > > > 
> > > > > > --- Jeremias Maerki <de...@jeremias-maerki.ch>
> > > > > schrieb am Di, 22.6.2010:
> > > > > > 
> > > > > > > Von: Jeremias Maerki <de...@jeremias-maerki.ch>
> > > > > > > Betreff: Re: AW: “CIDset 
> in subset
> > > font
> > > > > is incomplete”  error by pdf/a-1b
> validation
> > > > > > > An: fop-users@xmlgraphics.apache.org
> > > > > > > Datum: Dienstag, 22. Juni,
> 2010 14:41
> > > Uhr
> > > > > > > On 22.06.2010 12:30:03
> Virginjus
> > > > > > > Kandrotas wrote:
> > > > > > > > Hello FOP team,
> > > > > > > > 
> > > > > > > > I just downloaded
> current FOP
> > > Trunk.
> > > > > Unfortunately the
> > > > > > > problem
> > > > > > > > regarding validation
> against Adobe
> > > Preflight
> > > > > and
> > > > > > > “pdfaPilot” still exist.
> Using
> > > > > > > > my workaround with ansi
> fonts is
> > > working,
> > > > > but this
> > > > > > > option increase each
> > > > > > > > pdf output document at 
> ~180 kb.
> > > Can you
> > > > > please
> > > > > > > explain dthis behavior?
> > > > > > > 
> > > > > > > With Ansi encoding the
> complete font is
> > > embedded.
> > > > > With
> > > > > > > Unicode (CID)
> > > > > > > encoding, only the subset of
> characters
> > > you
> > > > > really use is
> > > > > > > embedded.
> > > > > > > 
> > > > > > > > Why standard pdfa-1b fop
> font
> > > encoding is
> > > > > still not
> > > > > > > working ? Have you
> > > > > > > > ever tested you pdfa-1b
> output
> > > documents
> > > > > against
> > > > > > > Acrobat Preflight, if
> > > > > > > > yes, can you please send
> me
> > > working
> > > > > exmaple.fo and
> > > > > > > fop.xconf ?
> > > > > > > 
> > > > > > > The PDF generated by the
> attached
> > > example runs
> > > > > through
> > > > > > > Acrobat Prof.
> > > > > > > 8.1.2 as my colleague tells
> me.
> > > > > > > 
> > > > > > > > Best regards,
> > > > > > > > 
> > > > > > > > Virginijus
> > > > > > > > 
> > > > > > > > --- Virginjus Kandrotas
> <vk...@yahoo.com>
> > > > > > > schrieb am Do, 15.4.2010:
> > > > > > > > 
> > > > > > > > > Von: Virginjus
> Kandrotas
> > > <vk...@yahoo.com>
> > > > > > > > > Betreff: “CIDset
> in subset
> > > font is
> > > > > > > incomplete” error by
> pdf/a-1b
> > > validation
> > > > > > > > > An: fop-users@xmlgraphics.apache.org
> > > > > > > > > Datum: Donnerstag,
> 15. April,
> > > 2010
> > > > > 10:25 Uhr
> > > > > > > > > Hello,
> > > > > > > > > 
> > > > > > > > > I am trying to use
> fop 0.95
> > > to generate
> > > > > pdf/a-1b
> > > > > > > conform
> > > > > > > > > documents. By
> validating
> > > created pdf
> > > > > document
> > > > > > > > > against   
> > > > > > > > > “callas
> pdfaPilot“ online
> > > demo
> > > > > version  http://www.datalogics.com/products/callas/callaspdfA-onlinedemo.asp
> > > > > > > > > as well Acrobat
> Professional
> > > Preflight
> > > > > function I
> > > > > > > am getting
> > > > > > > > > following error:
> > > > > > > > > 
> > > > > > > > > “CIDset in subset
> font is
> > > incomplete
> > > > > (1 match
> > > > > > > on 1 page)
> > > > > > > > > 
> > > > > > > > > Text Gladiator,Bold
> 12.0 pt
> > > TrueType
> > > > > (CID)
> > > > > > > embedded (as a
> > > > > > > > > subset) (1
> match)”
> > > > > > > > > 
> > > > > > > > > As example fo input
> file I am
> > > using fop
> > > > > 0.95
> > > > > > > > >
> > > test/xml/pdf-a/minimal-pdf-a.fo and
> > > > > > > test/test.xconf config
> > > > > > > > > file.
> > > > > > > > > 
> > > > > > > > > Can anybody explain
> what is
> > > wrong here
> > > > > ? 
> > > > > > > > > 
> > > > > > > > > Best Regards,
> > > > > > > > > 
> > > > > > > > > Virginijus
> > > > > > > > > 
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> __________________________________________________
> > > > > > > > > Do You Yahoo!?
> > > > > > > > > Sie sind Spam leid?
> Yahoo!
> > > Mail
> > > > > verfügt über
> > > > > > > einen
> > > > > > > > > herausragenden
> Schutz gegen
> > > > > Massenmails. 
> > > > > > > > > http://mail.yahoo.com
> > > > > > > > > 
> > > > > > > > >
> > > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe,
> e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > > > > > > > > For additional
> commands,
> > > e-mail: fop-users-help@xmlgraphics.apache.org
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > >
> > > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> fop-users-unsubscribe@xmlgraphics.apache.org
> > > > > > > > For additional commands,
> e-mail:
> > > fop-users-help@xmlgraphics.apache.org
> > > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > Jeremias Maerki
> > > > > > > 
> > > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > > > > > > For additional commands,
> e-mail: fop-users-help@xmlgraphics.apache.org
> > > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Jeremias Maerki
> > > > > 
> > > > > 
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > > > > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > > > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > > > 
> > > 
> > > 
> > > 
> > > 
> > > Jeremias Maerki
> > > 
> > > 
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > > 
> > > 
> > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > 
> 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org