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.

Fri Apr 24, 2015 1:05 pm

Hello

We are using the Spire.Doc component to open existing RTF files and save them as PDF.
These RTF sometimes include INCLUDEPICTURE tags pointing to a picture file on a network drive. The saved PDF should then correctly display the picture from the path.
The Tag looks like this:

{ INCLUDEPICTURE "C:\Test\picture_1.jpg" \d \* MERGEFORMAT \x \y}

It seems this works fine unless one of the folders in the file path starts with a number. For example:

This works:
{ INCLUDEPICTURE "C:\Test\a1\picture_1.jpg" \d \* MERGEFORMAT \x \y}

This doesn't work:
{ INCLUDEPICTURE "C:\Test\1a\picture_1.jpg" \d \* MERGEFORMAT \x \y}

DLL Versions being used:
Spire.Doc.dll 5.3.71.3040
Spire.Pdf.dll 3.2.146.3040


Thank you for your help
Nicolas

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Mon Apr 27, 2015 8:21 am

Hello,

Thanks for your inquiry.
Please provide the RTF document and code you used for our testing.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Mon Apr 27, 2015 9:40 am

The attached zip file contains a test RTF and pictures in folders with the includepicture tags pointing to those pictures with relative paths.

The code used for testing is very simple and looks basically like this:

Code: Select all
            using (Spire.Doc.Document doc = new Spire.Doc.Document())
            {
                try
                {
                    doc.LoadFromFile(inputFilePath, FileFormat.Rtf);
                    doc.SaveToFile(outputFilePath, FileFormat.PDF);
                }
                catch (Exception)
                {
                    throw;
                }
                finally
                {
                    doc.Close();
                }
            }

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Tue Apr 28, 2015 2:09 am

Dear Nicolas,

Thanks for sharing.
I have reproduced the issue and posted it to our dev team. We will inform you when it is resolved.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed May 06, 2015 7:17 am

Thanks for your reply.

Do you have an ETA on when this could be fixed? It is somewhat urgent for us.

Regards

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Wed May 06, 2015 8:54 am

Hello,

Sorry for long silence.
There is a temporary version which resolves your issue, please download it from the following link and have a try:
http://www.e-iceblue.com/downloads/temp ... 5.4.12.zip

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu May 07, 2015 7:08 am

Hello,

Has your issue been resolved? Could you please give us some feedback at your convenience?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu May 07, 2015 1:28 pm

Yes it seems to work now, thanks for the short response time.

We are using the Spire.Doc NuGet package in our project, do you know when this is going to be updated with this fixed version?

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Fri May 08, 2015 2:47 am

Hello,

Thanks for your response.
We will update the information on the NuGet after this fixed version is released.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri May 08, 2015 8:31 am

Do you have an ETA on a new release / when the NuGet package is going to be updated?

Thank you.

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Mon May 11, 2015 2:29 am

Hello,

Sorry that I can’t give you an ETA on a new release. But we will inform you when a new version is released.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed May 13, 2015 6:13 am

Hello,

Now, the Spire.Doc Pack Version:5.4.15 has been released, please download it from the following link and have a try:
http://www.e-iceblue.com/Download/downl ... t-now.html
If there are any questions or needs, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri May 22, 2015 8:31 am

Hello

Thank you very mutch, this works correctly now! I appreciate the quick turnaround.

However we have run into another problem with these picture file paths.
It seems that the picture also wont be displayed in the PDF when the file path points to a server instead of a drive letter.
Example:

Assuming i have mapped a network drive "Z:" pointing to a folder named "Images" on the server "SERVER01"

If I use this filepath in the INCLUDEPICTURE tag then the picture is correctly displayed in the PDF:
Z:\picture_1.jpg

But this doesn't work:
\\SERVER01\Images\picture_1.jpg

Can you reproduce this? If possible we need this to be fixed as well, we have a setup where this is required.

Thank you

BSD
 
Posts: 13
Joined: Wed Feb 04, 2015 3:42 pm

Fri May 22, 2015 9:37 am

Hello,

Thanks for your feedback.
I have reproduced your issue and posted it to our dev team. We will inform you when it is fixed.

Sincerely
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri May 29, 2015 9:19 am

Hello,

Sorry for keep you waiting.
Now the issue has been resolved, and the newest hotfix of Spire.Doc has been released.Please download the Spire.Doc Pack(hot fix) Version:5.4.25 from the following link and have a try:
http://www.e-iceblue.com/Download/downl ... t-now.html

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc