Font Issue/Exception While Converting To PDF


#1

Trying to run Aspose Note For Java in AWS lambda.

I start by loading a lot of TTF fonts (* See listing below which ones I load) via:

    DocumentFontsSubsystem documentFontsSubsystem = new DocumentFontsSubsystem();

    String directoryName = System.getenv("LAMBDA_TASK_ROOT");

    if (directoryName!=null) {

        File path = new File(directoryName);

        File [] files = path.listFiles();
        for (int i = 0; i < files.length; i++){
            if (files[i].isFile() && files[i].toString().toLowerCase().endsWith(".ttf")){
                System.out.println("Adding font: " + files[i].toString());
                documentFontsSubsystem.addFont(files[i].toString());
            }
       }

    }
   
    DocumentFontsSubsystem.setDefault(documentFontsSubsystem);

The fonts appear to be loaded successfully … see listing not throwing any exceptions

then I run:
String fileName = “/tmp/aspose.one”;
Document document = new Document(fileName);
document.save(tempFileName, new PdfSaveOptions());

where the input file is one of your samples available at:
https://github.com/aspose-note/Aspose.Note-for-.NET/blob/master/Examples/Data/Loading-and-Saving/Aspose.one

I get an exception:

class com.aspose.note.system.exceptions.ArgumentNullException: Value cannot be null.
Parameter name: trueTypeFont
com.aspose.note.internal.j.c.(Unknown Source)
com.aspose.note.internal.j.c.(Unknown Source)
com.aspose.note.cq.b(Unknown Source)
com.aspose.note.cq.a(Unknown Source)
com.aspose.note.ag.a(Unknown Source)
com.aspose.note.ag.a(Unknown Source)
com.aspose.note.ag.a(Unknown Source)
com.aspose.note.ag.visitTitleStart(Unknown Source)
com.aspose.note.Title.accept(Unknown Source)
com.aspose.note.Page.accept(Unknown Source)
com.aspose.note.bY.a(Unknown Source)
com.aspose.note.bY.a(Unknown Source)
com.aspose.note.bY.a(Unknown Source)
com.aspose.note.p.a(Unknown Source)
com.aspose.note.p.a(Unknown Source)
com.aspose.note.p.a(Unknown Source)
com.aspose.note.p.a(Unknown Source)
com.aspose.note.Document.save(Unknown Source)
com.csdisco.onenoteprocess.ConvertToPdfHandler.convert(ConvertToPdfHandler.java:23)
com.csdisco.onenoteprocess.Handler.handleRequest(Handler.java:121)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
lambdainternal.EventHandlerLoader$PojoMethodRequestHandler.handleRequest(EventHandlerLoader.java:259)
lambdainternal.EventHandlerLoader$PojoHandlerAsStreamHandler.handleRequest(EventHandlerLoader.java:178)
lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:888)
lambdainternal.AWSLambda.startRuntime(AWSLambda.java:293)
lambdainternal.AWSLambda.(AWSLambda.java:64)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:348)
lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:114)
at com.aspose.note.internal.j.c.(Unknown Source)
at com.aspose.note.internal.j.c.(Unknown Source)
at com.aspose.note.cq.b(Unknown Source)
at com.aspose.note.cq.a(Unknown Source)
at com.aspose.note.ag.a(Unknown Source)
at com.aspose.note.ag.a(Unknown Source)
at com.aspose.note.ag.a(Unknown Source)
at com.aspose.note.ag.visitTitleStart(Unknown Source)
at com.aspose.note.Title.accept(Unknown Source)
at com.aspose.note.Page.accept(Unknown Source)
at com.aspose.note.bY.a(Unknown Source)
at com.aspose.note.bY.a(Unknown Source)
at com.aspose.note.bY.a(Unknown Source)
at com.aspose.note.p.a(Unknown Source)
at com.aspose.note.p.a(Unknown Source)
at com.aspose.note.p.a(Unknown Source)
at com.aspose.note.p.a(Unknown Source)
at com.aspose.note.Document.save(Unknown Source)
at com.csdisco.onenoteprocess.ConvertToPdfHandler.convert(ConvertToPdfHandler.java:23)
at com.csdisco.onenoteprocess.Handler.handleRequest(Handler.java:121)

21:43:02
Adding font: /var/task/SegoeWP.ttf

21:43:02
Adding font: /var/task/framd.ttf

21:43:02
Adding font: /var/task/kartikab.ttf

21:43:02
Adding font: /var/task/tahomabd.ttf

21:43:02
Adding font: /var/task/estre.ttf

21:43:02
Adding font: /var/task/cordiaz.ttf

21:43:02
Adding font: /var/task/SegoeWP-Light.ttf

21:43:02
Adding font: /var/task/gadugi.ttf

21:43:02
Adding font: /var/task/upcel.ttf

21:43:02
Adding font: /var/task/REFSAN.TTF

21:43:02
Adding font: /var/task/constani.ttf

21:43:02
Adding font: /var/task/DUBAI-MEDIUM.TTF

21:43:02
Adding font: /var/task/upcdbi.ttf

21:43:02
Adding font: /var/task/calibrii.ttf

21:43:02
Adding font: /var/task/utsaahbi.ttf

21:43:02
Adding font: /var/task/seguisbi.ttf

21:43:02
Adding font: /var/task/upcki.ttf

21:43:02
Adding font: /var/task/gisha.ttf

21:43:02
Adding font: /var/task/kokilab.ttf

21:43:02
Adding font: /var/task/shrutib.ttf

21:43:02
Adding font: /var/task/GOTHIC.TTF

21:43:02
Adding font: /var/task/sylfaen.ttf

21:43:02
Adding font: /var/task/GARAIT.TTF

21:43:02
Adding font: /var/task/trebucbd.ttf

21:43:02
Adding font: /var/task/courbd.ttf

21:43:02
Adding font: /var/task/ARIALN.TTF

21:43:02
Adding font: /var/task/lathab.ttf

21:43:02
Adding font: /var/task/ntailub.ttf

21:43:02
Adding font: /var/task/ARIALNI.TTF

21:43:02
Adding font: /var/task/PAPYRUS.TTF

21:43:02
Adding font: /var/task/LHANDW.TTF

21:43:02
Adding font: /var/task/tradbdo.ttf

21:43:02
Adding font: /var/task/upcebi.ttf

21:43:02
Adding font: /var/task/KhmerUIb.ttf

21:43:02
Adding font: /var/task/arialbi.ttf

21:43:02
Adding font: /var/task/palab.ttf

21:43:02
Adding font: /var/task/GOTHICB.TTF

21:43:02
Adding font: /var/task/georgiai.ttf

21:43:02
Adding font: /var/task/taileb.ttf

21:43:02
Adding font: /var/task/cambriaz.ttf

21:43:02
Adding font: /var/task/plantc.ttf

21:43:02
Adding font: /var/task/upcjbi.ttf

21:43:02
Adding font: /var/task/comicbd.ttf

21:43:02
Adding font: /var/task/trebucbi.ttf

21:43:02
Adding font: /var/task/msuighur.ttf

21:43:02
Adding font: /var/task/cordiab.ttf

21:43:02
Adding font: /var/task/consolaz.ttf

21:43:02
Adding font: /var/task/marlett.ttf

21:43:02
Adding font: /var/task/leelawad.ttf

21:43:02
Adding font: /var/task/framdit.ttf

21:43:02
Adding font: /var/task/segoeuib.ttf

21:43:02
Adding font: /var/task/webdings.ttf

21:43:02
Adding font: /var/task/BRADHITC.TTF

21:43:02
Adding font: /var/task/taile.ttf

21:43:02
Adding font: /var/task/upcdi.ttf

21:43:02
Adding font: /var/task/upckbi.ttf

21:43:02
Adding font: /var/task/verdana.ttf

21:43:02
Adding font: /var/task/segoescb.ttf

21:43:02
Adding font: /var/task/times.ttf

21:43:02
Adding font: /var/task/NirmalaS.ttf

21:43:02
Adding font: /var/task/segoeui.ttf

21:43:02
Adding font: /var/task/raavi.ttf

21:43:02
Adding font: /var/task/GARA.TTF

21:43:02
Adding font: /var/task/Shonarb.ttf

21:43:02
Adding font: /var/task/cordiai.ttf

21:43:02
Adding font: /var/task/LeelawUI.ttf

21:43:02
Adding font: /var/task/ARIALUNI.TTF

21:43:02
Adding font: /var/task/vrinda.ttf

21:43:02
Adding font: /var/task/browauz.ttf

21:43:02
Adding font: /var/task/msyi.ttf

21:43:02
Adding font: /var/task/upcdl.ttf

21:43:02
Adding font: /var/task/corbelb.ttf

21:43:02
Adding font: /var/task/seguisb.ttf

21:43:02
Adding font: /var/task/constanb.ttf

21:43:02
Adding font: /var/task/Vani.ttf

21:43:02
Adding font: /var/task/cordia.ttf

21:43:02
Adding font: /var/task/palabi.ttf

21:43:02
Adding font: /var/task/consola.ttf

21:43:02
Adding font: /var/task/FREESCPT.TTF

21:43:02
Adding font: /var/task/trado.ttf

21:43:02
Adding font: /var/task/cambriab.ttf

21:43:02
Adding font: /var/task/MSNeoGothic-Bold.ttf

21:43:02
Adding font: /var/task/ANTQUAI.TTF

21:43:02
Adding font: /var/task/tahoma.ttf

21:43:02
Adding font: /var/task/upcil.ttf

21:43:02
Adding font: /var/task/UrdTypeb.ttf

21:43:02
Adding font: /var/task/UrdType.ttf

21:43:02
Adding font: /var/task/Candarab.ttf

21:43:02
Adding font: /var/task/vijaya.ttf

21:43:02
Adding font: /var/task/browa.ttf

21:43:02
Adding font: /var/task/georgiab.ttf

21:43:02
Adding font: /var/task/cordiau.ttf

21:43:02
Adding font: /var/task/NirmalaB.ttf

21:43:02
Adding font: /var/task/KhmerUI.ttf

21:43:02
Adding font: /var/task/arabtype.ttf

21:43:02
Adding font: /var/task/phagspab.ttf

21:43:02
Adding font: /var/task/LaoUIb.ttf

21:43:02
Adding font: /var/task/micross.ttf

21:43:02
Adding font: /var/task/cour.ttf

21:43:02
Adding font: /var/task/cordiaub.ttf

21:43:02
Adding font: /var/task/segoeuisl.ttf

21:43:02
Adding font: /var/task/majalla.ttf

21:43:02
Adding font: /var/task/kalinga.ttf

21:43:02
Adding font: /var/task/comicz.ttf

21:43:02
Adding font: /var/task/browai.ttf

21:43:02
Adding font: /var/task/ntailu.ttf

21:43:02
Adding font: /var/task/BOOKOSI.TTF

21:43:02
Adding font: /var/task/dokchamp.ttf

21:43:02
Adding font: /var/task/cordiauz.ttf

21:43:02
Adding font: /var/task/FRSCRIPT.TTF

21:43:02
Adding font: /var/task/angsaz.ttf

21:43:02
Adding font: /var/task/ANTQUABI.TTF

21:43:02
Adding font: /var/task/utsaahb.ttf

21:43:02
Adding font: /var/task/kokilai.ttf

21:43:02
Adding font: /var/task/upckl.ttf

21:43:02
Adding font: /var/task/upcli.ttf

21:43:02
Adding font: /var/task/moolbor.ttf

21:43:02
Adding font: /var/task/palai.ttf

21:43:02
Adding font: /var/task/corbel.ttf

21:43:02
Adding font: /var/task/javatext.ttf

21:43:02
Adding font: /var/task/verdanab.ttf

21:43:02
Adding font: /var/task/aparaj.ttf

21:43:02
Adding font: /var/task/lucon.ttf

21:43:02
Adding font: /var/task/symbol.ttf

21:43:02
Adding font: /var/task/raavib.ttf

21:43:02
Adding font: /var/task/BOOKOSB.TTF

21:43:02
Adding font: /var/task/upcji.ttf

21:43:02
Adding font: /var/task/seguiemj.ttf

21:43:02
Adding font: /var/task/tungab.ttf

21:43:02
Adding font: /var/task/PRISTINA.TTF

21:43:02
Adding font: /var/task/BSSYM7.TTF

21:43:02
Adding font: /var/task/Gabriola.ttf

21:43:02
Adding font: /var/task/upcei.ttf

21:43:02
Adding font: /var/task/calibrili.ttf

21:43:02
Adding font: /var/task/browaz.ttf

21:43:02
Adding font: /var/task/wingding.ttf

21:43:02
Adding font: /var/task/mriam.ttf

21:43:02
Adding font: /var/task/couri.ttf

21:43:02
Adding font: /var/task/aldhabi.ttf

21:43:02
Adding font: /var/task/WINGDNG2.TTF

21:43:02
Adding font: /var/task/timesbi.ttf

21:43:02
Adding font: /var/task/browab.ttf

21:43:02
Adding font: /var/task/trebucit.ttf

21:43:02
Adding font: /var/task/ANTQUAB.TTF

21:43:02
Adding font: /var/task/mmrtext.ttf

21:43:02
Adding font: /var/task/constanz.ttf

21:43:02
Adding font: /var/task/segoeprb.ttf

21:43:02
Adding font: /var/task/CENTURY.TTF

21:43:02
Adding font: /var/task/daunpenh.ttf

21:43:02
Adding font: /var/task/georgia.ttf

21:43:02
Adding font: /var/task/OUTLOOK.TTF

21:43:02
Adding font: /var/task/segoeuii.ttf

21:43:02
Adding font: /var/task/vijayab.ttf

21:43:02
Adding font: /var/task/seguisli.ttf

21:43:02
Adding font: /var/task/seguili.ttf

21:43:02
Adding font: /var/task/upckb.ttf

21:43:02
Adding font: /var/task/browau.ttf

21:43:02
Adding font: /var/task/aparaji.ttf

21:43:02
Adding font: /var/task/lvnmbd.ttf

21:43:02
Adding font: /var/task/upcii.ttf

21:43:02
Adding font: /var/task/upcdb.ttf

21:43:02
Adding font: /var/task/kartika.ttf

21:43:02
Adding font: /var/task/ITCKRIST.TTF

21:43:02
Adding font: /var/task/consolai.ttf

21:43:02
Adding font: /var/task/euphemia.ttf

21:43:02
Adding font: /var/task/segoeuiz.ttf

21:43:02
Adding font: /var/task/MTEXTRA.TTF

21:43:02
Adding font: /var/task/calibril.ttf

21:43:02
Adding font: /var/task/WINGDNG3.TTF

21:43:02
Adding font: /var/task/angsaub.ttf

21:43:02
Adding font: /var/task/MTCORSVA.TTF

21:43:02
Adding font: /var/task/georgiaz.ttf

21:43:02
Adding font: /var/task/frank.ttf

21:43:02
Adding font: /var/task/MISTRAL.TTF

21:43:02
Adding font: /var/task/latha.ttf

21:43:02
Adding font: /var/task/verdanai.ttf

21:43:02
Adding font: /var/task/upclb.ttf

21:43:02
Adding font: /var/task/SegoeWP-Semilight.ttf

21:43:02
Adding font: /var/task/upcfbi.ttf

21:43:02
Adding font: /var/task/david.ttf

21:43:02
Adding font: /var/task/aparajb.ttf

21:43:02
Adding font: /var/task/comici.ttf

21:43:02
Adding font: /var/task/upcfi.ttf

21:43:02
Adding font: /var/task/trebuc.ttf

21:43:02
Adding font: /var/task/kalingab.ttf

21:43:02
Adding font: /var/task/consolab.ttf

21:43:02
Adding font: /var/task/seguibli.ttf

21:43:02
Adding font: /var/task/lvnm.ttf

21:43:02
Adding font: /var/task/SketchFlow Print.ttf

21:43:02
Adding font: /var/task/msuighub.ttf

21:43:02
Adding font: /var/task/calibriz.ttf

21:43:02
Adding font: /var/task/browaui.ttf

21:43:02
Adding font: /var/task/REFSPCL.TTF

21:43:02
Adding font: /var/task/upcjl.ttf

21:43:02
Adding font: /var/task/Nirmala.ttf

21:43:02
Adding font: /var/task/SegoeMarker.ttf

21:43:02
Adding font: /var/task/LeelaUIb.ttf

21:43:02
Adding font: /var/task/comic.ttf

21:43:02
Adding font: /var/task/ebrima.ttf

21:43:02
Adding font: /var/task/leelawdb.ttf

21:43:02
Adding font: /var/task/gishabd.ttf

21:43:02
Adding font: /var/task/gautamib.ttf

21:43:02
Adding font: /var/task/SegoeWP-Bold.ttf

21:43:02
Adding font: /var/task/GOTHICI.TTF

21:43:02
Adding font: /var/task/GOTHICBI.TTF

21:43:02
Adding font: /var/task/gautami.ttf

21:43:02
Adding font: /var/task/upcjb.ttf

21:43:02
Adding font: /var/task/mmrtextb.ttf

21:43:02
Adding font: /var/task/arialbd.ttf

21:43:02
Adding font: /var/task/BuxtonSketch.ttf

21:43:02
Adding font: /var/task/browaub.ttf

21:43:02
Adding font: /var/task/upcibi.ttf

21:43:02
Adding font: /var/task/kokilabi.ttf

21:43:02
Adding font: /var/task/DUBAI-BOLD.TTF

21:43:02
Adding font: /var/task/corbelz.ttf

21:43:02
Adding font: /var/task/timesi.ttf

21:43:02
Adding font: /var/task/constan.ttf

21:43:02
Adding font: /var/task/iskpota.ttf

21:43:02
Adding font: /var/task/upcfl.ttf

21:43:02
Adding font: /var/task/BOOKOSBI.TTF

21:43:02
Adding font: /var/task/nrkis.ttf

21:43:02
Adding font: /var/task/upcfb.ttf

21:43:02
Adding font: /var/task/gadugib.ttf

21:43:02
Adding font: /var/task/SegoeWP-Black.ttf

21:43:02
Adding font: /var/task/shruti.ttf

21:43:02
Adding font: /var/task/mriamc.ttf

21:43:02
Adding font: /var/task/nyala.ttf

21:43:02
Adding font: /var/task/andlso.ttf

21:43:02
Adding font: /var/task/TEMPSITC.TTF

21:43:02
Adding font: /var/task/ebrimabd.ttf

21:43:02
Adding font: /var/task/JUICE___.TTF

21:43:02
Adding font: /var/task/MSNeoGothic.ttf

21:43:02
Adding font: /var/task/arial.ttf

21:43:02
Adding font: /var/task/courbi.ttf

21:43:02
Adding font: /var/task/upcll.ttf

21:43:02
Adding font: /var/task/angsaui.ttf

21:43:02
Adding font: /var/task/ARIALNBI.TTF

21:43:02
Adding font: /var/task/himalaya.ttf

21:43:02
Adding font: /var/task/l_10646.ttf

21:43:02
Adding font: /var/task/iskpotab.ttf

21:43:02
Adding font: /var/task/calibri.ttf

21:43:02
Adding font: /var/task/majallab.ttf

21:43:02
Adding font: /var/task/segoeuil.ttf

21:43:02
Adding font: /var/task/Candara.ttf

21:43:02
Adding font: /var/task/angsai.ttf

21:43:02
Adding font: /var/task/Candarai.ttf

21:43:02
Adding font: /var/task/calibrib.ttf

21:43:02
Adding font: /var/task/phagspa.ttf

21:43:02
Adding font: /var/task/DUBAI-LIGHT.TTF

21:43:02
Adding font: /var/task/monbaiti.ttf

21:43:02
Adding font: /var/task/pala.ttf

21:43:02
Adding font: /var/task/cordiaui.ttf

21:43:02
Adding font: /var/task/utsaahi.ttf

21:43:02
Adding font: /var/task/seguibl.ttf

21:43:02
Adding font: /var/task/segoepr.ttf

21:43:02
Adding font: /var/task/Candaraz.ttf

21:43:02
Adding font: /var/task/ARIALNB.TTF

21:43:02
Adding font: /var/task/verdanaz.ttf

21:43:02
Adding font: /var/task/angsau.ttf

21:43:02
Adding font: /var/task/BKANT.TTF

21:43:02
Adding font: /var/task/utsaah.ttf

21:43:02
Adding font: /var/task/Shonar.ttf

21:43:02
Adding font: /var/task/impact.ttf

21:43:02
Adding font: /var/task/BOOKOS.TTF

21:43:02
Adding font: /var/task/angsab.ttf

21:43:02
Adding font: /var/task/vrindab.ttf

21:43:02
Adding font: /var/task/upcib.ttf

21:43:02
Adding font: /var/task/DUBAI-REGULAR.TTF

21:43:02
Adding font: /var/task/ahronbd.ttf

21:43:02
Adding font: /var/task/ariblk.ttf

21:43:02
Adding font: /var/task/angsa.ttf

21:43:02
Adding font: /var/task/SegoeWP-Semibold.ttf

21:43:02
Adding font: /var/task/LaoUI.ttf

21:43:02
Adding font: /var/task/cambriai.ttf

21:43:02
Adding font: /var/task/seguisym.ttf

21:43:02
Adding font: /var/task/GARABD.TTF

21:43:02
Adding font: /var/task/timesbd.ttf

21:43:02
Adding font: /var/task/mvboli.ttf

21:43:02
Adding font: /var/task/corbeli.ttf

21:43:02
Adding font: /var/task/upclbi.ttf

21:43:02
Adding font: /var/task/angsauz.ttf

21:43:02
Adding font: /var/task/davidbd.ttf

21:43:02
Adding font: /var/task/kokila.ttf

21:43:02
Adding font: /var/task/segoesc.ttf

21:43:02
Adding font: /var/task/upceb.ttf

21:43:02
Adding font: /var/task/Vanib.ttf

21:43:02
Adding font: /var/task/mangalb.ttf

21:43:02
Adding font: /var/task/aparajbi.ttf

21:43:02
Adding font: /var/task/tunga.ttf

21:43:02
Adding font: /var/task/rod.ttf

21:43:02
Adding font: /var/task/LeelUIsl.ttf

21:43:02
Adding font: /var/task/mangal.ttf

21:43:02
Adding font: /var/task/ariali.ttf


#2

@russ.nichols,
I could not produce the exception with Aspose.Note for Java 19.5. Please test with latest version and mention your JDK details if exception is still thrown.


#3

I have this issue using aspose.note version 19.5.

AWS lambda runs the OpenJDK Version:1.8.0_201

I think the problem might be due to the fact that the image where AWS lambda runs only has a
single font file the dejavu font

See below list of the image font folder:

[ec2-user@ip-10-10-158-122 ~]$ ls /usr/share/fonts/
dejavu
[ec2-user@ip-10-10-158-122 ~]$ ls /usr/share/fonts/dejavu/
DejaVuSans-BoldOblique.ttf DejaVuSansCondensed-Bold.ttf DejaVuSans-ExtraLight.ttf DejaVuSerif-BoldItalic.ttf DejaVuSerifCondensed-Bold.ttf DejaVuSerif-Italic.ttf
DejaVuSans-Bold.ttf DejaVuSansCondensed-Oblique.ttf DejaVuSans-Oblique.ttf DejaVuSerif-Bold.ttf DejaVuSerifCondensed-Italic.ttf DejaVuSerif.ttf
DejaVuSansCondensed-BoldOblique.ttf DejaVuSansCondensed.ttf DejaVuSans.ttf DejaVuSerifCondensed-BoldItalic.ttf DejaVuSerifCondensed.ttf

So it appears that even if I provide fonts in a separate folder and I set aspose.note
to load all those fonts, then at PDF generation time, aspose note does not find one font
and throws the exception. It might be helpful to find out what font is looking for

I tried different variations of the font configuration, to for example provide a different default folder
and trying to substitute some

        InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("fonts/micross.TTF");
        Font font = Font.createFont(Font.TRUETYPE_FONT, is);
        DocumentFontsSubsystem documentFontsSubsystem = new DocumentFontsSubsystem(font);

        documentFontsSubsystem.loadFontsFromFolder(directoryName+"/fonts");
        DocumentFontsSubsystem.setDefault(documentFontsSubsystem);
        System.out.println("Default Font:" +DocumentFontsSubsystem.getDefault().getDefaultFont());
        System.out.println("JAVA Version:" +System.getProperty("java.version"));

On a MAC I am able to generate the PDF, although the output PDF font is always
Microsoft Sans Serif even if the OneNote was using Calibri or other fonts.


#4

@russ.nichols,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

NOTEJAVA-641 – Exception raised while converting the .ONE file to PDF