Skip to content

Docx to Pdf, the string was truncated when both unicode and ascii char exist and cell margin is 0 #388

@fzxbl237

Description

@fzxbl237

Code

var loadOptions = new LoadOptions
        {
            MswVersion = MsWordVersion.Word2007
        };

        var document = new Aspose.Words.Document(@"Demo.docx", loadOptions);
        document.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2007);
            
        var pdfSaveOptions = new PdfSaveOptions() 
        {
            SaveFormat = SaveFormat.Pdf
        };
        document.Save(@"Demo.pdf", pdfSaveOptions);

#Demo file

Demo.docx

Demo.pdf

Image

demo.docx

Image

demo.pdf

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions