Skip to content

Instantly share code, notes, and snippets.

@aspose-pdf
aspose-pdf / Aspose-Pdf-Facades
Last active February 6, 2025 03:12
Aspose-Pdf-Facades
Aspose-Pdf-Facades
@aspose-pdf
aspose-pdf / Aspose-Pdf-Generator
Last active January 16, 2017 06:04
Gist to contain examples of AsposePdfGenerator
Aspose-Pdf-Generator
@aspose-pdf
aspose-pdf / Examples-CSharp-AsposePDF-Annotations-AddAnnotation-AddAnnotation.cs
Last active February 6, 2025 03:14
This Gist contains examples of Aspose.Pdf for .Net
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.PDF-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Annotations();
// Open document
Document pdfDocument = new Document(dataDir + "AddAnnotation.pdf");
// Create annotation
TextAnnotation textAnnotation = new TextAnnotation(pdfDocument.Pages[1], new Aspose.Pdf.Rectangle(200, 400, 400, 600));
textAnnotation.Title = "Sample Annotation Title";
@aspose-pdf
aspose-pdf / ConvertPostScriptFileToPDFFormat.java
Last active November 3, 2020 20:00
This Gist contains examples of Aspose.Pdf for Java
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Java
// Create a new instance of PsLoadOptions
com.aspose.pdf.LoadOptions options = new com.aspose.pdf.PsLoadOptions();
// Open .ps document with created load options
Document pdfDocument = new Document("input.ps", options);
// Save document
pdfDocument.save("PSToPDF_out.pdf");