Re: AW: storing metadata

2002-10-28 Thread Paul . Hussein


The standard answer is to improve the functionality of FOP pdf generation
to rival the adobe products.

My motivation is to embed the FO that generated the PDF so I can edit
and/or regenerate the PDF.

Cheers

Paul.




J.U. Anderegg [EMAIL PROTECTED] on 24/10/2002 10:35:51

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  AW: storing metadata

Hi Paul,

Do you want to embed the XSL:FO input in the PDF document?

If this is so:
o embedding files in PDF is the thing to do, but quite a challenge to
build into the PDF renderer.
o out of pure curiosity: why?

Hansuli Anderegg



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: storing metadata

2002-10-28 Thread J.U. Anderegg
Hi Paul,

this is how Acrobat embeds files. Follow the indirect PDF object references:

5 0 obj

/Pages 2 0 R
/Type /Catalog
/Metadata 19 0 R
/Names 17 0 R --- add this entry

endobj

17 0 obj --- add this object

/EmbeddedFiles 18 0 R

endobj

18 0 obj --- add this object

/Names [ (?y M y D a t a)14 0 R ] --- relate internal name to file object

endobj

14 0 obj --- add this file object

/F (eink03.txt)
/Type /F
/EF  /F 15 0 R   --- file content reference

endobj

15 0 obj --- add file content
 /Filter [ /FlateDecode ] /Length 1913 /Type /EmbeddedFile /Params 
/CheckSum 0a9b1bb2b166ecefaaf4a9e028e70567/Size 9296 /CreationDate
(D:20020326101325)
/ModDate (D:20020326101330)
/Subtype /text#2Fplain 
stream
H??WM?$5??4y!/}a???8O
...
endstream
endobj

Question: why storing XSL:FO instead of XML + XSL - having the user edit XML
data and FOP reformat, repaginate the document?

Hansuli Anderegg
__

Metadata look like this:


19 0 obj
 /Type /Metadata /Subtype /XML /Length 1311 
stream
?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d' bytes='1311'?

rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
 xmlns:iX='http://ns.adobe.com/iX/1.0/'

 rdf:Description about=''
  xmlns='http://ns.adobe.com/pdf/1.3/'
  xmlns:pdf='http://ns.adobe.com/pdf/1.3/'
  pdf:CreatorDokument - WordPad/pdf:Creator
  pdf:CreationDate2002-10-28T14:03:58Z/pdf:CreationDate
  pdf:TitleDokument/pdf:Title
  pdf:AuthorAdministrator/pdf:Author
  pdf:ProducerAcrobat PDFWriter 5.0 for Windows NT/pdf:Producer
  pdf:ModDate2002-10-28T14:08:28+01:00/pdf:ModDate
 /rdf:Description

 rdf:Description about=''
  xmlns='http://ns.adobe.com/xap/1.0/'
  xmlns:xap='http://ns.adobe.com/xap/1.0/'
  xap:CreateDate2002-10-28T14:03:58Z/xap:CreateDate
  xap:Title
   rdf:Alt
rdf:li xml:lang='x-default'Dokument/rdf:li
   /rdf:Alt
  /xap:Title
  xap:AuthorAdministrator/xap:Author
  xap:ModifyDate2002-10-28T14:08:28+01:00/xap:ModifyDate
  xap:MetadataDate2002-10-28T14:08:28+01:00/xap:MetadataDate
 /rdf:Description

 rdf:Description about=''
  xmlns='http://purl.org/dc/elements/1.1/'
  xmlns:dc='http://purl.org/dc/elements/1.1/'
  dc:titleDokument/dc:title
  dc:creatorAdministrator/dc:creator
 /rdf:Description

/rdf:RDF
?xpacket end='r'?
endstream
endobj



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: storing metadata

2002-10-24 Thread J.U. Anderegg
Hi Paul,

Do you want to embed the XSL:FO input in the PDF document?

If this is so:
o embedding files in PDF is the thing to do, but quite a challenge to
build into the PDF renderer.
o out of pure curiosity: why?

Hansuli Anderegg



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]