PDF Conversion

조회 수: 9 (최근 30일)
Kiyoshi
Kiyoshi 2012년 6월 22일
Hi, I'm getting the following error when I tried to convert my file to pdf:
??? Undefined variable "org" or class "org.apache.fop.apps.FopFactory.newInstance".
Error in ==> publish>fopInitialize at 543 fopFactory = org.apache.fop.apps.FopFactory.newInstance();
Error in ==> publish>publishToPdf at 501 [fopDriver, fopOutputStream] = fopInitialize(outputAbsoluteFilename);
Error in ==> publish at 193 publishToPdf(dom,options,outputAbsoluteFilename)
Error in ==> mdbpublish at 55 outputPath = publish(file, options);
??? Error using ==> open at 69 NAME must contain a single string.
Any suggestions?

답변 (1개)

Aurelien Queffurust
Aurelien Queffurust 2012년 6월 22일
It is a known issue explained in this bug report : Publishing to PDF returns errors in MATLAB® R2010b and R2011a
  댓글 수: 1
Kiyoshi
Kiyoshi 2012년 6월 22일
Yeah, I tried this, and then I got this. Prior to the error message above, I had the following:
??? Java exception occurred:
java.io.FileNotFoundException: C:\Program Files (x86)\MATLAB\R2011a
Student\toolbox\matlab\codetools\private\fop_config.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown 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.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:254)
at org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:237)
at org.apache.fop.apps.FopFactoryConfigurator.setUserConfig(FopFactoryConfigurator.java:263)
at org.apache.fop.apps.FopFactory.setUserConfig(FopFactory.java:666)
Error in ==> publish>fopInitialize at 550
fopFactory.setUserConfig(file2urn(...
Error in ==> publish>publishToPdf at 501
[fopDriver, fopOutputStream] = fopInitialize(outputAbsoluteFilename);
Error in ==> publish at 193
publishToPdf(dom,options,outputAbsoluteFilename)
Error in ==> mdbpublish at 55
outputPath = publish(file, options);
??? Error using ==> open at 69
NAME must contain a single string.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by