Change Settings of TimeLine and Milestone Shapes using Aspose.Diagram for .NET 4.4.0

aspose Diagram for net 100 Change Settings of TimeLine and Milestone Shapes using Aspose.Diagram for .NET 4.4.0We are happy to announce that the Aspose.Diagram for .NET 4.4.0 is released and available on NuGet. This new release adds change setting features of TimeLine and Milestone shapes. The Configure Timeline and Milestone dialog boxes can now be managed by these new features. Users can also get property of selective shape by passing property name parameter. Detailed release notes are listed below.

Setting the Timeline Dialog Box

Timelines help you plan and communicate project schedules by showing project phases and deadlines in a format that’s easy to read and understand. In previous, users were able to place Timeline shapes on the Visio drawing page. However, they were not able to manage the configuration TimeLine dialog box values. You can find the details of this feature in the following help topic: Set Time Period and Date Format of TimeLine Shape

Setting the Milestone Dialog Box

Using the Microsoft Office Visio, users can quickly create clean, organized timelines that make it easy to order events and share information. Previously, Aspose.Diagram API allows to populate the timeline with your milestones and intervals. There was no way to set the date, date format, type and auto update flag. These features are now supported. Features we added across the API allow the milestones to update date, date format, type and auto update flag to create professional diagrams. Specifically, we made it easier: Set Milestone Shape Properties

Read Shape’s Property by Name

Developers can now retrieve a Shape’s property using its name. The Shape.PropCollection.GetProp method searches all properties of the shape. Previously, it was difficult to find the exact property ID, and then get the property. With this latest release, we just need to pass the exact property name. Developers can use either the property ID or name: the PropCollection.GetProp method gives developers these options. You can find the details of this feature in the following help topic: Reading Visio Shape Data

Public API Changes

The following API changes in the new version are also worth noting:

  • The PropCollection.GetProp( string name) method has been added. This method takes a property name as parameter to get shape property.

  • The new TimeLineHelper class has been added. It allows developers to modify TimeLine shape dialog box.

  • The new MilestoneHelper class has been added. It allows developers to modify Milestone shape dialog box.

Other Bug Fixes

This new version brings fixes to reported bugs, error messages and include various other enhancements. Please see the complete list of bugs fixed in the new version.

  • Fixed: .NET Application gets stuck while adding a container shape on the diagram page.

  • Fixed: NullReferenceException message when saving VSDX/VSD to PDF/HTML formats.

  • Fixed: Error in the elements when loading VSD drawing.

  • Fixed: Shape’s hyperlink is not visible in the output VDX format using Microsoft Visio 2013 Viewer.

  • Fixed: Shape’s data is not visible using Microsoft Visio 2013 Viewer.

  • Fixed: VSD to PDF conversion, the portion of the source PDF file gets cut off.

  • Fixed: VSD to PDF conversion, all smiley faces and a few shape colors are changed.

  • Fixed: VSD to PDF conversion, shape’s text items have blurred.

  • Fixed: VSD to PDF conversion, image shape has become dark from gray.

  • Fixed: VSD to PDF conversion, outlook icon replaced by word icon.

  • Fixed: VSD to PDF conversion, the map shapes and hyperlinks are missing.

To view a complete list of API features and try the API at your end, please visit the following page and download the latest version of Aspose.Diagram for .NET. If you need any help, please feel free to ask in the Aspose.Diagram forum. For more details, please visit the Aspose.Diagram for .NET documentation.

Posted in Aspose for .NET APIs, Aspose.Diagram Product Family, Imran.Rafique | Leave a comment

Change page orientation, Single resultant HTML with all resources, rearrange page contents after text replace and much more with Aspose.Pdf for .NET 9.6.0

aspose Pdf for net 100 Change page orientation, Single resultant HTML with all resources, rearrange page contents after text replace and much more with Aspose.Pdf for .NET 9.6.0 We are very much excited to announce the release of new version of Aspose.Pdf for .NET 9.6.0 which provides some amazing features like changing page orientation from Landscape to Portrait and vice versa. In order to accomplish this requirement, we can set MediaBox of page by using following code snippet.

Change page orientation

Document doc = new Document("PdfWithText.pdf");
foreach (Page page in doc.Pages)
{
    Rectangle r = page.MediaBox;
    double newHeight = r.Width;
    double newWidth = r.Height;
    double newLLX = r.LLX;
    //  we must to move page upper in order to compensate changing page size 
    // (lower edge of the page is 0,0 and information is usually placed from the 
    //  top of the page. That's why we move lover edge upper on difference between 
    //  old and new height.
    double newLLY = r.LLY + (r.Height - newHeight);
    page.MediaBox = new Rectangle(newLLX, newLLY, newLLX + newWidth, newLLY + newHeight);
    //sometimes we also need to set CropBox (if it was set in original file)
    page.CropBox = new Rectangle(newLLX, newLLY, newLLX + newWidth, newLLY + newHeight);
}
doc.Save("36115.pdf");

However please note that when using above code snippet, you may cut some contents of the document (because we decrease height). So in order to avoid this, you can increase width proportionally and leave height intact. Example of calculations:

Rectangle r = page.MediaBox;
//new height the same
double newHeight = r.Height;
//new width is expanded proportionally to make orientation landscape 
// (we assume that previous orientation is portrait)
double newWidth = r.Height * r.Height / r.Width;

Besides above approach, you may consider using PdfPageEditor facade (it can apply zoom to page contents)

// load source PDF file
Document doc = new Document("PdfWithText.pdf");
// get rectangular region of first page of PDF
Aspose.Pdf.Rectangle rect = doc.Pages[1].Rect;
// instantiate PdfPageEditor instance
PdfPageEditor ppe = new PdfPageEditor();
// bind source PDF
ppe.BindPdf("PdfWithText.pdf");
// set zoom coefficient 
ppe.Zoom = (float)(rect.Width / rect.Height);
// update page size
ppe.PageSize = new Aspose.Pdf.PageSize((float)rect.Height, (float)rect.Width);
// save resultant PDF
ppe.Save("36115-1.pdf");

PDF to HTML – Single HTML with all resources embedded

One of the salient features being offered in this release is conversion of PDF to single HTML file with all resources embedded inside it. Earlier to this release, when converting PDF files to HTML format, the resources (i.e. Images, Fonts, css) used inside PDF are saved in separate folder in same directory where HTML file is saved. However recently we received a requirement to convert PDF file to HTML format where all the resources should be embedded inside HTML file. The implementation is according to Data URI Scheme. In order to accomplish this requirement, a new value EmbedAllIntoHtml is introduced in HtmlSaveOptions.PartsEmbeddingModes enumeration. Please try using following code snippet.

// load source PDF file
Document doc = new Document(@"F:\ExternalTestsData\36608.pdf");
// instanatiate HTML Save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();

// enable option to embed all resources inside the HTML
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;

// this is just optimozation for IE and can be omitted 
newOptions.LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;
// output file path 
string outHtmlFile = @"F:\ExternalTestsData\36340.html";
doc.Save(outHtmlFile, newOptions);

In case the requirement is to only embed CSS inside the resultant HTML, then use EmbedCssOnly value of HtmlSaveOptions.PartsEmbeddingModes enumeration.

Retrieve RadioHoriz property for RadioButton field

RadioHoriz property is required in order to control how items of radio button are added: if RadioHoriz is true then items are added horizontally and if it is false they will be added vertically. This property is specific to FormEditor class and just defines most used “scenarios” of creating radio buttons. Usually it does not make any sense to read RadioHoriz property for radio button field and you can access RadioButtonField sub-items and read their coordinates, instead of trying to read RadioHoriz property.

The following example illustrates RadioHoriz property behavior, how to create radio button items with arbitrary positions and how to read positions of the radio button items.

Example 1. Create new document and add radio button with 3 items (DOM approach)

//create new document
Document doc = new Document();
Page page = doc.Pages.Add();
//add radio button field
RadioButtonField field = new Aspose.Pdf.InteractiveFeatures.Forms.RadioButtonField(page);
field.Rect = new Aspose.Pdf.Rectangle(40, 650, 100, 720);
field.PartialName = "NewField";

//Add radio button options. please note that these options are situated 
// neither horizontally nor vertically. 
//You can try to set any coordinates (and even size) for them. 
RadioButtonOptionField opt1 = new RadioButtonOptionField();
opt1.Rect = new Aspose.Pdf.Rectangle(40, 650, 60, 670);
opt1.OptionName = "Item1";
opt1.Border = new Border(opt1);
opt1.Border.Width = 1;
opt1.Characteristics.Border = System.Drawing.Color.Black;

RadioButtonOptionField opt2 = new RadioButtonOptionField();
opt2.Rect = new Aspose.Pdf.Rectangle(60, 670, 80, 690);
opt2.OptionName = "Item2";
opt2.Border = new Border(opt2);
opt2.Border.Width = 1;
opt2.Characteristics.Border = System.Drawing.Color.Black;

RadioButtonOptionField opt3 = new RadioButtonOptionField();
opt3.Rect = new Aspose.Pdf.Rectangle(80, 690, 100, 710);
opt3.OptionName = "Item3";
opt3.Border = new Border(opt3);
opt3.Border.Width = 1;
opt3.Characteristics.Border = System.Drawing.Color.Black;
field.Add(opt1);
field.Add(opt2);
field.Add(opt3);
doc.Form.Add(field);
doc.Save("37337-1.pdf");

Example 2. Adding horizontally and vertically situated radio buttons with FormEditor.

//Load previously saved document
FormEditor formEditor = new FormEditor();
formEditor.BindPdf("37337-1.pdf");
//RadioGap is distance between two radio button options. 
formEditor.RadioGap = 4;
//add horizontal radio button
formEditor.RadioHoriz = true;
//RadioButtonItemSize if size of radio button item.
formEditor.RadioButtonItemSize = 20;
formEditor.Facade.BorderWidth = 1;
formEditor.Facade.BorderColor = System.Drawing.Color.Black;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "NewField1", 1, 40, 600, 120, 620);

//add other radio button situated vertically
formEditor.RadioHoriz = false;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "NewField2", 1, 40, 500, 60, 550);
formEditor.Save("37337-2.pdf");

Example 3. How to get RadioButton items coordinates.

//Load resultant document 
Document doc1 = new Document("37337-2.pdf");
//Find added fields
RadioButtonField field0 = doc1.Form["NewField"] as RadioButtonField;
RadioButtonField field1 = doc1.Form["NewField1"] as RadioButtonField;
RadioButtonField field2 = doc1.Form["NewField2"] as RadioButtonField;

//And show positions of sub items for each of them. 
foreach (RadioButtonOptionField option in field0)
{
    Console.WriteLine(option.Rect);
}
foreach (RadioButtonOptionField option in field1)
{
    Console.WriteLine(option.Rect);
}

foreach (RadioButtonOptionField option in field2)
{
    Console.WriteLine(option.Rect);
}

Text replace should automatically re-arrange page contents

We recently received a requirement that once the text inside PDF document is replaced, the contents should be re-arranged. If we replace the text with small contents, no extra space should be displayed. And if we replace the text with larger string, words should not overlap the existing contents. So in order to cater these issues, we have made some enhancements in our API and no such issue appears when replacing text inside PDF.

// load source PDF file
Document doc = new Document("29860.pdf");
// create TextFragment Absorber object with regular expression
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("[Cname,companyname,Textbox,50]");
doc.Pages.Accept(textFragmentAbsorber);
// replace each TextFragment
foreach (TextFragment textFragment in textFragmentAbsorber.TextFragments)
{
    // set font of text fragment being repalced
    textFragment.TextState.Font = FontRepository.FindFont("Arial");
    // set font size
    textFragment.TextState.FontSize = 12;
    textFragment.TextState.ForegroundColor = Aspose.Pdf.Color.Navy;
    // replace the text with larger string than placeholder
    textFragment.Text = "This is a Lerger String to Testing of this issue";
}
// save resultant PDF
doc.Save("29860_out_large_NoHyphenation.pdf");

You also can specify ReplaceAdjustment.WholeWordsHyphenation option to wrap text on next / current line if current line became too long / short after replacement: textFragmentAbsorber.TextReplaceOptions.ReplaceAdjustmentAction = TextReplaceOptions.ReplaceAdjustment.WholeWordsHyphenation;

Among above stated features, there are numerous enhancements and fixes towards issues reported in earlier version. PDF to DOC conversion, Text replace, XPS to PDF conversion, PDF to Image conversion, HTML to PDF conversion, PNG to PDF conversion, XSL-FO to PDF conversion, PDF to PDF/A, PDF to Excel, SVG to PDF etc are the key improvement areas. Please go ahead, download and start exploring the new release of Aspose.Pdf for .NET 9.6.0.

Posted in Aspose for .NET APIs, Aspose.Pdf Product Family, Nayyer Shahbaz | Leave a comment

Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

Aspose .NET Module Development Template for DNN provides a quick and easy way to use module development template for DNN 7+. We are pleased to announce a new release which now supports exploring examples of our new product Aspose.Note for .NET. This module development template can automatically download Aspose components and seamlessly add them to your DNN module project during project creation.

free download icon aspose mp Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNNvideo demo icon aspose mp Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNNopen source icon aspose mp Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

The new improved version provides the following features:

  • Supports Visual Studio 2010, 2012 and 2013.
  • Create DNN modules with C# or VB.NET.
  • Create DNN modules with the new DAL2 data access layer available in DNN 7 for C# or VB.NET.
  • Select one or more Aspose components during module creation.
  • The latest version of the selected Aspose components are automatically downloaded and referenced in your DNN Module.

aspose dnn supports vs2010 vs2012 vs2013 300x246 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

Aspose DNN Template supports Visual Studio 2010, 2012 and 2013

preview 300x239 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

Aspose .NET Module Development Template for DNN

New Features

This release have the following new features

  1. Support for Visual Studio 2013. It is the only Development template which supports 3 versions of Visual Studio.
  2. Integrated new Aspose product: Aspose.Note for .NET

You can use this module development template to download and explore the following exciting features of Aspose.Note for .NET.

Loading, saving and converting:

  • Converting OneNote to PDF.
  • Converting OneNote to image.

Working with images:

  • Extract images from a OneNote document.
  • Get information of each image from OneNote document.

Working with pages:

  • Get number of pages from OneNote document.

Working with text:

  • Extract text from OneNote document.
  • Replace text in pages of a OneNote document.

Customer Feedback

Your feedback is very important to us. Please feel free to provide feedback and raise feature requirements. We are keen to implement customer driven features since we are a 100% customer driven company.

System Requirements

In order to install and use Aspose .NET Module Development Template for DNN you need to have one of the following Visual Studio version installed

  • Visual Studio 2010
  • Visual Studio 2012
  • Visual Studio 2013

Please feel free to contact us if you find any issues in installing or using this plugin.

Installing Aspose .NET Module Development Template for DNN

Installing Aspose DotNetNuke project templates is pretty easy. There are multiple ways to install: choose one of these options below.

Install manually by downloading the VSIX file from the DNN Store

  1. Visit the DNN Store – Aspose DotNetNuke Module Development Template page
  2. Click ‘Add to Cart’ and then proceed to checkout to download the VSIX file
  3. Double click on the downloaded file to install the templates.

Install manually by downloading from Codeplex

  1. Download the VSIX file from Codeplex
  2. Double click on the downloaded file to install the templates.

Note: Please make sure to restart Visual Studio for the changes to take effect.

Creating a DNN Module using the Template

Once you’ve installed the templates, you can set up a project based on them. To do so you should follow the steps below. Before you can use them, you should have installed Visual Studio 2010, 2012 or 2013 and Aspose DotNetNuke Project Templates (described above).

  1. Set up the DotNetNuke Development environment following the steps in the Wiki (the templates assume you have your development environment set up at http://dnndev.me/). Development Environment
  2. Run Visual Studio 2010, 2012 or 2013 as an Administrator (right-click the desk-top shortcut to do so)
  3. From the File menu, select New Project.
  4. Choose either C# or VB.Net from the Languages section of the new project dialog.

    create dnn project 300x193 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

    Create DNN Module Project

  5. Select the DotNetNuke Folder under your preferred language (C# or Visual Basic).
  6. Choose either the Aspose DotNetNuke C# Compiled Module or Aspose DotNetNuke 7 C# DAL2 Compiled Module template for your project template (or the VB.NET versions).
  7. For the new project creation screen using the following settings
    1. Name: ModuleName
      Something unique here, example DNNTaskManager
    2. Location: c:\websites\dnndev.me\desktopmodules\
      This assumes you set up your development environment as instructed in step 1.
    3. Solution: Create new solution
    4. Create directory for solution : Unchecked
      If checked, this option will cause path problems. The templates assume that the SLN is in the same folder as the project file.
    5. Click OK.

    A screen is shown containing all Aspose components (screenshot below).

  8. Select one or more components from the list.
    Each component’s common uses is shown upon selection.
  9. Click Next to continue once done.

    aspose dnn select aspose components 300x239 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

    Aspose DNN create project wizard select Aspose components

    The Next screen shows the download progress for each selected component.

    ddn wizard aspose product download 300x239 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

    Aspose DNN create project wizard Aspose component download

    Once the downloading is completed the module is created with the selection components automatically reference.

    dnn created module 300x79 Support for Aspose.Note for .NET and Visual Studio 2013 added in Aspose .NET Module Development Template for DNN

    Aspose DNN created module

    This creates a folder under c:\websites\dnndev.me\desktopmodules\ModuleName which should contain all the files necessary for your module, including the solution.

There are a couple of final steps just to finalize the process, documented in the Documentation\Documentation.html file, which should open up automatically in Visual Studio after the project is created. Follow the steps to configure the final project properties and then you are ready to build/deploy a module. You can delete the documentation folder once you have completed those steps.

Video

Please check the video below to see it in action.

 

Posted in News Release | Leave a comment

API Reference Docs Added to Aspose for Cloud Python SDK

Introduction to Python

python logo master v3 TM1 300x101 API Reference Docs Added to Aspose for Cloud Python SDKPython is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. Python can be easy to pick up whether you’re a first time programmer or you’re experienced with other languages. The community hosts conferences and meetups, collaborates on code, and much more. Read more about Python.

Aspose for Cloud

aspose logo 1 300x81 API Reference Docs Added to Aspose for Cloud Python SDKAspose for Cloud is a cloud-based document generation, conversion and automation platform for developers. Before Aspose for Cloud APIs document processing and manipulation tasks were not so easy. Aspose for Cloud APIs give developers full control over documents and file formats. Each API has been developed to offer you a wide range of features for file processing in cloud. Aspose for Cloud REST APIs are platform independent and can be utilized across any platform such as Amazon, Salesforce etc. without any installation. Being language independent makes it a suitable choice for the developers having expertise in any programming language. We also provide SDKs in different programming languages such as .NET, Java, PHP, Ruby, Node.js and Python.

API Reference Docs for Aspose for Cloud Python SDK

We are pleased to announce that Aspose for Cloud Python API reference docs are available now. They help Python developers to understand the Aspose for Cloud Python SDK structure more deeply. API reference docs covers all packages and classes available in the Python SDK. We are looking forward to provide reference docs for other platform SDKs like PHP, Ruby, Node.js

How to Access Documentation

Start a Free Trial Today

Start a free trial today – all you need is to sign up with Aspose for Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose for Cloud.

Posted in Aspose SDKs, Aspose for Cloud APIs, Aspose.Total Product Family | Leave a comment

Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose has released version 1.1 of its Eclipse IDE plugin to support the new Aspose for Java product family along with a numbers of revamps in the plugin features including many UI enhancements that improve the user experience. With this release, the plugin adds support for the new Aspose.Tasks and Aspose.Diagram for Java APIs.

Aspose.Tasks for Java

aspose Tasks for Java 100 Aspose for Java Eclipse Plugin Adds New Java API Support!Aspose.Tasks for Java is a project management API that enables Java application developers to provide Microsoft Project® document manipulation capability in their applications – all without using Microsoft Project®. With this powerful API, developers can control various stages of project management, such as project planning, definition and tracking.

Aspose.Diagram for Java

aspose diagram for java e1401178596961 Aspose for Java Eclipse Plugin Adds New Java API Support!Aspose.Diagram for Java is a Non-Graphical and well-structured API that allows developers to load, create, save and manipulate Microsoft Visio drawings within a Java application without using Microsoft Visio. It provides better performance and is easier to use to manipulate diagrams and convert files than Microsoft Office Automation.

Aspose Project Wizard

mhXuJ4l Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose Project Wizard – Enlisting the New Aspose for Java APIs

I6IpS2T Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose Project Wizard – Downloading the new Aspose for Java APIs

6PRmcEl Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose examples/sample codes for the new Aspose for Java APIs – Aspose.Diagram and Aspose.Tasks – have also been added and are now available through the Aspose Example Wizard in the IDE’s native flow. As shown in the below screenshots.

Aspose Example Wizard

rUKghsr Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose Example Wizard – Downloading Aspose.Tasks Examples

fIfTI8R Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose Example Wizard -Enlisting Aspose.Tasks Examples

2rtQgSr Aspose for Java Eclipse Plugin Adds New Java API Support!

Aspose.Tasks Example – Executing

ekt3dOl Aspose for Java Eclipse Plugin Adds New Java API Support!

Recommended Links

Source Code Available

Aspose Project Wizard for Eclipse is open source and its source code is available on the major social coding websites listed below. Developers can extend the functionality if they want or learn from it to make their own plugins.

GitHub Mark icon2 Aspose for Java Eclipse Plugin Adds New Java API Support! GitHub

sourceforge icon2 Aspose for Java Eclipse Plugin Adds New Java API Support! SourceForge

bitbucket icon3 Aspose for Java Eclipse Plugin Adds New Java API Support! Bitbucket

codeplex icon2 Aspose for Java Eclipse Plugin Adds New Java API Support! CodePlex

Posted in Aspose.Total Product Family | Leave a comment

Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly

Aspose announces the Aspose for Java NetBeans plugin version 2.2 that provides seamless integration of Aspose.Tasks and Aspose.Diagram in your favorite NetBeans IDE.

Aspose.Tasks for Java

aspose tasks for java Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram SeamlesslyAspose.Tasks for Java is a project management API that enables Java application developers to provide Microsoft Project® document manipulation capability in their applications – all without using Microsoft Project®. With this powerful API, developers can control various stages of project management, such as project planning, definition and tracking.

Aspose.Diagram for Java

aspose diagram for java Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram SeamlesslyAspose.Diagram for Java is a Non-Graphical and well-structured API that allows developers to load, create, save and manipulate Microsoft Visio drawings within a Java application without using Microsoft Visio. It provides better performance and is easier to use to manipulate diagrams and convert files than Microsoft Office Automation.

How to use Aspose.Tasks and Aspose.Diagram in the NetBeans IDE

Create Aspose Application

  1. Create an Aspose application, available under the Java category from the New Project option in NetBeans (detailed steps are mentioned in previous Aspose blog post).
  2. Select Aspose.Tasks and/or Aspose.Diagram from the list of Aspose components while creating Aspose application as mentioned in below image.
  3. Moving forward will download the respective libraries and create your ready to use and automatically configured Aspose application.
    Aspose.Tasks and Diagram Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly

Create Aspose Example

  1. Create new Aspose example from the New File option in NetBeans (detailed steps are mentioned in previous Aspose blog post).
  2. Select the desired Aspose component from the selection box and then one if its example as shown in the below image.
  3. Moving forward will embed the selected example in your Aspose application.
    Select Aspose Example Tasks or Diagram Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly

Important Links

Source Code Available

Aspose Project Wizard for NetBeans is open source and its source code is available on below mentioned major social coding websites. Developers can extend the functionality if they want or learn from it to make their own plugins.

GitHub Mark icon2 Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly GitHub

sourceforge icon2 Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly SourceForge

bitbucket icon3 Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly Bitbucket

codeplex icon2 Aspose for Java NetBeans Plugin Supports Aspose.Tasks and Aspose.Diagram Seamlessly CodePlex

Posted in Aspose for Java APIs, Aspose.Diagram Product Family, Aspose.Tasks Product Family, Aspose.Total Product Family | Leave a comment

HTML5 Spreadsheet Editor by Aspose for Java

I have shared some sample projects that worked as tutorial or demonstration for Aspose products. This time, I tried something a little bigger – HTML5 Spreadsheet Editor. Yes, I am sharing a web application that loads a Microsoft Excel file, and lets you view and edit it in a web browser. The initial version is limited in its functionality. I’ll release newer versions from time to time to make a complete replacement of desktop software. The best part is – it is open source. Let’s take a look at the editor.

The Technology

I had defined some constraints for this project, which influenced the technology I chose for the development. The application must not be dependent on plugins and must not require end-users to install extra software. So I had to stick to HTML and Ajax. Because it’s one of my favourite languages, I used Java server-side. The next important requirement was server-to-browser end-to-end data interoperability. I didn’t want to introduce a new integration layer between JavaScript on the browser-side and Java-based business-logic on the server.

There are some good frameworks out there like Google Web Toolkit (GWT), Spring Framework, JavaServer Faces (JSF) and some others.

JSF is a component-based web application framework. It is a part of Java standards. A wide range of third-party components are available for JSF. These components can be plugged into any JSF application. The JSF managed beans technology is yet another technology to split your whole project design into independent self-contained components. Objects are created, serialized, de-serialized, injected, managed and destroyed by the application server.

aspose Cells for Java 100 HTML5 Spreadsheet Editor by Aspose for JavaAspose.Cells for Java is the most comprehensive library to create and manipulate Excel files. I used this library to perform all operations; ranging from fetching worksheets, rows, columns, cells to updating the cells.

The Editor

HTML5 Spreadsheet Editor is an in-browser viewer and editor for Excel files. It supports XLS, XLSX, XLSM, XLSB, XLTX, SpreadsheetML, CSV, ODS. The file can be opened by specifying it in URL.

2 HTML5 Spreadsheet Editor by Aspose for Java

Opening a Workbook

To open an Excel workbook, specify it in the URL. For example http://spreadsheet-editor.aspose.com/?url=http://example.com/Sample.xlsx. The editor loads the file and displays it as shown above.

1 HTML5 Spreadsheet Editor by Aspose for Java

Viewing a Workbook

The contents of workbook are displayed in rows and columns style, as we see in the Microsoft Excel desktop application. The editor supports text formatting too.

Working with Sheets

At the top right-hand corner of HTML5 Spreadsheet Editor is a drop-down list of sheets. The selected sheet is the one which opened by the editor. To switch to another sheet, select it from the list.

463 HTML5 Spreadsheet Editor by Aspose for Java

Editing Cells

You can edit any cell by a double-click. When you double-click a cell, it switches to edit-mode. To cancel editing, press the ESC key. To commit the edit value, press ENTER. You can also press TAB to move to the next cell. You can specify static text and numbers. Formulas are supported too. To enter a formula, start the cell value with an equal sign (=). For example =SUM(A1:A5). All formulas supported by Microsoft Excel are supported by HTML5 Spreadsheet Editor too.

38472 HTML5 Spreadsheet Editor by Aspose for Java

Working with Rows

Adding and removing rows is very easy. The first column of the spreadsheet shows the row ID. Click on a row ID to select the entire row. Right-click and click Add a Row Below to add a new row right below the selected row. You can remove a row by following same method and clicking Delete Row.

82348 HTML5 Spreadsheet Editor by Aspose for Java

Saving a File

After you are finished editing, Click Save on the Spreadsheet menu. The modified file is available for download.

3 HTML5 Spreadsheet Editor by Aspose for Java

Embed Anywhere

You can embed HTML5 Spreadsheet Editor in any website of your choice using IFRAME. Here is an example code:

<iframe src="http://spreadsheet-editor.aspose.com/?url=http://example.com/Sample.xlsx" width="800" height="600">
Your web browser does not support IFRAMEs
</iframe>

Deployment

HTML5 Spreadsheet Editor requires any standard compliant Java application server that supports CDI. I have tested it on Glassfish 4.0. Just download the source code and build using Maven.

Open Source

We love open source. Our choice of MIT license gives you the freedom to use, copy, modify and distribute our software without additional liabilities. Download the complete source code from your favourite site:

Feedback

Your feedback is very important to us. Download and run the app at your side. Feel free to suggest enhancements and report bugs.

Posted in Aspose.Cells Product Family | 1 Comment

Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

Aspose Visual Studio plugin is a great tool for quickly downloading and exploring Aspose for .NET API examples. We are pleased to announce a new release which now supports exploring examples of our new product Aspose.Note for .NET. This plugin saves a lot of time and effort by providing a very simple option for seamlessly selecting, downloading and opening the latest example projects without having to leave the Visual Studio environment.

free download icon aspose mp Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1video demo icon aspose mp Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1open source icon aspose mp Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

The new improved version provides the following features:

  • Supports Visual Studio 2010 and Visual Studio 2012.
  • Easy to launch from File or Tools menu in Visual Studio
  • Saves time and flattens the learning curve.
  • Enables you to select and open the latest Aspose for .NET API examples hosted on Github.com.
  • A selected example project is automatically opened in Visual Studio with all required references set to give you a ready to run and explore environment.
  • Automatically downloads the latest API libraries and examples whenever there are new updates on the server.
Aspose Visual Studio Plugin 300x249 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

Aspose Visual Studio Plugin

New Features

We have now integrated a new cool product: Aspose.Note for .NET. You can use this plugin to download and explore the following exciting features of Aspose.Note for .NET.

Loading, saving and converting:

  • Converting OneNote to PDF.
  • Converting OneNote to image.

Working with images:

  • Extract images from a OneNote document.
  • Get information of each image from OneNote document.

Working with pages:

  • Get number of pages from OneNote document.

Working with text:

  • Extract text from OneNote document.
  • Replace text in pages of a OneNote document.

Customer Feedback

Your feedback is very important to us. Please feel free to provide feedback and raise feature requirements. We are keen to implement customer driven features since we are a 100% customer driven company.

System Requirements

In order to install and use Aspose Visual Studio Plugin you need to have one of the following Visual Studio version installed

  • Visual Studio 2010
  • Visual Studio 2012

Please feel free to contact us if you find any issues in installing or using this plugin.

Installing Aspose Visual Studio Plugin

Installing Aspose Visual Studio Plugin templates is pretty easy. These instructions assume that you have already installed Visual Studio 2010 or higher.

The plugin is provided in the form of an MSI installer. You can download the installer from one of the following locations:

Once downloaded, double-click the MSI to open the installer and then follow the simple instructions to complete the installation.

Note: Please make sure to restart Visual Studio for the changes to take effect.

Using Aspose Visual Studio Plugin

Once installed you can easy launch and use the interactive plugin as described below:

  1. Open the plugin by selecting File followed by New Aspose Example Project in Visual Studio.

    Aspose Visual Studio Plugin Launch from File Menu 300x112 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

    Aspose Visual Studio Plugin Launch from File Menu

  2. The first time you open the plugin (please proceed to step 3 otherwise) you see the API selection dialog as shown below. Please select the APIs you want to explore and then click continue. It will take few minutes to download the selected APIs and their libraries

    Aspose Visual Studio Plugin API selection dialog 300x250 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

    Aspose Visual Studio Plugin API selection dialog

    Aspose Visual Studio Plugin API download screen 300x249 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

    Aspose Visual Studio Plugin API download screen

  3. In the Select an API to View Examples dialog, select or change the location where the example projects will be created and also select or change the APIs you want to explore.

    Aspose Visual Studio Plugin API Example Selection 300x249 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

    Aspose Visual Studio Plugin API Example Selection

  4. Select an example and either double-click to open it, or click Continue to open the example project in Visual Studio.

    Aspose Visual Studio Plugin example opened in visual studio 300x212 Explore Aspose.Note for .NET API Examples using Aspose Visual Studio Plugin 2.1

    Aspose Visual Studio Plugin example opened in visual studio

Video

Please check the video below to see the plugin in action.

Posted in News Release | Leave a comment

Improved Recognition of PDF417, MacroPdf417, QR and PatchCode Barcodes in Aspose.BarCode for .NET 6.5.0

aspose Barcode for net 100 Improved Recognition of PDF417, MacroPdf417, QR and PatchCode Barcodes in Aspose.BarCode for .NET 6.5.0We are pleased to announce the release of Aspose.BarCode for .NET 6.5.0. The barcodes PDF417, MacroPDF417, QR and PatchCode can hold a lot of information. The Aspose.BarCode API is handy because it can encode and decode these codes too. Developers can add this feature to their .NET applications. The plus point of this release is that it reworks PDF417 code recognition. Users can now get more accurate recognition along with speedy scan.

Decoding Improvements

This new release delivers improved recognition and quick reading capabilities for PDF417, MacroPDF417, QR and PatchCode symbologies. This release comprises a number of key fixes that help us improve decoding:

  • Fixed: inaccurate recognition of PDF417 from TIFF, PNG, PDF and JPG formats.
  • Fixed: inaccurate and recognition failure cases of MacroPDF417 from BMP and PNG formats.
  • Fixed: inaccurate and recognition failure cases of PatchCode from JPG format.
  • Fixed: taking too long to recognize QR code.

To view a complete list of API features and try the API, please visit the following page and download the latest version of Aspose.BarCode for .NET. If you need any help, please feel free to ask in the Aspose.BarCode forum. For more details, please visit the Aspose.BarCode for .NET documentation.

Posted in Aspose for .NET APIs, Aspose.BarCode Product Family, Imran.Rafique | 2 Comments

Improvements in Fields, Rendering, Layout Features and New Members Added in Aspose.Words 14.8.0

aspose Words for net e1378287014402 Improvements in Fields, Rendering, Layout Features and New Members Added in Aspose.Words 14.8.0Aspose.Words 14.8.0 has been released. This month’s release contains over 79 useful new features, enhancements and bug fixes to the Aspose.Words products.

You can download the latest releases of Aspose.Words from the following links:

Here is a look at just a few of the biggest features and API changes in this month’s release. For a full list of bug fixes and improvements please refer to the download pages in the links above.

  • Improved how TOC field culture and formatting is handled.
  • Timestamping of PDF digital signatures using external timestamp server implemented.
  • Improvements to advanced rendering features, for example pre-blending semi-transparent images.
  • Horizontal rotation of characters with HorizontalRotatedFarEast orientation supported.
  • Improved page layout for additional compatibility modes.
  • Improved floater positioning in complex cases.

Time Stamping of PDF Digital Signature using External Timestamp Server

The new property TimestampSettings has been added to PdfDigitalSignatureDetails. It allows you to timestamp a digital signature in a PDF document using an external timestamp server.

/// <summary>
/// Gets or sets the digital signature timestamp settings.
/// </summary>
/// <remarks>
/// <para>The default value is null and the digital signature will not be time-stamped.
/// When this property is set to a valid <see cref="PdfDigitalSignatureTimestampSettings"/> object,
/// then the digital signature in the PDF document will be time-stamped.</para>
/// </remarks>
public PdfDigitalSignatureTimestampSettings TimestampSettings
{
        get { return mTimestampSettings; }
        set { mTimestampSettings = value; }
}
// Usage:
saveOptions.DigitalSignatureDetails.TimestampSettings = new PdfDigitalSignatureTimestampSettings(timestampServerUrl, userName, password, timeout);

PreblendImages Property Added to PdfSaveOptions Class

The PreblendImages property has been added to the PdfSaveOptions class. It may improve a PDF document’s visual appearance in Adobe Reader and remove anti-aliasing artefacts.

/// <summary>
/// Gets or sets a value determining whether or not to preblend transparent images with black background color.
/// </summary>
/// <remarks>
/// <para>Preblending images may improve PDF document visual appearance in Adobe Reader and remove anti-aliasing artifacts.</para>
/// 
/// <para>In order to properly display preblended images, PDF viewer application must support /Matte entry in soft-mask image dictionary. 
/// Also preblending images may decrease PDF rendering performance.</para>
/// 
/// <para>The default value is false.</para&gt
/// </remarks>
public bool PreblendImages
{
    get { return mPreblendImages; }
    set { mPreblendImages = value; }
}

LinkedStyleName Property Added to Style Class

The following new public member is added to the Style class:

/// <summary>
/// Gets the name of the Style linked to this one. Returns Empty string if no styles are linked.
/// </summary>
public string LinkedStyleName
Posted in Aspose for .NET APIs, Aspose for Java APIs, Aspose.Words Product Family | 1 Comment