AntennaHouse / pdf5-ml

Antenna House PDF5-ML DITA-OT Plug-in
23 stars 9 forks source link

Question: PDF document properties from bookmap metadata #152

Closed steinbacher01 closed 4 years ago

steinbacher01 commented 4 years ago

When publishing a PDF, is it possible to generate PDF document properties from bookmap metadata? Does AntennaHouse provide any instruction or support for this?

PDF-documentProperties

Currently our authors have to perform an additional post-process step to add this information manually.

Thanks,

Leroy Steinbacher

ToshihikoMakita commented 4 years ago

Yes, AH Formatter can output document properties. The method is described at follwoing URL:

https://www.docs.antennahouse.com/formatter/ahf-ext.html#document-info

steinbacher01 commented 4 years ago

Thanks for the link. I tried to test this by adding fo:declarations to dita2fo_main.xsl.

fodeclarations

I'm seeing the declarations in the published bm_test.fo file.

bm_test fo

But document properties are not showing up in the PDF.

documentProperties

Any suggestions?

I'm attaching a zip of my sample.

Thanks,

Leroy

bm_test.zip

ToshihikoMakita commented 4 years ago

fo:declaration should be located after fo:layout-master-set and before fo:bookmark-tree. See 6.4.2 fo:root in XSL 1.1 recommendation. I attached revised example.

2020-07-16-1

bm_test_indent_2020-07-16.zip

steinbacher01 commented 4 years ago

Thank you for the answer. This is working for me now.

Leroy