pdf to docx font is missing

Get technical support of PDF Focus .Net in C# and VB.Net
victoria07indpro
Posts: 1
Joined: Fri Aug 19, 2022 10:31 am
Contact:

pdf to docx font is missing

Post by victoria07indpro »

Hello,

when we convert the pdf to docx, font is missing.
the font on pdf and the generated doc is not same.

is there any setting I need to add ?

Note: this issue is on our test server,
Test server details :
OS: Linux ubuntu
framework: .net core 2.

In my local machine everything is fine
Local machine details
OS: Windows 10
framework: .net core 2.
Oliver
Posts: 50
Joined: Wed Aug 19, 2020 11:59 am
Contact:

Re: pdf to docx font is missing

Post by Oliver »

Hi. It's happening, because Windows OS has some "WindowsFonts" , but LinuxOS - has not these fonts.
I may offer you to install MS Fonts in Linux OS inside:

Check the installed Fonts availability
Check that the directory with fonts "/usr/share/fonts/truetype" is exist.
Also check that it contains *.ttf files.
If you don't see this folder, make these steps:
1. Download the archive with *.ttf fonts: https://sautinsoft.com/components/fonts.tar
2. Uncompress the downloaded font’s archive to a directory and add it to the font path, a list of directories containing fonts:
# tar xvzf
3. Create a directory for new fonts
# mkdir /usr/share/fonts/truetype
4. Move the uncompressed font files to the new font directory
# mv *.ttf /usr/share/fonts/truetype
5. Navigate to the font directory
# cd /usr/share/fonts/truetype
6. Create fonts.scale and fonts.dir
# mkfontscale && mkfontdir
# fc-cache
7. Add the new font directory to the X11 font path
# chkfontpath --add /usr/share/fonts/truetype
8. Restart X font server
# /etc/rc.d/init.d/xfs restart
You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file.
If you do not have root access, copy the *.ttf to ~/.fonts directory instead.

Or you may install “Microsoft TrueType core fonts” using terminal and command:

$ sudo apt install ttf-mscorefonts-installer

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests