Skip to content

Instantly share code, notes, and snippets.

@sohail-aspose
sohail-aspose / Aspose.Storage-Cloud-Ruby
Created August 7, 2018 16:00
The GIST contains Ruby Examples of Aspose.Storage Cloud APIs.
The GIST contains Ruby Examples of Aspose.Storage Cloud APIs.
@sohail-aspose
sohail-aspose / Aspose.Words-Cloud-.NET
Last active March 24, 2018 08:56
The GIST contains .NET Examples of Aspose.Words Cloud APIs.
The GIST contains .NET Examples of Aspose.Words Cloud APIs.
@sohail-aspose
sohail-aspose / Aspose.OMR-Cloud-.NET
Created March 5, 2018 12:08
The GIST contains .NET Examples of Aspose.OMR Cloud APIs.
The GIST contains .NET Examples of Aspose.OMR Cloud APIs.
@sohail-aspose
sohail-aspose / Aspose.Video-for-Cloud-.NET
Created February 15, 2018 12:55
This Gist contains .NET examples of Aspose.Video for Cloud
This Gist contains .NET examples of Aspose.Video for Cloud
@sohail-aspose
sohail-aspose / Examples-CSharp
Created December 22, 2016 04:38 — forked from aspose-cells/Aspose.Cells for .NET
This Gist contains CSharp code snippets for examples of Aspose.Cells for .NET.
Examples-CSharp
// For complete examples and data files, please go to https://github.com/aspose-cad/Aspose.CAD-for-Java
// The path to the resource directory.
String dataDir = Utils.getDataDir(ConvertAllCADLayersToSeparateImages.class) + "CADConversion/";
String srcFile = dataDir + "conic_pyramid.dxf";
// Load a CAD drawing in an instance of CadImage
CadImage image = (CadImage) Image.load(srcFile);
// Create an instance of CadRasterizationOptions
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Java
// Open source PDF document
Document pdfDocument = new Document("input.pdf");
// Delete all annotation
pdfDocument.getPages().get_Item(1).getAnnotations().delete();
// Save the update document
pdfDocument.save("output.pdf");
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Slides-for-Java
// Create empty presentation instance
Presentation newPptx = new Presentation();
// Adding the Media Player ActiveX control
newPptx.getSlides().get_Item(0).getControls().addControl(ControlType.WindowsMediaPlayer, 100, 100, 400, 400);
// Access the Media Player ActiveX control and set the video path
newPptx.getSlides().get_Item(0).getControls().get_Item(0).getProperties().set_Item("URL", "Wildlife.wmv");
@sohail-aspose
sohail-aspose / Examples-CSharp-Email-SaveMessageAsOFT-SaveMessageAsOFT.cs
Last active May 19, 2016 13:31 — forked from aspose-email/AppConfigSMTPClientActivityLogging.config
This Gist contains code snippets for sample code of Aspose.Email
// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-.NET
/// <summary>
/// This exmpale shows how to save an email as Outlook Template (.OFT) file using the MailMesasge API
/// MsgSaveOptions.SaveAsTemplate - Set to true, if need to be saved as Outlook File Template(OFT format).
/// Available from Aspose.Email for .NET 6.4.0 onwards
/// </summary>
using (MailMessage eml = new MailMessage("test@from.to", "test@to.to", "template subject", "Template body"))
{
string oftEmlFileName = "EmlAsOft.oft";
@sohail-aspose
sohail-aspose / Converting a Specific Slide to PDF.java
Created May 10, 2016 12:23
Converting a Specific Slide to PDF
//Instantiate a Presentation object that represents a presentation file
Presentation pres = new Presentation("demo.pptx");
//Setting array of slides positions
int[] slides = new int[] { 2, 3, 5 };
//Save the presentation to PDF
pres.save("demo.pdf", slides, SaveFormat.Pdf);