SaveXps
Convert and save the previously opened PDF-document as Xps-document.
func (document *Document) SaveXps(filename string) error
Parameters:
Return:
- error - contains an error or nil if absent
Example:
package main
import "github.com/aspose-pdf/aspose-pdf-go-cpp"
import "log"
func main() {
// Open(filename string) opens a PDF-document with filename
pdf, err := asposepdf.Open("sample.pdf")
if err != nil {
log.Fatal(err)
}
// SaveXps(filename string) saves previously opened PDF-document as Xps-document with filename
err = pdf.SaveXps("sample.xps")
if err != nil {
log.Fatal(err)
}
// Close() releases allocated resources for PDF-document
defer pdf.Close()
}