https://bugs.winehq.org/show_bug.cgi?id=40517
Bug ID: 40517 Summary: Office 2007 shows error message "Unexpected error during export" when trying to export document as PDF file Product: Wine Version: 1.9.8 Hardware: x86 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: sebastian@fds-team.de CC: bunglehead@gmail.com Regression SHA1: 12fbfe838c2e6f41ead7445decc447b41921474a Distribution: ---
When trying to export a document as PDF, an error message shows up saying that the export failed.
Bisecting returns: --- snip --- $ git bisect good There are only 'skip'ped commits left to test. The first bad commit could be any of: 12fbfe838c2e6f41ead7445decc447b41921474a 72da5888e9e96e9cfc09c4d5a0e4ab0ecea8f64d We cannot bisect more! --- snip ---
Before 12fbfe838c2e6f41ead7445decc447b41921474a everything was working "fine". At commit 12fbfe838c2e6f41ead7445decc447b41921474a a crash dialog appears. After commit 72da5888e9e96e9cfc09c4d5a0e4ab0ecea8f64d an error dialog shows up.
As it seems, Office is not really happy about the return value of the CreateFontPackage() stub implementation:
--- snip --- fixme:fontsub:CreateFontPackage (0xcc00000 179368 0x335cfc 0x335cf0 0x335cf4 0x1 0 0 0 3 65535 0x3707b10 23 0x32610674 0x328a6d62 0x328a6e8d (nil)): stub fixme:fontsub:CreateFontPackage (0xcc00000 179368 0x335d18 0x335d0c 0x335d10 0x9 0 0 0 3 65535 0x3b882f8 2 0x32610674 0x328a6d62 0x328a6e8d (nil)): stub --- snip ---
Returning EMBED_NOEMBEDDING from TTGetEmbeddingType also avoids the issue.