Try the fastest and simplest way to install ONLYOFFICE

Convert .docx to .docbuilder script

Convert .docx to .docbuilder script

Postby mmeyer » Mon Feb 26, 2018 5:36 am

The "Document Builder" can open an existing .docx file.
Is is possible to save the result als .docbuilder script?

Or are there other possibilities to convert a .docx file to a .docbuilder script?

Regards,
Michael
mmeyer
 
Posts: 9
Joined: Fri Feb 23, 2018 8:21 am

Re: Convert .docx to .docbuilder script

Postby Maxim » Mon Feb 26, 2018 12:56 pm

Hello mmeyer!
Why do you need this "to save the result als .docbuilder script"? What for?
Maxim
 
Posts: 1561
Joined: Tue Oct 11, 2016 2:34 pm

Re: Convert .docx to .docbuilder script

Postby mmeyer » Mon Feb 26, 2018 2:15 pm

Hello Maxim

Our client wants to allow administrators to create letter templates using word (docx).
These templates will contain placeholders (e.g. ${recipientAddress})

When a normal user opens such a letter template in OnlyOffice the placeholders should be replaced automatically. Instead of ${recipientAddress} the user sees an actual address.

Since find/replace is not supported by Document Builder, I thought this might be a possible workaround:
- Convert the docx template to a docbuilder script
- Use java to replace the placeholders with a script snipped for the actual address
- Use Document Builder to convert the script to a new word document
- Open the new word document in OnlyOffice and allow the user to perform additional edit operations
mmeyer
 
Posts: 9
Joined: Fri Feb 23, 2018 8:21 am

Re: Convert .docx to .docbuilder script

Postby Maxim » Mon Feb 26, 2018 3:48 pm

Hello mmeyer!
I understand that it will be very helpful to create docs (templates) very fast, but Document Server cannot convert .docx to .docbuilder script
Maxim
 
Posts: 1561
Joined: Tue Oct 11, 2016 2:34 pm


Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 2 guests