Skip to content

Android Aspose.PDF转档格式不支持问题 #5

@chiyan171

Description

@chiyan171
public static final int None = 0;
public static final int Doc = 1;
public static final int Xps = 2;
public static final int Html = 3;
public static final int Xml = 4;
public static final int TeX = 5;
public static final int DocX = 6;
public static final int Svg = 7;
public static final int MobiXml = 8;
public static final int Excel = 9;
public static final int Epub = 10;
public static final int Plugin = 11;
public static final int Pptx = 14;

但是实际在转档的过程中,错误提示不支持:
class com.aspose.pdf.internal.ms.System.ArgumentException: Save a document to a doc format is not supported.

核心code:

                inputStream = getContext().getAssets().open("Aspose.Pdf.lic");
                License license = new License();
                license.setLicense(inputStream);
                if (Document.isLicensed()) {
                    Document document = new Document(path);
                    String path_pre = sd卡路径 + "/aspose_output.doc";
                    document.save(path_pre, SaveFormat.Doc);
                }

jar版本信息: aspose-pdf-18.6-android.via.java.jar

希望贵方能确认,并尽快回复。
是否Android支持贵方列出来的所有格式。
邮箱联系方式:1627524135@qq.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions