// This code example demonstrates how to set the basic information of a PDF document. // Open source document PdfFileInfo fileInfo = new PdfFileInfo("D:\\Files\\PDF\\sample.pdf"); // Set PDF information fileInfo.setAuthor("Aspose"); fileInfo.setTitle("Editing Metadata"); fileInfo.setKeywords("Aspose.Pdf, DOM, API"); fileInfo.setSubject("PDF Information"); fileInfo.setCreator("Aspose"); // Save updated file fileInfo.saveNewInfo("D:\\Files\\PDF\\Updated_Info_output.pdf");