Convert Word containing ink to PDF

Hi there

I need to convert a word document (docx) with ink to a pdf/a document. Although I found many different forum entries, unfortunately I did not find a solution to this problem. Is it basically not possible to perform this conversion with Aspose or do I have to set any options?

Thank you for your help!
Best,
Michael
Testfile_Short.docx (23.8 KB)

Aspose_638665094275106429.pdf (3.0 MB)

@asposecomatic

To convert a Word document (DOCX) containing ink annotations to a PDF/A document using Aspose.Words, you can utilize the PdfSaveOptions class, which allows you to specify various options for the PDF output, including compliance with PDF/A standards.

Here’s a basic example of how to perform the conversion:

import com.aspose.words.Document;
import com.aspose.words.PdfSaveOptions;
import com.aspose.words.PdfCompliance;

public class ConvertWordToPdfA {
    public static void main(String[] args) {
        try {
            // Load the Word document
            Document doc = new Document("path/to/your/document.docx");

            // Create PdfSaveOptions and set compliance to PDF/A-1b
            PdfSaveOptions saveOptions = new PdfSaveOptions();
            saveOptions.setCompliance(PdfCompliance.PDF_A_1_B);

            // Save the document as PDF/A
            doc.save("path/to/output/document.pdf", saveOptions);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Important Notes:

  1. Ink Annotations: Ensure that the ink annotations in your Word document are supported by Aspose.Words. The library is designed to handle various content types, but specific features may have limitations.
  2. PDF/A Compliance: The PdfCompliance enumeration allows you to specify different PDF/A standards. In the example above, we set it to PDF/A-1b, which is commonly used for archiving documents.
  3. Additional Options: Depending on your requirements, you may want to explore other properties of PdfSaveOptions to customize the output further, such as embedding fonts or optimizing the document size.

For more detailed information on the options available when converting documents to PDF, you can refer to the Aspose documentation on specifying rendering options and PDF/A features.

If you encounter any issues or have specific requirements regarding the ink annotations, please let me know!

I already tried your approach, but it did not help…

@asposecomatic Could you please attach your problematic input and output documents here for our reference? We will check the issue and provide you more information.

Just added :slight_smile:

@asposecomatic The document use ISF - binary ink format that is not currently supported by Aspose.Words. Unfortunately, implementation of it is not yet scheduled. Please accept our apologies for your inconvenience.

The feature request is logged in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27238

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hey @alexey.noskov

Thanks for your reply, that’s a shame.

Does that mean that with paid support, I could submit a feature request so that ISF binary Ink would be supported in Word to PDF conversion? If so, how long would it take to implement? Would there be any additional costs?

@asposecomatic I am afraid, we cannot promise you any estimate. This is a rather complex feature with quite low demand. Raising the issue priority in paid support will push the issue upper in the queue, but do not guarantee a fast fix.