You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Erik de Hair <e....@pocos.nl> on 2015/03/06 12:02:24 UTC
module-docx and fonts
Hi,
Anybody any experience with the docx-module and getting the right fonts?
I've embedded the fonts in the docx-template but they don't get picked
up during conversion. Also the layout of the smart tags is changed after
conversion (other font than when edited in MS Office).
Met vriendelijke groet,
*Erik de Hair*
Software Engineer | Pocos bv
Pocos bv
T: 088-0100713 <tel:088-0100713> | e.dehair@pocos.nl
<ma...@pocos.nl> | Sales: sales@pocos.nl
<ma...@pocos.nl> | Service: servicedesk@pocos.nl
<ma...@pocos.nl>
www.pocos.nl <http://www.pocos.nl/> | Croy 9c, 5653 LC Eindhoven | Kamer
van Koophandel 17097024 | btn_in_20x15
<https://www.linkedin.com/company/pocos?trk=prof-following-company-logo>
twitter <https://twitter.com/Pocosbv>
Re: module-docx and fonts
Posted by Erik de Hair <e....@pocos.nl>.
On 03/06/2015 12:16 PM, Dan Haywood wrote:
> On 6 March 2015 at 11:14, Erik de Hair <e....@pocos.nl> wrote:
>
>> On 03/06/2015 12:03 PM, Dan Haywood wrote:
>>
>>> Are you converting to PDF or just merging to .docx ?
>>>
>>> The pdf functionality is newly added, and I've also seen missing fonts...
>>> haven't yet explored.
>>>
>>> Merging to .docx generally seems to preserve them ok, though?
>>>
>>> Dan
>>>
>>> Hi Dan,
>> Merging to pdf. Merging to docx does work right.
>>
>>
> ok, so I'm glad the .docx merge works ok.
>
> With respect to .pdf, I'm afraid you'll have to dig into the docx4j
> documentation/implementation to see if there's any additional API we should
> be calling to ensure that fonts are properly preserved.
>
> Looks like the developer is quite responsive on stackoverflow, eg [1]
>
>
> [1]
> http://stackoverflow.com/questions/19495801/docx-conversion-to-pdf-in-korean-font
Hi Dan,
I managed to get some fonts working by registering a different font
mapper but there are still some fonts that won't get embedded. The
renderer gives an error for these fonts about missing font-embed-info. I
gave up for now and use a different solution. I will figure this out
later and if I find anything interesting I'll let you know.
Erik
>
>
>> By the way: I've created the docx-template on Windows but my application's
>> running on Linux.
>>
>> Erik
>>
Re: module-docx and fonts
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 6 March 2015 at 11:14, Erik de Hair <e....@pocos.nl> wrote:
> On 03/06/2015 12:03 PM, Dan Haywood wrote:
>
>> Are you converting to PDF or just merging to .docx ?
>>
>> The pdf functionality is newly added, and I've also seen missing fonts...
>> haven't yet explored.
>>
>> Merging to .docx generally seems to preserve them ok, though?
>>
>> Dan
>>
>> Hi Dan,
>
> Merging to pdf. Merging to docx does work right.
>
>
ok, so I'm glad the .docx merge works ok.
With respect to .pdf, I'm afraid you'll have to dig into the docx4j
documentation/implementation to see if there's any additional API we should
be calling to ensure that fonts are properly preserved.
Looks like the developer is quite responsive on stackoverflow, eg [1]
[1]
http://stackoverflow.com/questions/19495801/docx-conversion-to-pdf-in-korean-font
> By the way: I've created the docx-template on Windows but my application's
> running on Linux.
>
> Erik
>
Re: module-docx and fonts
Posted by Erik de Hair <e....@pocos.nl>.
On 03/06/2015 12:03 PM, Dan Haywood wrote:
> Are you converting to PDF or just merging to .docx ?
>
> The pdf functionality is newly added, and I've also seen missing
> fonts... haven't yet explored.
>
> Merging to .docx generally seems to preserve them ok, though?
>
> Dan
>
Hi Dan,
Merging to pdf. Merging to docx does work right.
By the way: I've created the docx-template on Windows but my
application's running on Linux.
Erik
Re: module-docx and fonts
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Are you converting to PDF or just merging to .docx ?
The pdf functionality is newly added, and I've also seen missing fonts...
haven't yet explored.
Merging to .docx generally seems to preserve them ok, though?
Dan
On 6 March 2015 at 11:02, Erik de Hair <e....@pocos.nl> wrote:
> Hi,
>
> Anybody any experience with the docx-module and getting the right fonts?
>
> I've embedded the fonts in the docx-template but they don't get picked up
> during conversion. Also the layout of the smart tags is changed after
> conversion (other font than when edited in MS Office).
>
> Met vriendelijke groet,
>
>
> *Erik de Hair*
>
> Software Engineer | Pocos bv
>
> [image: Pocos bv]
>
> T: 088-0100713 | e.dehair@pocos.nl | Sales: sales@pocos.nl |
> Service: servicedesk@pocos.nl
>
> www.pocos.nl | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
> 17097024 | [image: btn_in_20x15]
> <https://www.linkedin.com/company/pocos?trk=prof-following-company-logo> [image:
> twitter] <https://twitter.com/Pocosbv>
>
>