Page count return wrong output in CentOS

test.zip (9.6 KB)

In eclipse its giving pagecount = 2.
But in CentOS its giving pagecount = 1

Code :–>
Document document = new Document(filePath);
// find page count
documentData.setTotalNumberOfPages(document.getPageCount());

@rabin.samanta

Thanks for your inquiry. In case you are using old version of Aspose.Words, please upgrade to the latest version of Aspose.Words for Java 19.2. Please also make sure that Calibri font is installed on the machine where you are using Aspose.Words.

@tahir.manzoor

I am not able to import Documnet(import com.aspose.words.Document;)

import com.aspose.words.Document;
import com.aspose.words.TxtSaveOptions;

Its showing error

but it’s working fine in 18.11

com.aspose
aspose-words
18.11
jdk16

when i add 19.2 it’s showing error

com.aspose
aspose-words
19.2
jdk16

@rabin.samanta

Thanks for your inquiry. Perhaps, Aspose.Words for Java 19.2 has not installed properly at your end. Could you please share the screenshot of the error you are facing?

@tahir.manzoor

image.png (50.9 KB)

i upload my eclipse screenshot

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project Aspose: Compilation failure: Compilation failure:
[ERROR] error reading C:\Users\rabin.samanta.m2\repository\com\aspose\aspose-words\19.2\aspose-words-19.2-jdk16.jar; invalid CEN header (bad signature)
[ERROR] /D:/test/Aspose/asposeProject/Aspose/src/main/java/com/ver/utility/wordbuilder/WordBuilder.java:[57,24] cannot find symbol
[ERROR] symbol: method setExportHeadersFooters(boolean)
[ERROR] location: variable options of type com.aspose.words.TxtSaveOptions
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation

@tahir.manzoor
test (2).zip (10.2 KB)
check this .
in elcipse its rturn pagecount = 3
in centos its return pagecount = 2

@rabin.samanta

Thanks for your inquiry. We have tested the scenario at Linux operating system and have not found the shared issue. Please make sure that you have applied the license before getting the page count. Please also install the fonts that are used in your document on the machine where you are using Aspose.Words.

@tahir.manzoor
i already install font but its not working

[root@localhost ~]# fc-list
/usr/share/fonts/ucs-miscfixed/6x12.bdf: Fixed:style=SemiCondensed
/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/paratype-pt-sans/PTS76F.ttf: PT Sans:style=Bold Italic
/usr/share/fonts/default/Type1/c059016l.pfb: Century Schoolbook L:style=Bold
/usr/share/fonts/nhn-nanum/NanumGothicExtraBold.ttf: NanumGothicExtraBold,나눔고딕,NanumGothic:style=Regular,ExtraBold
/usr/share/fonts/ucs-miscfixed/6x13.bdf: Fixed:style=SemiCondensed
/usr/share/fonts/liberation/LiberationSerif-Italic.ttf: Liberation Serif:style=Italic
/usr/share/fonts/open-sans/OpenSans-Semibold.ttf: Open Sans,Open Sans Semibold:style=Semibold,Regular
/usr/share/fonts/msttcore/candaraz.ttf: Candara:style=Bold Italic
/usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf: DejaVu Serif:style=Italic
/usr/share/fonts/open-sans/OpenSans-LightItalic.ttf: Open Sans,Open Sans Light:style=Light Italic,Italic
/usr/share/fonts/msttcore/corbeli.ttf: Corbel:style=Italic
/usr/share/fonts/default/Type1/c059033l.pfb: Century Schoolbook L:style=Italic
/usr/share/fonts/ucs-miscfixed/10x20.bdf: Fixed:style=Regular
/usr/share/fonts/msttcore/timesbd.ttf: Times New Roman:style=Έντονα,Bold
/usr/share/fonts/nhn-nanum/NanumGothic.ttf: NanumGothic,나눔고딕:style=Regular
/usr/share/fonts/default/Type1/p052024l.pfb: URW Palladio L:style=Bold Italic
/usr/share/fonts/default/Type1/d050000l.pfb: Dingbats:style=Regular
/usr/share/fonts/madan/madan.ttf: Madan:style=Regular
/usr/share/fonts/msttcore/verdana.ttf: Verdana:style=Regular
/usr/share/fonts/ucs-miscfixed/8x13.bdf: Fixed:style=Regular
/usr/share/fonts/gnu-free/FreeMonoOblique.ttf: FreeMono:style=Oblique,Corsivo
/usr/share/fonts/paktype-naskh-basic/PakTypeNaskhBasic.ttf: PakType Naskh Basic:style=Regular
/usr/share/fonts/default/Type1/s050000l.pfb: Standard Symbols L:style=Regular
/usr/share/fonts/liberation/LiberationSans-Bold.ttf: Liberation Sans:style=Bold
/usr/share/fonts/msttcore/tahoma.ttf: Tahoma:style=Regular
/usr/share/fonts/liberation/LiberationMono-Bold.ttf: Liberation Mono:style=Bold
/usr/share/fonts/msttcore/corbelz.ttf: Corbel:style=Bold Italic
/usr/share/fonts/default/Type1/n021003l.pfb: Nimbus Roman No9 L:style=Regular
/usr/share/fonts/msttcore/georgiai.ttf: Georgia:style=Italic,Cursiva
/usr/share/fonts/paratype-pt-sans/PTS75F.ttf: PT Sans:style=Bold
/usr/share/fonts/default/Type1/a010013l.pfb: URW Gothic L:style=Book
/usr/share/fonts/default/Type1/n019003l.pfb: Nimbus Sans L:style=Regular
/usr/share/fonts/stix/STIX-Regular.otf: STIX:style=Regular
/usr/share/fonts/ucs-miscfixed/8x13O.bdf: Fixed:style=Oblique
/usr/share/fonts/msttcore/impact.ttf: Impact:style=Regular,Standard
/usr/share/fonts/msttcore/ariali.ttf: Arial:style=Πλάγια,Italic
/usr/share/fonts/msttcore/andalemo.ttf: Andale Mono:style=Regular,normal
/usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
/usr/share/fonts/sil-padauk/Padauk.ttf: Padauk:style=Regular
/usr/share/fonts/paratype-pt-sans/PTN57F.ttf: PT Sans Narrow:style=Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
/usr/share/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf: Open Sans,Open Sans Extrabold:style=Extrabold Italic,Italic
/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
/usr/share/fonts/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/msttcore/courbd.ttf: Courier New:style=tučné,Bold
/usr/share/fonts/default/Type1/a010033l.pfb: URW Gothic L:style=Book Oblique
/usr/share/fonts/msttcore/timesi.ttf: Times New Roman:style=Πλάγια,Italic
/usr/share/fonts/lohit-gujarati/Lohit-Gujarati.ttf: Lohit Gujarati:style=Regular
/usr/share/fonts/liberation/LiberationSerif-BoldItalic.ttf: Liberation Serif:style=Bold Italic
/usr/share/fonts/msttcore/corbel.ttf: Corbel:style=Regular
/usr/share/fonts/thai-scalable/Waree-Bold.ttf: Waree:style=Bold
/usr/share/fonts/open-sans/OpenSans-Bold.ttf: Open Sans:style=Bold
/usr/share/fonts/google-noto-emoji/NotoEmoji-Regular.ttf: Noto Emoji:style=Regular
/usr/share/fonts/msttcore/trebucbi.ttf: Trebuchet MS:style=Bold Italic,Negrita Cursiva
/usr/share/fonts/thai-scalable/Waree-BoldOblique.ttf: Waree:style=BoldOblique
/usr/share/fonts/msttcore/constanb.ttf: Constantia:style=Bold
/usr/share/fonts/lohit-punjabi/Lohit-Punjabi.ttf: Lohit Punjabi:style=Regular
/usr/share/fonts/khmeros/KhmerOS_sys.ttf: Khmer OS System:style=Regular
/usr/share/fonts/nhn-nanum/NanumGothicBold.ttf: NanumGothic,나눔고딕:style=Bold
/usr/share/fonts/default/Type1/a010015l.pfb: URW Gothic L:style=Demi
/usr/share/fonts/default/Type1/n022003l.pfb: Nimbus Mono L:style=Regular
/usr/share/fonts/paratype-pt-sans/PTS55F.ttf: PT Sans:style=Regular
/usr/share/fonts/msttcore/georgiab.ttf: Georgia:style=Bold,Negreta
/usr/share/X11/fonts/Type1/c0611bt_.pfb: Courier 10 Pitch:style=Bold Italic
/usr/share/fonts/msttcore/calibri.ttf: Calibri:style=Regular
/usr/share/fonts/default/Type1/n022024l.pfb: Nimbus Mono L:style=Bold Oblique
/usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/open-sans/OpenSans-BoldItalic.ttf: Open Sans:style=Bold Italic
/usr/share/fonts/wqy-microhei/wqy-microhei.ttc: WenQuanYi Micro Hei,文泉驛微米黑:style=Regular
/usr/share/fonts/abattis-cantarell/Cantarell-Bold.otf: Cantarell:style=Bold
/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc: WenQuanYi Zen Hei:style=Regular
/usr/share/X11/fonts/Type1/UTBI____.pfa: Utopia:style=Bold Italic
/usr/share/fonts/liberation/LiberationSerif-Regular.ttf: Liberation Serif:style=Regular
/usr/share/fonts/ucs-miscfixed/6x10.bdf: Fixed:style=Regular
/usr/share/fonts/lohit-assamese/Lohit-Assamese.ttf: Lohit Assamese:style=Regular
/usr/share/fonts/overpass/Overpass-Regular.ttf: Overpass:style=Regular
/usr/share/fonts/liberation/LiberationSerif-Bold.ttf: Liberation Serif:style=Bold
/usr/share/fonts/default/ghostscript/putbi.pfa: Utopia:style=Bold Italic
/usr/share/fonts/lohit-oriya/Lohit-Oriya.ttf: Lohit Oriya:style=Regular
/usr/share/fonts/msttcore/comic.ttf: Comic Sans MS:style=Regular,normal
/usr/share/fonts/vlgothic/VL-Gothic-Regular.ttf: VL Gothic:style=regular
/usr/share/fonts/msttcore/consolab.ttf: Consolas:style=Bold
/usr/share/fonts/default/Type1/b018012l.pfb: URW Bookman L:style=Light
/usr/share/fonts/ucs-miscfixed/6x13B.bdf: Fixed:style=Bold SemiCondensed
/usr/share/fonts/liberation/LiberationMono-Italic.ttf: Liberation Mono:style=Italic
/usr/share/fonts/google-crosextra-caladea/Caladea-Bold.ttf: Caladea:style=Bold
/usr/share/fonts/default/ghostscript/putri.pfa: Utopia:style=Italic
/usr/share/fonts/msttcore/verdanaz.ttf: Verdana:style=Bold Italic,Negreta cursiva
/usr/share/X11/fonts/Type1/c0419bt_.pfb: Courier 10 Pitch:style=Regular
/usr/share/fonts/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/default/Type1/n021024l.pfb: Nimbus Roman No9 L:style=Medium Italic
/usr/share/fonts/google-crosextra-carlito/Carlito-BoldItalic.ttf: Carlito:style=Bold Italic
/usr/share/fonts/overpass/Overpass-Bold-Italic.ttf: Overpass:style=Bold Italic
/usr/share/fonts/msttcore/cour.ttf: Courier New:style=Κανονικά,Regular
/usr/share/fonts/stix/STIX-Italic.otf: STIX:style=Italic
/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc: WenQuanYi Zen Hei Sharp,文泉驛點陣正黑:style=Regular
/usr/share/fonts/default/Type1/a010035l.pfb: URW Gothic L:style=Demi Oblique
/usr/share/fonts/sil-padauk/Padauk-bold.ttf: Padauk:style=Bold
/usr/share/fonts/open-sans/OpenSans-SemiboldItalic.ttf: Open Sans,Open Sans Semibold:style=Semibold Italic,Italic
/usr/share/fonts/msttcore/consola.ttf: Consolas:style=Regular
/usr/share/fonts/liberation/LiberationSans-BoldItalic.ttf: Liberation Sans:style=Bold Italic
/usr/share/fonts/lohit-tamil/Lohit-Tamil.ttf: Lohit Tamil:style=Regular
/usr/share/fonts/stix/STIX-Bold.otf: STIX:style=Bold
/usr/share/fonts/overpass/Overpass-Light.ttf: Overpass:style=Light
/usr/share/fonts/gnu-free/FreeSansOblique.ttf: FreeSans:style=Oblique,Italique
/usr/share/fonts/thai-scalable/Waree-Oblique.ttf: Waree:style=Oblique
/usr/share/fonts/default/Type1/p052023l.pfb: URW Palladio L:style=Italic
/usr/share/fonts/google-crosextra-carlito/Carlito-Regular.ttf: Carlito:style=Regular
/usr/share/fonts/msttcore/arialbi.ttf: Arial:style=Έντονα Πλάγια,Bold Italic
/usr/share/fonts/default/Type1/c059013l.pfb: Century Schoolbook L:style=Roman
/usr/share/fonts/default/Type1/n021004l.pfb: Nimbus Roman No9 L:style=Medium
/usr/share/fonts/msttcore/georgiaz.ttf: Georgia:style=Bold Italic,Negreta cursiva
/usr/share/fonts/ucs-miscfixed/7x13O.bdf: Fixed:style=Oblique
/usr/share/fonts/msttcore/times.ttf: Times New Roman:style=Standaard,Regular
/usr/share/fonts/msttcore/calibrii.ttf: Calibri:style=Italic
/usr/share/fonts/msttcore/courbi.ttf: Courier New:style=fed kursiv,Bold Italic
/usr/share/fonts/default/Type1/b018035l.pfb: URW Bookman L:style=Demi Bold Italic
/usr/share/fonts/cjkuni-uming/uming.ttc: AR PL UMing TW MBE:style=Light
/usr/share/fonts/default/Type1/n022023l.pfb: Nimbus Mono L:style=Regular Oblique
/usr/share/fonts/dejavu/DejaVuSerifCondensed-BoldItalic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold Italic,Bold Italic
/usr/share/fonts/open-sans/OpenSans-Light.ttf: Open Sans,Open Sans Light:style=Light,Regular
/usr/share/fonts/gnu-free/FreeSerifBoldItalic.ttf: FreeSerif:style=Bold Italic,Félkövér dőlt
/usr/share/X11/fonts/Type1/c0648bt_.pfb: Bitstream Charter:style=Regular
/usr/share/fonts/msttcore/constanz.ttf: Constantia:style=Bold Italic
/usr/share/fonts/default/Type1/p052004l.pfb: URW Palladio L:style=Bold
/usr/share/fonts/abattis-cantarell/Cantarell-Regular.otf: Cantarell:style=Regular
/usr/share/fonts/lohit-marathi/Lohit-Marathi.ttf: Lohit Marathi:style=Regular
/usr/share/fonts/msttcore/cambriab.ttf: Cambria:style=Bold
/usr/share/fonts/gnu-free/FreeSans.ttf: FreeSans:style=Regular,нормален
/usr/share/fonts/gnu-free/FreeSerif.ttf: FreeSerif:style=Regular
/usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold,Bold
/usr/share/fonts/msttcore/corbelb.ttf: Corbel:style=Bold
/usr/share/fonts/gnu-free/FreeMonoBold.ttf: FreeMono:style=Bold,Grassetto
/usr/share/fonts/wqy-microhei/wqy-microhei.ttc: WenQuanYi Micro Hei Mono,文泉驛等寬微米黑:style=Regular
/usr/share/fonts/msttcore/couri.ttf: Courier New:style=kurzíva,Italic
/usr/share/fonts/overpass/Overpass-Bold.ttf: Overpass:style=Bold
/usr/share/fonts/overpass/Overpass-ExtraLight.ttf: Overpass:style=ExtraLight
/usr/share/fonts/default/Type1/n022004l.pfb: Nimbus Mono L:style=Bold
/usr/share/fonts/lohit-telugu/Lohit-Telugu.ttf: Lohit Telugu:style=Regular
/usr/share/fonts/jomolhari/Jomolhari-alpha3c-0605331.ttf: Jomolhari:style=Regular
/usr/share/fonts/google-crosextra-carlito/Carlito-Italic.ttf: Carlito:style=Italic
/usr/share/fonts/msttcore/constani.ttf: Constantia:style=Italic
/usr/share/fonts/msttcore/ariblk.ttf: Arial Black:style=Regular,Standard
/usr/share/fonts/lohit-malayalam/Lohit-Malayalam.ttf: Lohit Malayalam:style=Regular
/usr/share/fonts/ucs-miscfixed/9x15.bdf: Fixed:style=Regular
/usr/share/fonts/overpass/Overpass-Regular-Italic.ttf: Overpass:style=Italic
/usr/share/fonts/ucs-miscfixed/9x18B.bdf: Fixed:style=Bold
/usr/share/fonts/sil-nuosu/NuosuSIL.ttf: Nuosu SIL:style=Regular
/usr/share/fonts/msttcore/arial.ttf: Arial:style=Standaard,Regular
/usr/share/fonts/opensymbol/opens___.ttf: OpenSymbol:style=Regular
/usr/share/fonts/msttcore/candarai.ttf: Candara:style=Italic
/usr/share/fonts/smc/Meera.ttf: Meera:style=Regular
/usr/share/fonts/default/Type1/b018032l.pfb: URW Bookman L:style=Light Italic
/usr/share/fonts/ucs-miscfixed/8x13B.bdf: Fixed:style=Bold
/usr/share/fonts/dejavu/DejaVuSerif.ttf: DejaVu Serif:style=Book
/usr/share/fonts/stix/STIX-BoldItalic.otf: STIX:style=Bold Italic
/usr/share/fonts/ucs-miscfixed/9x18.bdf: Fixed:style=Regular
/usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/default/Type1/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/lklug/lklug.ttf: LKLUG:style=Regular
/usr/share/fonts/abattis-cantarell/Cantarell-Oblique.otf: Cantarell:style=Oblique
/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/usr/share/fonts/msttcore/consolaz.ttf: Consolas:style=Bold Italic
/usr/share/fonts/msttcore/trebucit.ttf: Trebuchet MS:style=Italic,Cursiva
/usr/share/fonts/msttcore/constan.ttf: Constantia:style=Regular
/usr/share/fonts/google-crosextra-caladea/Caladea-Regular.ttf: Caladea:style=Regular
/usr/share/fonts/default/Type1/b018015l.pfb: URW Bookman L:style=Demi Bold
/usr/share/fonts/sil-abyssinica/AbyssinicaSIL-R.ttf: Abyssinica SIL:style=Regular
/usr/share/fonts/msttcore/calibriz.ttf: Calibri:style=Bold Italic
/usr/share/fonts/default/ghostscript/putb.pfa: Utopia:style=Bold
/usr/share/fonts/lohit-kannada/Lohit-Kannada.ttf: Lohit Kannada:style=Regular
/usr/share/fonts/ucs-miscfixed/clR6x12.bdf: Clean:style=Regular
/usr/share/fonts/gnu-free/FreeMono.ttf: FreeMono:style=Regular,normal
/usr/share/fonts/msttcore/calibrib.ttf: Calibri:style=Bold
/usr/share/X11/fonts/Type1/cursor.pfa: Cursor:style=Regular
/usr/share/fonts/ucs-miscfixed/9x15B.bdf: Fixed:style=Bold
/usr/share/fonts/paratype-pt-sans/PTN77F.ttf: PT Sans Narrow:style=Bold
/usr/share/fonts/gnu-free/FreeSansBold.ttf: FreeSans:style=Bold,Gras
/usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
/usr/share/X11/fonts/Type1/UTB_____.pfa: Utopia:style=Bold
/usr/share/fonts/open-sans/OpenSans-Italic.ttf: Open Sans:style=Italic
/usr/share/fonts/liberation/LiberationMono-Regular.ttf: Liberation Mono:style=Regular
/usr/share/fonts/msttcore/trebuc.ttf: Trebuchet MS:style=Regular
/usr/share/fonts/khmeros/KhmerOS.ttf: Khmer OS:style=Regular
/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc: WenQuanYi Zen Hei Mono:style=Regular
/usr/share/fonts/abattis-cantarell/Cantarell-BoldOblique.otf: Cantarell:style=BoldOblique
/usr/share/fonts/default/Type1/n021023l.pfb: Nimbus Roman No9 L:style=Regular Italic
/usr/share/X11/fonts/Type1/c0583bt_.pfb: Courier 10 Pitch:style=Bold
/usr/share/fonts/default/Type1/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/ucs-miscfixed/6x13O.bdf: Fixed:style=Oblique SemiCondensed
/usr/share/fonts/default/Type1/z003034l.pfb: URW Chancery L:style=Medium Italic
/usr/share/fonts/ucs-miscfixed/7x13B.bdf: Fixed:style=Bold
/usr/share/fonts/overpass/Overpass-ExtraLight Italic.ttf: Overpass:style=ExtraLight Italic
/usr/share/fonts/msttcore/cambriaz.ttf: Cambria:style=Bold Italic
/usr/share/fonts/dejavu/DejaVuSerifCondensed-Italic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Italic,Italic
/usr/share/fonts/default/Type1/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/ucs-miscfixed/7x14B.bdf: Fixed:style=Bold
/usr/share/fonts/default/ghostscript/putr.pfa: Utopia:style=Regular
/usr/share/fonts/ucs-miscfixed/4x6.bdf: Fixed:style=Regular
/usr/share/fonts/msttcore/candara.ttf: Candara:style=Regular
/usr/share/X11/fonts/Type1/UTI_____.pfa: Utopia:style=Italic
/usr/share/fonts/open-sans/OpenSans-Regular.ttf: Open Sans:style=Regular
/usr/share/fonts/google-crosextra-caladea/Caladea-Italic.ttf: Caladea:style=Italic
/usr/share/fonts/paratype-pt-sans/PTS56F.ttf: PT Sans:style=Italic
/usr/share/fonts/gnu-free/FreeMonoBoldOblique.ttf: FreeMono:style=Bold Oblique,получерен наклонен
/usr/share/fonts/google-crosextra-carlito/Carlito-Bold.ttf: Carlito:style=Bold
/usr/share/fonts/thai-scalable/Waree.ttf: Waree:style=Book
/usr/share/fonts/msttcore/webdings.ttf: Webdings:style=Regular,normal
/usr/share/fonts/ucs-miscfixed/5x7.bdf: Fixed:style=Regular
/usr/share/fonts/msttcore/georgia.ttf: Georgia:style=Regular,obyčejné
/usr/share/fonts/msttcore/arialbd.ttf: Arial:style=Έντονα,Bold
/usr/share/fonts/msttcore/trebucbd.ttf: Trebuchet MS:style=Bold,Negrita
/usr/share/fonts/khmeros/KhmerOS_content.ttf: Khmer OS Content:style=Regular
/usr/share/fonts/liberation/LiberationSans-Italic.ttf: Liberation Sans:style=Italic
/usr/share/X11/fonts/Type1/c0582bt_.pfb: Courier 10 Pitch:style=Italic
/usr/share/fonts/msttcore/cambriai.ttf: Cambria:style=Italic
/usr/share/fonts/cjkuni-uming/uming.ttc: AR PL UMing TW:style=Light
/usr/share/fonts/msttcore/verdanab.ttf: Verdana:style=Bold,Fett
/usr/share/fonts/gnu-free/FreeSerifBold.ttf: FreeSerif:style=Bold,Fett
/usr/share/fonts/cjkuni-uming/uming.ttc: AR PL UMing HK:style=Light
/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
/usr/share/fonts/dejavu/DejaVuSerif-BoldItalic.ttf: DejaVu Serif:style=Bold Italic
/usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf: DejaVu Sans,DejaVu Sans Light:style=ExtraLight
/usr/share/fonts/liberation/LiberationMono-BoldItalic.ttf: Liberation Mono:style=Bold Italic
/usr/share/fonts/ucs-miscfixed/7x14.bdf: Fixed:style=Regular
/usr/share/fonts/lohit-nepali/Lohit-Nepali.ttf: Lohit Nepali:style=Regular
/usr/share/fonts/msttcore/comicbd.ttf: Comic Sans MS:style=Bold,Έντονα
/usr/share/fonts/cjkuni-uming/uming.ttc: AR PL UMing CN:style=Light
/usr/share/fonts/lohit-devanagari/Lohit-Devanagari.ttf: Lohit Devanagari:style=Regular
/usr/share/fonts/overpass/Overpass-Light-Italic.ttf: Overpass:style=Light Italic
/usr/share/fonts/ucs-miscfixed/5x8.bdf: Fixed:style=Regular
/usr/share/fonts/ucs-miscfixed/6x9.bdf: Fixed:style=Regular
/usr/share/fonts/open-sans/OpenSans-ExtraBold.ttf: Open Sans,Open Sans Extrabold:style=Extrabold,Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
/usr/share/fonts/google-noto-emoji/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
/usr/share/X11/fonts/Type1/c0633bt_.pfb: Bitstream Charter:style=Bold Italic
/usr/share/fonts/liberation/LiberationSans-Regular.ttf: Liberation Sans:style=Regular
/usr/share/X11/fonts/Type1/c0649bt_.pfb: Bitstream Charter:style=Italic
/usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf: DejaVu Sans:style=Oblique
/usr/share/fonts/default/Type1/n019044l.pfb: Nimbus Sans L:style=Bold Condensed
/usr/share/fonts/default/Type1/p052003l.pfb: URW Palladio L:style=Roman
/usr/share/fonts/default/Type1/c059036l.pfb: Century Schoolbook L:style=Bold Italic
/usr/share/fonts/default/Type1/n019063l.pfb: Nimbus Sans L:style=Regular Condensed Italic
/usr/share/fonts/gnu-free/FreeSansBoldOblique.ttf: FreeSans:style=Bold Oblique,Gras Italique
/usr/share/fonts/msttcore/candarab.ttf: Candara:style=Bold
/usr/share/fonts/msttcore/consolai.ttf: Consolas:style=Italic
/usr/share/X11/fonts/Type1/c0632bt_.pfb: Bitstream Charter:style=Bold
/usr/share/fonts/default/Type1/n019064l.pfb: Nimbus Sans L:style=Bold Condensed Italic
/usr/share/fonts/google-crosextra-caladea/Caladea-BoldItalic.ttf: Caladea:style=Bold Italic,Italic
/usr/share/fonts/msttcore/verdanai.ttf: Verdana:style=Italic,Cursiva
/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf: DejaVu Sans:style=Bold Oblique
/usr/share/fonts/gnu-free/FreeSerifItalic.ttf: FreeSerif:style=Italic,Kursiv
/usr/share/fonts/ucs-miscfixed/7x13.bdf: Fixed:style=Regular
/usr/share/fonts/default/Type1/n019043l.pfb: Nimbus Sans L:style=Regular Condensed
/usr/share/fonts/msttcore/timesbi.ttf: Times New Roman:style=Έντονα Πλάγια,Bold Italic
/usr/share/X11/fonts/Type1/UTRG____.pfa: Utopia:style=Regular
/usr/share/fonts/lohit-bengali/Lohit-Bengali.ttf: Lohit Bengali:style=Regular

all fonts what i install

@tahir.manzoor
thanks…
I install font using bellow command and restart server now its working fine
yum install curl cabextract xorg-x11-font-utils fontconfig
rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm

@tahir.manzoor
Can u please tell me why page count is depend with font.

@rabin.samanta

Thanks for your inquiry.

It is nice to hear from you that your problem has been solved.

Please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (PDF or XPS) or getting page count. You need to install fonts that are used in your document on the machine where you are getting page count of document. You can check this behavior using MS Word by changing the font name of text.

Please refer to the following article:
How Aspose.Words Uses True Type Fonts