-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot export my notebook as PDF. #16
Comments
Thanks for the feedback. I did the same test in the same environment, but I was not able to replicate this issue. Can you export as a Wolfram notebook in this case? If so, could you attach the content of the exported Wolfram notebook so that I can investigate the issue? |
Here is it. I have disabled all other extensions, but it failed as well. Notebook[{
Cell[BoxData[{"$Version"}],"Input"],
Cell[BoxData["\"12.3.1 for Microsoft Windows (64-bit) (June 24, 2021)\""],"Output",CellLabel->"Out[1]= "],
Cell[BoxData[{RowBox[{RowBox[{"Integrate", "[", RowBox[{RowBox[{"E", "^", RowBox[{"(", RowBox[{"-", RowBox[{"x", "^", "2"}]}], ")"}]}], ",", RowBox[{"{", RowBox[{"x", ",", "0", ",", "Infinity"}], "}"}]}], "]"}], "//", "TeXForm"}]}],"Input"],
Cell[BoxData["\"\\\\frac{\\\\sqrt{\\\\pi }}{2}\""],"Output",CellLabel->"Out[3]//TeXForm= "]
}]
|
Thanks. It seems that kernel did not convert the notebook into PDF as expected. Could you run the following code (in the session where export as PDF fails) that tests this functionality? notebook = Import[".../test.nb", "Text"]; (*replace ... with the path to the exported Wolfram notebook*)
pdf = BaseEncode[ExportByteArray[ToExpression[notebook, InputForm], "PDF"], "Base64"];
{Head[pdf], StringLength[pdf]} If everything is normal, the result should be |
I copied the code into 1643281092689.mp4However when I tested it in exported 1643281086270.mp4 |
Thanks for doing the tests! The error in the wlnb showed that the kernel somehow failed to execute The final thing I want to check is what would happen if you run this code from the text-based kernel program (or running WolframKernel from the terminal), because it is close to how everything works in wlnb. Since the same problem does not occur on my end, reinstalling Mathematica may help. |
Describe the bug
I can not export my notebook as PDF. It tells me "Failed to export the notebook."
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: