I tried to Copy&Paste metadata example from

http://xmlgraphics.apache.org/fop/0.95/metadata.html#xmp-example

and still it is insufficient input for iText. Attached is my current FO and PDF 
with metadata from above URL. I also tried to add

x:xmptk="3.1-702"

attribute to the "x:xmpmeta" element and still nothing. I also mentioned in 
Apache FOP change log, that there were some changes about metadata, but...

Stepan

> ------------ Původní zpráva ------------
> Od: Stéphane Vilboux <[EMAIL PROTECTED]>
> Předmět: Re: [iText-questions] iText 2.1.3: Invalid byte 1 of 1-byte UTF-8
> sequence Exception while processing PDF from Apache FOP 0.95
> Datum: 04.11.2008 17:33:44
> ----------------------------------------
> Hello,
>
> Do you know a solution for this problem ?
>
> Cordialement,
>
> --
> Stéphane Vilboux
>
>
> > -----Message d'origine-----
> > De : Paulo Soares [mailto:[EMAIL PROTECTED]
> > Envoyé : mardi 4 novembre 2008 17:19
> > À : Post all your questions about iText here
> > Objet : Re: [iText-questions] iText 2.1.3: Invalid byte 1 of 1-byte
> > UTF-8 sequence Exception while processing PDF from Apache FOP 0.95
> >
> > The metadata generated by FOP is broken. They have:
> >
> > <x:xmpmeta>
> >
> > instead of:
> >
> > <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1-702">
> >
> > The namespace is not defined and the parser complains about it.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
>
> 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="A4-portrait" page-height="29.7cm" page-width="21.0cm" margin="2cm">
      <fo:region-body margin-top="6cm" />
      <fo:region-before extent="6cm" />
      <fo:region-after extent="1.5cm" />
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:declarations>
    <x:xmpmeta xmlns:x="adobe:ns:meta/">
      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
        <rdf:Description rdf:about=""
          xmlns:dc="http://purl.org/dc/elements/1.1/";>
          <!-- Dublin Core properties go here -->
          <dc:title>Document title</dc:title>
          <dc:creator>Document author</dc:creator>
          <dc:description>Document subject</dc:description>
        </rdf:Description>
        <rdf:Description rdf:about=""
          xmlns:xmp="http://ns.adobe.com/xap/1.0/";>
          <!-- XMP properties go here -->
          <xmp:CreatorTool>Tool used to make the PDF</xmp:CreatorTool>
        </rdf:Description>
      </rdf:RDF>
    </x:xmpmeta>
  </fo:declarations>
  
  <fo:page-sequence master-reference="A4-portrait" initial-page-number="1" force-page-count="no-force">
    <fo:flow flow-name="xsl-region-body">
      <fo:block font-family="Arial Narrow">příliš žluťoučký kůň úpěl ďábelské ódy</fo:block>
      <fo:block font-family="Arial Narrow">PŘÍLIŠ ŽLUŤOUČKÝ KŮŇ ÚPĚL ĎÁBELSKÉ ÓDY</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Attachment: source.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to