Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Oct 24, 2016 8:42 am

Hi

I'm using Spire.Doc (community edition, v5.7) to convert docx files to pdfs. How can I enable hyphenation for the generated pdf?
I'm converting files in different languages. How does Spire.Doc determine the correct language for hyphenation?

Thanks
John

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Mon Oct 24, 2016 8:48 am

Hi John,

Thanks for your inquiry.
Please try to use thread to set the current culture. If there is still issue, please provide us your sample document and more information.
Code: Select all
            CultureInfo cc = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
            Document doc = new Document();
            ...
            Thread.CurrentThread.CurrentCulture = cc;


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Oct 24, 2016 9:31 am

Hi

Thanks for your reply. Unfortunately it still doesn't work.

I attached a little c# project which illustrates my issue. It contains a template.docx with a bookmark. The code replaces the bookmark with some content and saves the document as pdf. I want the created pdf to have hyphenated text but currently nothing happens.

Thanks
John

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Tue Oct 25, 2016 3:05 am

Hi John,

Thanks for your detailed information.
Sorry that at present Spire.Doc doesn't achieve that, but we had added this new feature. Once it is done, we will infrom you.
In addition, there is another solution which maybe meets your requirement. Please try to use the latest Spire.Doc Pack Version:5.8, and I have attached the result screenshot for your reference.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 26, 2016 7:03 am

Hi Betsy

Thanks for the suggested workaround, but I can't see any difference. The attatached screenshot is made with Spire Doc 5.8 and still looks exactly the same. Do I have to actvivate something in order to achieve your result? Is there a community edition available for 5.8?

Thanks
John

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Wed Oct 26, 2016 7:18 am

Hi John,

Thanks for your response.
Please make sure the version you were using is correct as below.
Spire.Doc.dll V5.8.0.3040
Spire.Pdf.dll V3.8.20.3040
Spire.License.dll V1.3.5.40

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 26, 2016 7:29 am

Hi Betsy

I double checked it. This are exactly the versions I'm using.

Thanks
John

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Wed Oct 26, 2016 8:06 am

Hi John,

Thanks for checking.
Please provide us the result document you generated with Spire.Doc V5.8, and then we will look into it.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 26, 2016 8:46 am

Hi Betsy

Here you go.

Thanks
John

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Wed Oct 26, 2016 9:13 am

Hi John,

Thanks for your document.
We found you embed the Open Sans font, and the measurement length is different with the Arial font I used.
I am afraid the issue only can be fixed after the new featrue is done. We will inform you when the new feature is supported.
So sorry for inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 26, 2016 11:13 am

Hi Betsy

Thanks for your reply. Do you already have a schedule, when it approximately will be available? Will it be available for the community edition as well?

Thanks
John
Last edited by the.real.john.mcclane on Thu Oct 27, 2016 7:26 am, edited 1 time in total.

the.real.john.mcclane
 
Posts: 6
Joined: Mon Oct 24, 2016 8:35 am

Thu Oct 27, 2016 1:47 am

Hi John,

Thanks for your prompt reply.
Sorry that we cannot give you an ETA, our Dev team is working on it. We will let you know once there is any great progress.
In addition, the new feature will be included in commercial version.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Aug 22, 2017 1:10 pm

Dear Suppor Team

Is there any news about the hyphenation Integration?

Thanks & Regards
Andreas

andreas.iseli@gmx.net
 
Posts: 3
Joined: Tue Feb 14, 2017 2:48 pm

Wed Aug 23, 2017 1:56 am

Hello Andreas Iseli,

Thanks for your inquiry.
Sorry there's no significant progress due to the compelxity.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Jul 04, 2018 8:06 am

Hello Jane

Nearly one year later I'm going to say thanks for your reply :)

And I'm coming back with the same question: Is there any progress on the hyphenation? I've download the latest version available for our license subscription, but it is still not working.

* Spire.Doc: 6.5.10.4040
* Spire.Pdf: 4.5.3.2040
* Spire.License: 1.3.6.40

We are struggling also with different other issues (using Arial), even when hyphenation in Word is disabled:

* The first sentence of a next page is moved as last line to the previous page
* When heading 1 starts with 0. (and not 1.) then the 0. is no more rendered (but was working with an older version)

Can you still assist even when our 1 year subscription has expired? Need also to double check internal how much of content we can provide to you for double checking the problems.

Thanks,
Andreas

andreas.iseli@gmx.net
 
Posts: 3
Joined: Tue Feb 14, 2017 2:48 pm

Return to Spire.Doc