need help: how to merge multiple DOCX files into one, keep the original page no?

Home Forums Open-Xml-PowerTools need help: how to merge multiple DOCX files into one, keep the original page no?

This topic contains 1 reply, has 2 voices, and was last updated by  Anonymous 4 years, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9791

    Anonymous

    If your requirements is to combine multiple word document into a single word document programmatically, then you can try GroupDocs.Merger Cloud. It is a REST API solution to merge and split documents.

    cURL example:

    // First get Access Token
    // Get App Key and App SID from https://dashboard.groupdocs.cloud/
    curl -X POST “https://api.groupdocs.cloud/connect/token”
    -d “grant_type=client_credentials&client_id=[App_SID]&client_secret=[App_Key]”
    -H “Content-Type: application/x-www-form-urlencoded”
    -H “Accept: application/json”

    // Upload soruce document to GrupDocs default Storage
    curl -X PUT “https://api.groupdocs.cloud/v1.0/merger/storage/file/Temp/Test1.docx”
    -H “accept: application/json”
    -H “authorization: Bearer [Access_Token]”
    -H “Content-Type: multipart/form-data”
    -F “File=@C:/Temp/Testv1.docx”

    // Merge Documents from GroupDocs default Storage
    curl -X POST “https://api.groupdocs.cloud/v1.0/merger/join”
    -H “accept: application/json”
    -H “authorization: Bearer [Access_Token]”
    -H “Content-Type: application/json” -d “{ “JoinItems”: [ { “FileInfo”: { “FilePath”: “Temp/Testv1.docx”, } },{ “FileInfo”: { “FilePath”: “Temp/Test2.docx”, } },{ “FileInfo”: { “FilePath”: “Temp/Test3.docx”, } } ], “OutputPath”: “Temp/GroupDocs_Merger.docx”}”

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.