[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] .docx Export
Hi Dennis,
I think you should be able to achieve this.
It's similar to the way the OpenOffice / Coversheets works.
That's normally configured to export as a PDF, but it first takes an OpenOffice document (your branded template), and replaces tags (like '##TITLE##') with rendered content.
These are the tags:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fcoversheets%2Fblob%2Fmaster%2Fcfg%2Fcfg.d%2Fz_coversheet_tags.pl&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C919fefcb20f54f20cbf508d824d5d6e0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=H1Gh2AI9fPD4R9sQktRN%2Fox%2BVPftUMdp4rHbAdRevY8%3D&reserved=0
and this adds them to the OpenOffice document:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprintsug%2Fcoversheets%2Fblob%2Fmaster%2Flib%2Fplugins%2FEPrints%2FPlugin%2FConvert%2FAddCoversheet.pm%23L114-L127&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C919fefcb20f54f20cbf508d824d5d6e0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=qOhTuLu7XnC22u5QJKW%2Fd14Ixik%2Fh8V5tBhz%2FQ5JrIo%3D&reserved=0
Does that help?
There are probably other ways - possibly other perl modules that would allow a more direct approach - but the above stuff seems to work OK.
I'm using it with LibreOffice rather than OpenOffice if that's useful to know too.
Cheers,
John
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Dennis M?ller via Eprints-tech
Sent: 10 July 2020 14:15
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] .docx Export
Hi everyone,
we've had a user request for exporting views/searches as a .docx file
styled in our corporate design. Has anyone ever done something similar?
Just for the file format, it might work to "wrap" a simple text export
in an exporter that has a
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" mimetype,
but I don't see where I could slip in the design template along the way.
I'd be glad to hear from your experiences. :)
Best regards
Dennis
--
Dennis M?ller, B.A.
Universit?t Mannheim
Universit?tsbibliothek
Digitale Bibliotheksdienste | Schloss Schneckenhof West | 68131 Mannheim
Tel: +49 621 181-3023
E-Mail: dennis.mueller at bib.uni-mannheim.de
Web: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.bib.uni-mannheim.de%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C919fefcb20f54f20cbf508d824d5d6e0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=xpQOSRuHyOmGynxWziZKiQCpGeyFz0fELYnadpHnqto%3D&reserved=0