HTML to PDF PDF.NET fonts error on macOS

sadly I still use FontRepository.LoadFonts(); I’m not sure if my fonts are “good”. I mean I use the fonts from office for mac. Path: /Applications/Microsoft\ Word.app/Contents/Resources/DFonts maybe I should copy mscore fonts from some linux system.

@cschmitt

You may copy mscore fonts from linux system or install the package with Microsoft compatible fonts: ttf-mscorefonts-installer. ( e.g.: sudo apt-get install ttf-mscorefonts-installer )

These fonts should be placed in “/usr/share/fonts/truetype/msttcorefonts” folder (our API scan this folder on Linux like systems). If your OS has other default folder for fonts, you should keep following command at the beginning of your code as mentioned in your code already:

Aspose.Pdf.Text.FontRepository.Sources.Add(new FolderFontSource("<user's path to ms fonts>"))

We hope this will be helpful.

Actually I tried everything now however it still won’t work.

with a temporary license I get a different error:

System.NullReferenceException: Object reference not set to an instance of an object.
   at #=zOL931fUr_OVzcG0cX7B5ZMNanJ1UeCnh2PCHntc=.#=z07uPIWZOYJNi(#=zbzZwe_AQy8UOCQIc4qa7UunQ1JBcn2cPHg== #=z1gcEu3k=, Char #=zg6m4HVc=)
   at #=zOL931fUr_OVzcG0cX7B5ZMNanJ1UeCnh2PCHntc=.#=z07uPIWZOYJNi(#=zbzZwe_AQy8UOCQIc4qa7UunQ1JBcn2cPHg== #=z1gcEu3k=)
   at #=zf_XiHEHclcw5E9yIqNDNz2RLMq3VXVidFz7fZRkNYTxI.#=zIhpZse4=()
   at #=zly3aAjX1oihDx$GCEu8bhWocy9goAvJwnyNxaG_vUDPC.#=z7xJLsatDrhw3()
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=zM9LGwpYVoJPK()
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=z51MNEyrjUX_OcRcEGGrpjDs=(List`1 #=z4AOz1Gc=, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=)
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=zRZ_9Hq_nFspnYCW7sw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, List`1 #=zq$hssOA=)
   at #=zofqkBRbXsJBx8l788awA85U49tuI$XxiQ3mYV7cEze3H.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY)
   at #=zofqkBRbXsJBx8l788awA85U49tuI$XxiQ3mYV7cEze3H.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zTIO9yhqnG8le(#=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=z4aRUUKOeDYxw, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zRW7v_ieaQiRQ(List`1 #=zq$hssOA=, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=z4aRUUKOeDYxw, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zpaYXpYU=, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=zwFr_rQlSNxJAXWr58xYqoVD625AWyBdAua1X4Yg=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zOqP8UQzxjUqSMPrWUw==, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY, List`1 #=zCYE2d8ghbdB1)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zOqP8UQzxjUqSMPrWUw==, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq, List`1 #=zCYE2d8ghbdB1)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6)
   at #=zwFr_rQlSNxJAXWr58xYqoVD625AWyBdAua1X4Yg=.#=zvk1EKNHVWSJ1(Int32 #=zwzhV033EhMTH, Boolean #=zUBnlJjtO4M1Q, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=z2kDhL2MXHQKC)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=zvk1EKNHVWSJ1(Int32 #=zwzhV033EhMTH, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=z2kDhL2MXHQKC)
   at #=z3raz2QsEGMM3pv0cdeGDGoOQU$Hrn_O9u_J7JxySoo5S.#=zUhXu42cVQ$w8()
   at #=zO8HLO4SUUi6dHSVLxKACxN9iwRWcwXR8Vg==.#=zLxWRgMO8v2F1(#=z3whaN3pHpuNTgHX_Re4x_Q7QcmTcEQcpGglKjbvPG0Q$ #=z5Zvr$6wrTKNX)
   at #=zu$ASKCBwNBZFCkSlL8tLQY1D4Dgxy9skftB2PVfaSA7f.#=zXitnQFI=(#=z7yhUgs9XPckghCw7wO$r4dZaH2sDLy11HTPOIBQ= #=zshb_3j0=)
   at #=zu$ASKCBwNBZFCkSlL8tLQY1D4Dgxy9skft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zZUpKj5n(#=zdt8lLBk3$HPwav1XmdTlvRc= #=zO4dKBj_W61lH0GGLgw==, #=zwmfDxpGLZSqZ4GAkWV0La2y277om[] #=zYxqKnTEnk87q, #=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, TimeSpan #=zd8xDpC8=)
   at #=zicvjhVXIFbVJvzHHr9dN$qzQ74hK.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, TimeSpan #=zd8xDpC8=, #=zt5Zv_olaYL9l1dCL9yBWuPU=[] #=zsy0$r$I=)
   at #=z_vBYH06eUazFzIOsurwlReIs33$K.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, #=zAJf5knY= #=z_R$Qewk=, TimeSpan #=zd8xDpC8=)
   at #=z_vBYH06eUazFzIOsurwlReIs33$K.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, #=zAJf5knY= #=z_R$Qewk=)
   at #=z9YNBd3PWBYXKj20HU_rwBaRhKz3R.#=zDE9B1zw=(Stream #=zO2FGWncL3ouD, Document #=zhIq3gn2tyPBl, HtmlLoadOptions #=zE1pPT3IS0Eqd, String #=zQXY7vm0cF2L1)
   at #=z9YNBd3PWBYXKj20HU_rwBaRhKz3R.#=zDE9B1zw=(Stream #=zO2FGWncL3ouD, Document #=zhIq3gn2tyPBl, HtmlLoadOptions #=zE1pPT3IS0Eqd)
   at Aspose.Pdf.Document.#=zofxKmy8=(Stream #=zZRmoOhs=, LoadOptions #=zauRjRxU=)
   at Aspose.Pdf.Document..ctor(Stream input, LoadOptions options)
   at Aspose.Test.Pdf.Program.Main(String[] args) in /Users/schmitch/projects/schmitch/dotnet/Aspose.Test.Pdf/Aspose.Test.Pdf/Program.cs:line 65


Also the fonts are correct since I can generate a simple pdf with just calibri via:

        static void Instant(Font font)
        {
            var doc = new Document
            {
                EmbedStandardFonts = true
            };
            Page page = doc.Pages.Add();
            TextFragment text = new TextFragment(demo);
            text.TextState.Font = font;
            page.Paragraphs.Add(text);
            doc.Convert(new PdfFormatConversionOptions(PdfFormat.PDF_A_3B));
            doc.Save("hase.pdf");
        }

however html to pdf does not work.

@cschmitt

Please ensure libgdiplus package is installed in your environment or reinstall it if already installed. There are not any environment specific limitations of the API so we are hopeful your problem of NullReferenceException will probably be resolved as well.

I have libgdiplus already installed:

✗ brew info mono-libgdiplus
mono-libgdiplus: stable 5.6.1 (bottled)
GDI+-compatible API on non-Windows operating systems
https://www.mono-project.com/docs/gui/libgdiplus/
/usr/local/Cellar/mono-libgdiplus/5.6.1 (13 files, 930.0KB) *
  Poured from bottle on 2019-06-03 at 09:21:32
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mono-libgdiplus.rb
==> Dependencies
Build: autoconf ✔, automake ✘, libtool ✔, pkg-config ✔
Required: cairo ✔, fontconfig ✔, freetype ✔, gettext ✔, giflib ✔, glib ✔, jpeg ✔, libexif ✔, libpng ✔, libtiff ✔, pixman ✔
✗ brew install mono-libgdiplus
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.

Warning: mono-libgdiplus 5.6.1 is already installed and up-to-date
To reinstall 5.6.1, run `brew reinstall mono-libgdiplus`

@cschmitt

Since this thread has intermixed few exceptions, errors and scenarios so would you kindly compile the details about NullReferenceException that you are facing lately. Kindly share SSCCE code and mention if this is a file specific issue or if it occurs with every file you work with. Please also share a sample ZIP file so that we may try to reproduce it and assist you efficiently.

Start: Loading Document
System.NullReferenceException: Object reference not set to an instance of an object.
   at #=zOL931fUr_OVzcG0cX7B5ZMNanJ1UeCnh2PCHntc=.#=z07uPIWZOYJNi(#=zbzZwe_AQy8UOCQIc4qa7UunQ1JBcn2cPHg== #=z1gcEu3k=, Char #=zg6m4HVc=)
   at #=zOL931fUr_OVzcG0cX7B5ZMNanJ1UeCnh2PCHntc=.#=z07uPIWZOYJNi(#=zbzZwe_AQy8UOCQIc4qa7UunQ1JBcn2cPHg== #=z1gcEu3k=)
   at #=zf_XiHEHclcw5E9yIqNDNz2RLMq3VXVidFz7fZRkNYTxI.#=zIhpZse4=()
   at #=zly3aAjX1oihDx$GCEu8bhWocy9goAvJwnyNxaG_vUDPC.#=z7xJLsatDrhw3()
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=zM9LGwpYVoJPK()
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=z51MNEyrjUX_OcRcEGGrpjDs=(List`1 #=z4AOz1Gc=, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=)
   at #=zSSqOYkctc8_YPCsGMhx82SOG$N7kDtdnCyHVlBL2kCX1sTKFbx9yxhg=.#=zRZ_9Hq_nFspnYCW7sw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, List`1 #=zq$hssOA=)
   at #=zofqkBRbXsJBx8l788awA85U49tuI$XxiQ3mYV7cEze3H.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY)
   at #=zofqkBRbXsJBx8l788awA85U49tuI$XxiQ3mYV7cEze3H.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zTIO9yhqnG8le(#=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=z4aRUUKOeDYxw, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zRW7v_ieaQiRQ(List`1 #=zq$hssOA=, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=z4aRUUKOeDYxw, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, Stack`1 #=zT0Mh8xVdFg6E, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zpaYXpYU=, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=z02KkDt4H2TZX, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq)
   at #=z_GbJzc4L1qGmx9Afm0aHRaBhgfh81huYL$d3Q9oud2tT.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=zLbZHOAPePUHusF9Dbw==(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zs$oXhrk=, Int32 #=z2MTuBsI=)
   at #=zwFr_rQlSNxJAXWr58xYqoVD625AWyBdAua1X4Yg=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zOqP8UQzxjUqSMPrWUw==, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zl8yKEfIlQTUY, List`1 #=zCYE2d8ghbdB1)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6, #=zpeKV3fK126a4eR8xZQD1UpQjWFoN5ju8tTk4hj0= #=zOqP8UQzxjUqSMPrWUw==, #=zs0jtGuNpSMAaDQptV0iXao_YA13qtb_$6ajQXJo= #=zoRzduQpcgKaq, List`1 #=zCYE2d8ghbdB1)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=z7JQjRFLlMSrC(#=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=zoTmku_E1NA7b, Int32 #=zHMb4q9IiP8s6)
   at #=zwFr_rQlSNxJAXWr58xYqoVD625AWyBdAua1X4Yg=.#=zvk1EKNHVWSJ1(Int32 #=zwzhV033EhMTH, Boolean #=zUBnlJjtO4M1Q, #=z53o0atZY$LnASGCXrdj8v9PSuYyxxv1NGb80fGY= #=z2kDhL2MXHQKC)
   at #=zoMiPA3XWOaOp9KqNa2hBT$U3004B17Hp59VfKjc=.#=zvk1EKNHVWSJ1(Int32 #=zwzhV033EhMT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QnB3jzSD4hcSUc9W #=zB7TC8zNXYoLqWe0QHQ==)
   at #=z5RXKT8yvKr15cS4JI21XNDZTfENwscXm7w==.#=zKcxFicE=(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, #=zwmfDxpGLZSqZ4GAkWV0La2y277om #=zf0fMN3Y=)
   at #=zwmfDxpGLZSqZ4GAkWV0La2y277om.#=zKcxFicE=(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=)
   at #=zL6Vj3Og6_JzvX4Gm3_lgEYMyZGKU.#=z1d3vuEo=()
   at #=zL6Vj3Og6_JzvX4Gm3_lgEYMyZGKU.MoveNext()
   at #=zt_IZGtinRyTWeL4mnjVhkgI0SjA5O_1oJg==.#=zozQBzZUpKj5n(#=zdt8lLBk3$HPwav1XmdTlvRc= #=zO4dKBj_W61lH0GGLgw==, #=zwmfDxpGLZSqZ4GAkWV0La2y277om[] #=zYxqKnTEnk87q, #=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, TimeSpan #=zd8xDpC8=)
   at #=zicvjhVXIFbVJvzHHr9dN$qzQ74hK.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, TimeSpan #=zd8xDpC8=, #=zt5Zv_olaYL9l1dCL9yBWuPU=[] #=zsy0$r$I=)
   at #=z_vBYH06eUazFzIOsurwlReIs33$K.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, #=zAJf5knY= #=z_R$Qewk=, TimeSpan #=zd8xDpC8=)
   at #=z_vBYH06eUazFzIOsurwlReIs33$K.Render(#=zuTu8FT0$o6s8fUQQz1JtbS6wXWcm #=zeJDrXYU=, #=zAJf5knY= #=z_R$Qewk=)
   at #=z9YNBd3PWBYXKj20HU_rwBaRhKz3R.#=zDE9B1zw=(Stream #=zO2FGWncL3ouD, Document #=zhIq3gn2tyPBl, HtmlLoadOptions #=zE1pPT3IS0Eqd, String #=zQXY7vm0cF2L1)
   at #=z9YNBd3PWBYXKj20HU_rwBaRhKz3R.#=zDE9B1zw=(Stream #=zO2FGWncL3ouD, Document #=zhIq3gn2tyPBl, HtmlLoadOptions #=zE1pPT3IS0Eqd)
   at Aspose.Pdf.Document.#=zofxKmy8=(Stream #=zZRmoOhs=, LoadOptions #=zauRjRxU=)
   at Aspose.Pdf.Document..ctor(Stream input, LoadOptions options)
   at Aspose.Test.Pdf.Program.Main(String[] args) in /Users/schmitch/projects/schmitch/dotnet/Aspose.Test.Pdf/Aspose.Test.Pdf/Program.cs:line 26

Process finished with exit code 0.

Here is my sample Project, however a developer still needs to copy a license file into the Project folder with the name Aspose.PDF.lic
demo.zip (1.1 KB)

Changing the HTML does not change a fact. I mean I have the simpliest html that can be used.
My Platform:
macOS Mojave
Version: 10.14.5
dotnet --version
2.2.106

@cschmitt

We are setting up the environment and will get back to you with our findings soon.

anything new about the issue?

@cschmitt

We are checking the details and will share our findings with you within a couple of days. We appreciate your patience and cooperation in this regard.

@cschmitt

Thank you for being patient.

We have managed to reproduce the exception in our environment. A ticket with ID PDFNET-46706 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

hello, is there anything new about the issue at hand? it’s now like 6 month ago without any news at all.

@cschmitt

We are afraid it is still pending owing to previously logged tickets. It is logged under free support model where issues are investigated on first come first serve basis so the resolution may take few more months. We appreciate your patience and cooperation.

to be fair, if I would’ve bought a license I would be really pissed, since the html to pdf functionality does not work at all under macos, which is kinda different than, “some stuff is broken”.

@cschmitt

We are sorry for the inconvenience caused.

Please note that we offer free 30-days temporary license to evaluate the API in its full capacity before purchasing a license. Moreover, several customers are using the API in Mac OS environment as well but for your problem, we will be sharing our findings with you once the ticket is investigated. Thank you for understanding.

Hello there,

has it been any progress on this issue? I think I’m facing exactly the same problem, this is the my post:

@Middiu

We are afraid that the earlier logged ticket is not yet resolved. However, we have updated its information as per your comments and will let you know once we have some updates regarding its rectification. Please spare us some time.

We are sorry for the inconvenience.

oh really, after two years still no solution?

The issues you have found earlier (filed as PDFNET-46706) have been fixed in Aspose.PDF for .NET 22.7.