This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.cad as cad | |
from aspose.cad.imageoptions import PdfOptions | |
# Define the path for the working directory and apply Aspose.CAD license. | |
dataDir = "data" | |
license = cad.License() | |
license.set_license("latest.lic") | |
# Load the source SVG file by calling the load method. | |
image = cad.Image.load(dataDir+"paths.svg") | |
# Create an instance of the CadRasterizationOptions class. | |
cadRasterizationOptions = cad.imageoptions.CadRasterizationOptions() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ae = require('@aspose/email'); | |
// Load the MSG file | |
const msg = ae.MapiMessage.fromFile("sample_reaction.msg"); | |
// Get the list of reactions | |
const reactions = ae.FollowUpManager.getReactions(msg); | |
// Display reaction details | |
if (reactions && reactions.length > 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emoji_map = { | |
"like": "👍", | |
"love": "❤️", | |
"laugh": "😂", | |
"surprised": "😮", | |
"sad": "😢", | |
"angry": "😠" | |
} | |
print("Emoji:", emoji_map.get(reaction.reaction_type, "")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool hasMultipleContacts = VCardContact.IsMultiContacts("multi_contacts.vcf"); | |
Console.WriteLine("The VCF file contains multiple contacts: " + hasMultipleContacts); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (IGmailClient client = GmailClient.GetInstance(clientId, clientSecret, refreshToken, email)) | |
{ | |
// Create a message to append to the "Inbox" | |
MailMessage message = new MailMessage("[email protected]", "[email protected]", "Subject for inbox message", "Body of the message"); | |
// Append the message to the inbox with the "INBOX" label | |
string messageId = client.AppendMessage(message, "INBOX"); | |
Console.WriteLine($"Message appended to the Inbox. ID: {messageId}"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msg = MapiMessage.Load("input.msg"); | |
msg.Save("template.oft", SaveOptions.DefaultOft); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reader = MboxStorageReader.CreateReader("input.mbox", new MboxLoadOptions()); | |
// Filter: messages from a specific domain and sent this year | |
var mqb = new MailQueryBuilder(); | |
mqb.From.Contains("@example.com"); | |
mqb.SentDate.Since(new DateTime(DateTime.Today.Year, 1, 1)); | |
var query = mqb.GetQuery(); | |
// Page through message info (metadata only) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the PST file | |
using (var pst = PersonalStorage.FromFile("sample.pst")) | |
{ | |
// Specify the EntryId of the target message | |
var targetEntryId = "..."; // Your message's EntryId here | |
// Extract the attachments collection for this message | |
var attachments = pst.ExtractAttachments(targetEntryId); | |
// Check if any attachments exist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msg = MapiContact.FromVCard("contact.vcf").GetUnderlyingMessage(); | |
var htmlSaveOptions = new HtmlSaveOptions | |
{ | |
HtmlFormatOptions = HtmlFormatOptions.RenderVCardInfo | HtmlFormatOptions.WriteHeader | |
}; | |
msg.Save("contact.html", htmlSaveOptions); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspose.HTML for Python via .NET – Work with HTML Documents |