Package com.aspose.words

Examples of com.aspose.words.Document.save()


{
  public static void main(String[] args) throws Exception
  {
    Document doc = new Document("data/document.doc");
    Document clone = doc.deepClone();
    clone.save("data/AsposeClone.doc", SaveFormat.DOC);
  }
}
View Full Code Here


{
  public static void main(String[] args) throws Exception
  {
    Document doc = new Document("data/trackDoc.doc");
    doc.acceptAllRevisions();
    doc.save("data/AsposeAcceptChanges.doc", SaveFormat.DOC);
  }
}
View Full Code Here

     
      // Specify header title for the first page.
      builder.write("(C) 2001 Aspose Pty Ltd. All rights reserved.");

      // Save the resulting document.
      doc.save("data/AsposeFooter.doc");
  }
}
View Full Code Here

  public static void main(String[] args) throws Exception
  {
        // Load the document from disk.
        Document doc = new Document("data/document.doc");
       
        doc.save("data/html/Aspose_DocToHTML.html",SaveFormat.HTML); //Save the document in HTML format.
        doc.save("data/Aspose_DocToPDF.pdf",SaveFormat.PDF); //Save the document in PDF format.
        doc.save("data/Aspose_DocToTxt.txt",SaveFormat.TEXT); //Save the document in TXT format.
        doc.save("data/Aspose_DocToJPG.jpg",SaveFormat.JPEG); //Save the document in JPEG format.
       
        System.out.println("Aspose - Doc file converted in specified formats");
View Full Code Here

  {
        // Load the document from disk.
        Document doc = new Document("data/document.doc");
       
        doc.save("data/html/Aspose_DocToHTML.html",SaveFormat.HTML); //Save the document in HTML format.
        doc.save("data/Aspose_DocToPDF.pdf",SaveFormat.PDF); //Save the document in PDF format.
        doc.save("data/Aspose_DocToTxt.txt",SaveFormat.TEXT); //Save the document in TXT format.
        doc.save("data/Aspose_DocToJPG.jpg",SaveFormat.JPEG); //Save the document in JPEG format.
       
        System.out.println("Aspose - Doc file converted in specified formats");
  }
View Full Code Here

        // Load the document from disk.
        Document doc = new Document("data/document.doc");
       
        doc.save("data/html/Aspose_DocToHTML.html",SaveFormat.HTML); //Save the document in HTML format.
        doc.save("data/Aspose_DocToPDF.pdf",SaveFormat.PDF); //Save the document in PDF format.
        doc.save("data/Aspose_DocToTxt.txt",SaveFormat.TEXT); //Save the document in TXT format.
        doc.save("data/Aspose_DocToJPG.jpg",SaveFormat.JPEG); //Save the document in JPEG format.
       
        System.out.println("Aspose - Doc file converted in specified formats");
  }
}
View Full Code Here

        Document doc = new Document("data/document.doc");
       
        doc.save("data/html/Aspose_DocToHTML.html",SaveFormat.HTML); //Save the document in HTML format.
        doc.save("data/Aspose_DocToPDF.pdf",SaveFormat.PDF); //Save the document in PDF format.
        doc.save("data/Aspose_DocToTxt.txt",SaveFormat.TEXT); //Save the document in TXT format.
        doc.save("data/Aspose_DocToJPG.jpg",SaveFormat.JPEG); //Save the document in JPEG format.
       
        System.out.println("Aspose - Doc file converted in specified formats");
  }
}
View Full Code Here

            200,
            200,
            100,
            WrapType.SQUARE);
   
    doc.save("data/Aspose_InsertImage.docx");
   
        System.out.println("Process Completed Successfully");
  }
}
View Full Code Here

        currentRow = firstTable.getLastRow();
        table.prependChild(currentRow);
    }
    while (currentRow != row);

    doc.save("data/AsposeSplitTable.doc");
  }
}
View Full Code Here

      builder.getFont().setSize(14);
      // Specify header title for the first page.
      builder.write("Aspose.Words Header/Footer Creation Primer - Title Page.");

      // Save the resulting document.
      doc.save("data/AsposeHeader.doc");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.