Clear Filters
Clear Filters

Error while trying to publish on PDF format

6 views (last 30 days)
Hi all,
I have just installed 2011a and I am trying to publish some code on pdf. Even though html works smoothly, the pdf choice lead to the following error...
??? Java exception occurred: C:\Program Files\MATLAB\R2011a\toolbox\matlab\codetools\private\fop_config.xml (The
system cannot find the file specified)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)
at Source)
at Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(
at org.apache.fop.apps.FopFactory.setUserConfig(
Error in ==> publish>fopInitialize at 550
Error in ==> publish>publishToPdf at 501
[fopDriver, fopOutputStream] = fopInitialize(outputAbsoluteFilename);
Error in ==> publish at 193
Error in ==> mdbpublish at 55
outputPath = publish(file, options);
??? Error using ==> open at 69
NAME must contain a single string.
any ideas?
Thanks, Nick

Accepted Answer

Matthew Simoneau
Matthew Simoneau on 11 Apr 2011
Sorry for the trouble, Nick. This is a known issue. The workaround is here:
  1 Comment
Chinonso Ovuegbe
Chinonso Ovuegbe on 2 Apr 2020
How come this bug isn't fixed. I'm using R2018a. Does this fix also work for my version?

Sign in to comment.

More Answers (1)

Nick Baltas
Nick Baltas on 11 Apr 2011
sweet! works perfectly. It would be good if these changes were incorporated in a future version of Matlab. many thanks Matthew!


Find more on Introduction to Installation and Licensing in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!