Monday, April 28, 2014

Control Image Quality when Adding Stamp & Determine PDF to HTML Conversion Progress in .NET

What's New in this Release?

The latest version of Aspose.Pdf for .NET (9.1.0) has been released. For the last few releases, we have been specifically working on improving our PDF to HTML conversion feature and in this release; we have made few more great improvements to this feature. When converting large PDF files to HTML format, you sometimes want to determine the progress of the conversion. For example, it might be important to show the progress of conversion (number of pages converted). Please visit the following topic of detailed information on determining PDF to HTML conversion progress. With this latest release, now the HTML-results contain inline-styles with attributes. In this new release, we have also introduced a feature for controlling image quality when adding a stamp. It indicates the quality of image in percent (valid values are 0..100). When adding metadata to PDF files, you can create/register a new metadata namespace with a prefix. Recently we received a requirement to completely remove SVG images from the PDF to HTML conversion process. In order to accomplish this requirement, a new member of the enumeration HtmlSaveOptions.RasterImagesSavingModes has been introduced. We used to have a feature for rendering a table on a new page when using the Aspose.Pdf.Generator namespace. Starting with this release, we also have introduced a new property named IsInNewPage in the BaseParagraph class to provide an option to render table in new page. We have introduced a new class named DocMDPSignature and the enumeration DocMDPAccessPermissions to provide the feature to digitally sign PDF files. Also please note that we have added the IsCertified property to the PdfFileSignature class. Along with the new features and enhancements listed above, we have made numerous improvements in PDF to HTML conversion, HTML to PDF conversion, image to PDF and PDF to image conversion, stamping PDF files, manipulating text inside PDF documents, PDF to XPS conversion, image and text extraction and various other features. The list of important new and improved features are given below
  • Control image quality when adding imagestamps
  • Determine the progress of PDF file generated
  • PDF to HTML - Place css styles for text position info as an inline style
  • insert metadata with prefix
  • Progress details of PDF to HTML gneration
  • PDF to HTML - Completely remove SVG from the rendering process
  • Implement IsInNewPage property for paragraph
  • PDF to HTML conversion using Streams
  • Digital sign a password protected Pdf Document
  • PDF to HTML - set unique ID for resultant files
  • PDF to HTML conversion: API should specify all sizes and coordinates in EM
  • PDF to HTML: saveOptions.ExplicitListOfSavedPages should save html with page number prefix
  • PDF to HTML conversion: Add page number as prefix to css files
  • PDF to HTML conversion: Add page number as prefix to image resoruces
  • Improved PDF signing feature
  • Image Inserted to PDF getting blur is now fixed
  • Getting corrupt Pdfs when converting BMP files is now fixed
  • Japanese characters mangling issue is fixed when converting HTML file into PDF
  • Evaluation watermark is now appearing when converting PDF to DOC in Trial mode
  • Russian Unicode text now extracted correctly
  • Aspose.Pdf Generator generates empty file if ListSection were used
  • HTML to PDF: sub bullets style is now being honored
  • PDF to TIFF - First page appears blank is now fixed
  • HTML to PDF: distorted form is now resolved
  • PDF to PNG - Contents missing on resultant images is fixed
  • Encrypting a signed PDF document invalidates the signature
  • HTML to PDF - Missing text and weird layout is fixed
  • ExportXML/ImportXML methods are now corrected
  • HTML to PDF: Resultant document is being truncation is now fixed
  • HTML to PDF [DOM]: Data is being lost and table borders missing are fixed
  • PDF to PNG: resolved document text is misplacing and reversing
  • PDF Sign Page and Document methods kills w3wp.exe process.
  • Text Formatting now working when using IsHtmlTagSupported
  • HTML to PDF - Formatting is not preserved during conversion
  • Problem extracting pages from PDF file is resolved
  • PDF to XPS – problem fixed while printing resultant files
  • Replaceable Symbol issue in HTML to PDF (DOM)
  • Setting source fields value now update formula field automatically
  • HTML to PDF (DOM): Page size issue is resolved
  • Japanese text now extracted
  • XSL-FO to PDF conversion: adding footer on last page only
  • PDF to Image conversion: loses contents is fixed
  • PDF to PDFA2b results into a scrambled PDF
  • Problem while enabling the PDF signing is now resolved
  • First page corruption issue is fixed if we make any change in the PDF
  • PDF to TIFF: output image loss text is now fixed
  • PDF to TIFF conversion results incorrect image is now fixed
  • PDF to DOC conversion issue with lines is fixed
  • PDF to DOC/DOCX: Text alignment is corrected
  • Flatten method is missing Ink annotation
  • PDF to PNG: output image mingles is fixed
  • An error occurs when printing the PDF file is now fixed
  • Form field do not appear selected when viewing in Foxit Reader
  • XPS to PDF - Bookmarks not being honored
  • Exception while adding Stamp to PDF file
  • PDF concatenation - Error viewing resultant PDF
  • Concatenating Tagged file results into non-tagged file.
  • Links are now detected if it is in table or header in a PDF file
  • Annotation import - cloud outbox is changed to straight line
  • Unable to clear Properties on subsequent calls is now fixed
  • Fixed issues: Image was only appearing on first page
  • Object issue is fixed and now can be used in PDF document
  • Problem fixed for creating multiple tables in PDF
Other most recent bug fixes are also included in this release.

Overview: Aspose.Pdf for .NET
Aspose.Pdf is a .Net Pdf component for the creation and manipulation of Pdf documents without using Adobe Acrobat. Create PDF by API, XML templates & XSL-FO files. It supports form field creation, PDF compression options, table creation & manipulation, graph objects, extensive hyperlink functionality, extended security controls, custom font handling, add or remove bookmarks; TOC; attachments & annotations; import or export PDF form data and many more. Also convert HTML, XSL-FO and MS WORD to PDF.

Thursday, April 24, 2014

Set Value of Selected/Marked Threshold for OMR Elements & OMR Template Editor

What’s new in this release?

We are pleased to announce the release of Aspose.OCR for Java 1.9.0. This month’s release contains all the features, enhancements and bug fixes from Aspose.OCR for .NET 1.8.0 and 1.9.0.  The threshold specifies the percentage of black pixels over which the option is considered to be selected. Setting a lower threshold allows the OmrEngine to consider any partially filled marker as selected; a higher threshold may require the marker to be filled completely. Usually the threshold is set to an acceptable higher average value before initializing the OMR procedure to determine the amount of pixels (as a percent) that is required before a field or a mark is considered checked or filled. Aspose.OCR for Java now supports setting the threshold for a template, template page and even for a specific template element . Please check the detailed article in our documentation for Setting OMR Thresholds. This release also support equal spacing between the markers, this enhancement has been made for the OmrEngine to accommodate markers that are equally distributed on the OMR template. Unfortunately, the Template Editor for the Java version of the product isn’t yet available for public use. We are working to provide a Java based template editor with future releases of Aspose.OCR for Java. This release includes plenty of new & enhanced features as listed below
  • How to set value of selected/marked threshold for OMR elements?
  • OMR Template Editor: Adjust Horizontal Cell Spacing
  • Support for Optical Mark Recognition (OMR)
  • Support OCR API and text extraction
Overview: Aspose.OCR for Java

Aspose.OCR for Java is a character recognition component that allows developers to add OCR functionality in their Java web applications, web services and Windows applications. It provides a simple set of classes for controlling character recognition tasks. It helps developers to work with image files from within their Java applications. It allows developers to extract text from images, Read font, style information quickly, saving time & effort involved in developing an OCR solution from scratch.

Tuesday, April 22, 2014

How to Create Normal & Scatter Charts in PowerPoint Slides Using C# & VB.NET

This Tutorial shows how .NET developers can create normal and scatter charts inside their .NET Applications. Aspose.Slides for .NET lets developers add custom charts into slides from scratch. This topic, explains how to create normal and scatter charts with multiple series from scratch using Aspose.Slides for .NET. Aspose.Slides for .NET works independently of Aspose.Cells for .NET for chart creation. Aspose.Slides for .NET has provided the simplest API for creating charts in an easy way. To create a chart in a slide, please follow the steps below:
  • Create an instance of the Presentation class.
  • Obtain the reference of a slide by index.
  • Add chart with default data along with desired type.
  • Add a chart title.
  • Access the chart data worksheet.
  • Clear all the default series and categories.
  • Add new series and categories.
  • Add new chart data for chart series.
  • Add fill color for chart series.
  • Adding chart series labels.
  • Write the modified presentation as a PPTX file.
Code Sample for how to add Chart a slide
[C# Code Sample]
//Instantiate Presentation class that represents PPTX file//Instantiate Presentation class that represents PPTX file
Presentation pres = new Presentation();
//Access first slide
ISlide sld = pres.Slides[0];
// Add chart with default data
IChart chart = sld.Shapes.AddChart(ChartType.ClusteredColumn, 0, 0, 500, 500);
//Setting chart Title
//chart.ChartTitle.TextFrameForOverriding.Text = "Sample Title";
chart.ChartTitle.AddTextFrameForOverriding("Sample Title");
chart.ChartTitle.TextFrameForOverriding.TextFrameFormat.CenterText = NullableBool.True;
chart.ChartTitle.Height = 20;
chart.HasTitle = true;
//Set first series to Show Values
chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowValue = true;
//Setting the index of chart data sheet
int defaultWorksheetIndex = 0;
//Getting the chart data worksheet
IChartDataWorkbook fact = chart.ChartData.ChartDataWorkbook;
//Delete default generated series and categories
chart.ChartData.Series.Clear();
chart.ChartData.Categories.Clear();
int s = chart.ChartData.Series.Count;
s = chart.ChartData.Categories.Count;
//Adding new series
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 0, 1, "Series 1"), chart.Type);
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 0, 2, "Series 2"), chart.Type);
//Adding new categories
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 1, 0, "Caetegoty 1"));
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 2, 0, "Caetegoty 2"));
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 3, 0, "Caetegoty 3"));
//Take first chart series
IChartSeries series = chart.ChartData.Series[0];
//Now populating series data
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 1, 1, 20));
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 2, 1, 50));
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 3, 1, 30));
//Setting fill color for series
series.Format.Fill.FillType = FillType.Solid;
series.Format.Fill.SolidFillColor.Color = Color.Red
//Take second chart series
series = chart.ChartData.Series[1];
//Now populating series data
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 1, 2, 30));
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 2, 2, 10));
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 3, 2, 60));
//Setting fill color for series
series.Format.Fill.FillType = FillType.Solid;
series.Format.Fill.SolidFillColor.Color = Color.Green;
//create custom labels for each of categories for new series
//first label will be show Category name
IDataLabel lbl = series.DataPoints[0].Label;
lbl.DataLabelFormat.ShowCategoryName = true;
lbl = series.DataPoints[1].Label;
lbl.DataLabelFormat.ShowSeriesName = true;
//Show value for third label
lbl = series.DataPoints[2].Label;
lbl.DataLabelFormat.ShowValue = true;
lbl.DataLabelFormat.ShowSeriesName = true;
lbl.DataLabelFormat.Separator = "/";
//Save presentation with chart
pres.Save("AsposeChart.pptx", SaveFormat.Pptx);
[VB.NET Code Sample]
'Instantiate Presentation class that represents PPTX file
Dim pres As New Presentation()
'Access first slide
Dim sld As ISlide = pres.Slides(0)
' Add chart with default data
Dim chart As IChart = sld.Shapes.AddChart(ChartType.ClusteredColumn, 0, 0, 500, 500)
'Setting chart Title
'chart.ChartTitle.TextFrameForOverriding.Text = "Sample Title";
chart.ChartTitle.AddTextFrameForOverriding("Sample Title")
chart.ChartTitle.TextFrameForOverriding.TextFrameFormat.CenterText = NullableBool.True
chart.ChartTitle.Height = 20
chart.HasTitle = True
'Set first series to Show Values
chart.ChartData.Series(0).Labels.DefaultDataLabelFormat.ShowValue = True
'Setting the index of chart data sheet
Dim defaultWorksheetIndex As Integer = 0
'Getting the chart data worksheet
Dim fact As IChartDataWorkbook = chart.ChartData.ChartDataWorkbook
'Delete default generated series and categories
chart.ChartData.Series.Clear()
chart.ChartData.Categories.Clear()
Dim s As Integer = chart.ChartData.Series.Count
s = chart.ChartData.Categories.Count
'Adding new series
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 0, 1, "Series 1"), chart.Type)
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 0, 2, "Series 2"), chart.Type)
'Adding new categories
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 1, 0, "Caetegoty 1"))
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 2, 0, "Caetegoty 2"))
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 3, 0, "Caetegoty 3"))
'Take first chart series
Dim series As IChartSeries = chart.ChartData.Series(0)
'Now populating series data
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 1, 1, 20))
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 2, 1, 50))
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 3, 1, 30))
'Setting fill color for series
series.Format.Fill.FillType = FillType.Solid
series.Format.Fill.SolidFillColor.Color = Color.Red
'Take second chart series
series = chart.ChartData.Series(1)
'Now populating series data
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 1, 2, 30))
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 2, 2, 10))
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 3, 2, 60))
'Setting fill color for series
series.Format.Fill.FillType = FillType.Solid
series.Format.Fill.SolidFillColor.Color = Color.Green
'create custom labels for each of categories for new series
'first label will be show Category name
Dim lbl As IDataLabel = series.DataPoints(0).Label
lbl.DataLabelFormat.ShowCategoryName = True
lbl = series.DataPoints(1).Label
lbl.DataLabelFormat.ShowSeriesName = True
'Show value for third label
lbl = series.DataPoints(2).Label
lbl.DataLabelFormat.ShowValue = True
lbl.DataLabelFormat.ShowSeriesName = True
lbl.DataLabelFormat.Separator = "/"
'Save presentation with chart
pres.Save("AsposeChart.pptx", SaveFormat.Pptx)
Creating Scattered Chart with multiple series and different series markers
[C# Code Sample]
Presentation pres = new Presentation();
ISlide slide = pres.Slides[0];
//Creating the default chart
IChart chart = slide.Shapes.AddChart(ChartType.ScatterWithSmoothLines, 0, 0, 400, 400);
//Getting the default chart data worksheet index
int defaultWorksheetIndex = 0;
//Getting the chart data worksheet
IChartDataWorkbook fact = chart.ChartData.ChartDataWorkbook;
//Delete demo series
chart.ChartData.Series.Clear();
//Add new series
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 1, 1, "Series 1"), chart.Type);
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 1, 3, "Series 2"), chart.Type);
//Take first chart series
IChartSeries series = chart.ChartData.Series[0];
//Add new point (1:3) there.
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 2, 1, 1), fact.GetCell(defaultWorksheetIndex, 2, 2, 3));
//Add new point (2:10)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 3, 1, 2), fact.GetCell(defaultWorksheetIndex, 3, 2, 10));
//Edit the type of series
series.Type = ChartType.ScatterWithStraightLinesAndMarkers;
//Changing the chart series marker
series.Marker.Size = 10;
series.Marker.Symbol = MarkerStyleType.Star;
//Take second chart series
series = chart.ChartData.Series[1];
//Add new point (5:2) there.
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 2, 3, 5), fact.GetCell(defaultWorksheetIndex, 2, 4, 2));
//Add new point (3:1)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 3, 3, 3), fact.GetCell(defaultWorksheetIndex, 3, 4, 1));
//Add new point (2:2)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 4, 3, 2), fact.GetCell(defaultWorksheetIndex, 4, 4, 2));
//Add new point (5:1)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 5, 3, 5), fact.GetCell(defaultWorksheetIndex, 5, 4, 1));
//Changing the chart series marker
series.Marker.Size = 10;
series.Marker.Symbol = MarkerStyleType.Circle;
pres.Save("AsposeScatterChart.pptx", SaveFormat.Pptx);
[VB.NET Code Sample]
Dim pres As New Presentation()
Dim slide As ISlide = pres.Slides(0)
'Creating the default chart
Dim chart As IChart = slide.Shapes.AddChart(ChartType.ScatterWithSmoothLines, 0, 0, 400, 400)
'Getting the default chart data worksheet index
Dim defaultWorksheetIndex As Integer = 0
'Getting the chart data worksheet
Dim fact As IChartDataWorkbook = chart.ChartData.ChartDataWorkbook
'Delete demo series
chart.ChartData.Series.Clear()
'Add new series
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 1, 1, "Series 1"), chart.Type)
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 1, 3, "Series 2"), chart.Type)
'Take first chart series
Dim series As IChartSeries = chart.ChartData.Series(0)
'Add new point (1:3) there.
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 2, 1, 1), fact.GetCell(defaultWorksheetIndex, 2, 2, 3))
'Add new point (2:10)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 3, 1, 2), fact.GetCell(defaultWorksheetIndex, 3, 2, 10))
'Edit the type of series
series.Type = ChartType.ScatterWithStraightLinesAndMarkers
'Changing the chart series marker
series.Marker.Size = 10
series.Marker.Symbol = MarkerStyleType.Star
'Take second chart series
series = chart.ChartData.Series(1)
'Add new point (5:2) there.
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 2, 3, 5), fact.GetCell(defaultWorksheetIndex, 2, 4, 2))
'Add new point (3:1)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 3, 3, 3), fact.GetCell(defaultWorksheetIndex, 3, 4, 1))
'Add new point (2:2)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 4, 3, 2), fact.GetCell(defaultWorksheetIndex, 4, 4, 2))
'Add new point (5:1)
series.DataPoints.AddDataPointForScatterSeries(fact.GetCell(defaultWorksheetIndex, 5, 3, 5), fact.GetCell(defaultWorksheetIndex, 5, 4, 1))
'Changing the chart series marker
series.Marker.Size = 10
series.Marker.Symbol = MarkerStyleType.Circle
pres.Save("AsposeScatterChart.pptx", SaveFormat.Pptx)
Overview: Aspose.Slides for .NET
Aspose.Slides is a .NET component to read, write and modify a PowerPoint document without using MS PowerPoint. PowerPoint versions from 97-2007 and all three PowerPoint formats: PPT, POT, PPS are also supported. Now you can create, access, copy, clone, edit and delete slides in your presentations. Other features include PPT/PPTX printing, PPT to XPS format, saving PowerPoint slides into PDF, adding & modifying audio & video frames, using shapes like rectangles or ellipses and saving presentations in SVG format, streams or images.

Monday, April 21, 2014

Generate Thumbnail from JPEG & Export Specific Layout in DXF Drawing to PDF

What’s new in this release?

We are pleased to announce the new release of Aspose.Imaging for .NET 2.3.0.  A thumbnail is a small copy of an image mostly used for recognition purposes when more images are stored in a library. Usually, when the image is shot with a digital camera, the thumbnail information is stored in the image metadata and can be retrieved through imaging libraries such as Aspose.Imaging for .NET API. With this release, Aspose.Imaging has provided a convenient mechanism to extract the thumbnail information from the image metadata. Aspose.Imaging now provides the long awaited feature of image cropping for the RasterImage class by introducing the Crop method. There are two overload versions of the Crop method available based on two different approaches as discussed below,
  • Shift Mode: One of the overloads accepts 4 integer parameters denotes as Left, Right, Top and Bottom. Based on these values, the Crop method shrinks the image boundaries toward the center of the image while discarding everything outside the boundaries.
  • Rectangle Mode: As the name suggests, this mechanism can be used to highlight a particular area by cutting it out of the image. The area should be defined using an instance of the Rectangle class and passed to the other overload of the Crop method.
Prior to Aspose.Imaging for .NET 2.3, the API facilitated exporting a specific layer of the AutoCAD DXF drawing to PDF format. With this release Aspose.Imaging adds another exciting feature that allows you to select a layout from a DXF drawing, and export it to PDF. The main new and improved features added in this release are listed below
  • Add support for invisible objects
  • Expose Jpeg features
  • Add support for text rotation angle for dimension objects
  • Request for Image Cropping Facility
  • Publish PdfOptions.Layout property
  • Dual sign the .Net assembly
  • Fix bugs with damaged files during Cad->Pdf export
  • Fix bug with changing of line width inside insert
  • Fix bug with additional text for MTEXT entity
  • Fix null reference exception during loading DXF file with old header
  • ArgumentException: Parameter is not valid, at RotateFlip
  • ImageLoadException: Malformed exif section at Image.Load
  • Dithering algorithm sometimes produces animated gif-s with blinks due to wrong transparent color processing.
  • Improve rendering of text entity
  • JPG to TIFF conversion results in poor image quality.
Overview:Aspose.Imaging for .NET

Aspose.Imaging for .NET is an image processing & manipulation component that allows developers to create, edit, draw or convert images in their .NET application. It allows developers to convert image files to PSD, BMP, JPEG, PNG, TIFF and GIF formats. Moreover a set of pens, brushes and fonts can be used to draw images or add new elements & text to existing images. Aspose.Imaging for .NET works well with both web & windows applications. Moreover, it adds the support for Silverlight platform.

Thursday, April 17, 2014

Insert Embedded or Linked OLE Objects in Word & EUDC Fonts Support Using .NET & Java

What's New in this Release?
 
Aspose development team is happy to announce the monthly release of Aspose.Words for Java &.NET 14.3.0. Aspose.Words now supports insertion of OLE objects such as another Microsoft Word document or a Microsoft Excel chart. A new public method, InsertOleObject, has been introduced in the DocumentBuilder class. This method can be used to insert an embedded or linked OLE object from a file into a Word document. Aspose.Words’ rendering engine now partially supports EUDC (End-User-Defined-Characters) fonts. Please find below the description of how EUDC fonts works on Windows. In this first implementation, Aspose.Words uses a single EUDC font. When rendering a document to fixed-page formats, this font is searched among the specified font sources by “EUDC” family name. Starting from Aspose.Words 14.3.0, Best Fit position of data labels in pie charts is partially supported. In previous versions labels with best fit position were rendered as if they had the inside end position. Currently we use a modified Open Office algorithm to set the best fit position of data labels. The list of new and improved features in this release are listed below
  • Public API for insertion of OLE objects both linked and embedded
  • Outline, Shadow, Reflection, Glow and Fill text effects for rendering text inside DrawingML shapes
  • EUDC fonts rendering partially supported
  • “PDF Logical Structure” export reworked, significantly improving memory usage
  • Support OLE embedding of documents and files      Feature
  • Write an article about how to work with Table of contents in Aspose.Words
  • Add <col> tag support
  • Support BestFit position of Pie chart's data labels.
  • Support style:text-decoration attribute of Paragraph tag.
  • Preserve private characters in EUDC.TTE during rendering to Pdf
  • Support HTML table row borders in HTML import
  • Support text outline effect.
  • Support text fill effect.
  • Support text shadow effect.
  • Support text reflection effect
  • Support text glow effect.
  • Support text effects applied to text in Dml Shape or in SmartArt.
  • Implement reading text effects from rPr in DML.
  • Support inheriting styles from parent objects.
  • Add image compression options for different image types
  • Add a link to the online documentation in the DLLs only release
  • Default run properties lose lang attribute value on DOCX to DOC conversions
  • Padding for image in table is lost when rendering to Pdf
  • Consider using "Don't vertically align cells containing floating objects" compatibility option when exporting to HTML
  • Shape in table's cell is improperly horizontally aligned to center after export to HTML is now fixed
  • Floating shape is now properly vertically positioned after export to HTML
  • Warning : Unkno/wn ProgId value 'Visio.Drawing.11'. This might cause inaccessible OLE embedding
  • Charts (DrawingML) issue fixed and now render correctly in Pdf file
  • Aspose.Words now properly work in Jdeveloper IDE
  • OLE object cannot be edited after re saving the document
  • Diagram connectors are inverted/flipped after conversion from Docx to pdf
  • WordArt letters are condensing issue is resolved
  • Condensed character spacing is lost is fixed
  • Relative hyperlink with Unicode is now properly saved to Pdf
  • Add pre-built Document Explorer JAR to Java release.
  • Aspose.Words does not take in account style set in <head>.
  • Table now looks correctly while converting html to doc.
  • Hyperlinks split into multiple fragments/links in output PDF
  • Horizontal table position is corrected.
  • Document.UpdateFields Does not Update TOC in DOCX
  • Content in the output html is overlapped at many places in Html
  • Different table justify alignment for different compatibilityMode values.
  • CSS selectors now work for <thead>, <tbody>, and<tfoot> elements
  • Chart Legend/Series now render correctly in output Pdf file
  • Data labels with best fit position are rendering at correct places in Chart
  • Offset of the hyperlink text line is off by a few pixels in output Pdf
  • Hyperlinks split into multiple fragments/links in output PDF is fixed
  • Document.UpdateFields  is enhanced and update SUM formula field
  • Paragraph's first line indent increases is fixed when exported to HTM
  • Space before a paragraph following a floating element is too large after HTML to DOCX conversion is now fixd
  • Block-level SVG image become inline after HTML to DOCX conversion
  • Problem with vertical paragraph spacing is resolved when importing HTML using InsertHtml method
  • Shape rotation is fixed after conversion from Doc to Pdf
  • Text color is changed after conversion from Docx to WordML/Doc
  • Word Table indentation is now corrected when <table> is placed inside <li>
  • Arrows on the Lines gets distorted when converting to Pdf is now fixed
  • A space character is exported to PDF output between Japanese and Numeric characters is fixed
  • Line Shape from Header is merged with the top border of Table in Body
  • Docx to WordML conversion issue resolved with content control
  • Junk text is rendered in fixed page formats
  • Positions of some DrawingML circles are now preserved during rendering
  • A row and some content is rendering at the bottom of previous page is fixed
  • Header table rows and images are now preserved in PDF
  • List items issue fixed, now line up correctly after conversion from RTF to HTML
  • Conversion from Docm to Doc creates corrupted document now fixed
  • Hyperlink for an icon is now preserved during HTML to PDF conversion
  • Text overlapping is fixed after conversion from Docx to Pdf
  • Text position change is fixed after conversion from Docx to Pdf
Other most recent bug fixes are also included in this release

Overview: Aspose.Words

Aspose.Words is a word processing component that enables .NET, Java & Android applications to read, write and modify Word documents without using Microsoft Word. Other useful features include document creation, content and formatting manipulation, mail merge abilities, reporting features, TOC updated/rebuilt, Embedded OOXML, Footnotes rendering and support of DOCX, DOC, WordprocessingML, HTML, XHTML, TXT and PDF formats (requires Aspose.Pdf). It supports both 32-bit and 64-bit operating systems. You can even use Aspose.Words for .NET to build applications with Mono.

Wednesday, April 16, 2014

Image Rendering is Enhanced in the Output PDF Files for RDL Files to PDF

What’s new in this release?
We are pleased to announce the release of Aspose.Pdf for Reporting Services 2.5.5. This new release contains better and enhanced support for image rendering in output PDF files when transforming RDL files to PDF format. In this release, the focus has been on image rendering capabilities. Along with these enhancements, we also have made some other product improvements and have general bug fixing. To cut short, we offer you a better release of Aspose.Pdf for Reporting Services. This release includes plenty of bug fixes as listed below
  • Reporting Services Export to PDF Image Problems are resolved
  • Colors of image are enhanced in resultant PDF file
  • Improved Rendering the output to PDF when reports contains embedded image
  • Font formatting information lost is fixed in resultant document
Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Pdf for Reporting Services documentation that may guide you briefly how to use Aspose.Pdf Services for performing different tasks like the followings.
Overview: Aspose.Report for .NET

Aspose.Pdf for Reporting Services makes it possible generating PDF reports in Microsoft SQL Server 2000 & 2005 Reporting Services. Some advanced features like adding PDF bookmarks, using HTML tags, XMP metadata, custom embedded font and rendering watermark for pages are now supported. Also convert all RDL report features including sections, images, charts, tables, matrices, headers and footers to PDF. It also enables you creating Pdf documents on the server without using Adobe PDF Library SDK.

Monday, April 14, 2014

Change Color Space of PDF Docs & Export PDF Bookmarks to XML File Using Java

What's New in this Release?

We are pleased to announce the release of Aspose.Pdf for Java 9.0.0. It includes some new exciting features, enhancements and fixes to issues reported in earlier versions of Aspose.Pdf for Java, along with a change of release numbering. As the Java version is ported from Aspose.Pdf for .NET, its version number has been changed to reflect the .NET version it comes from. You can download the latest release of Aspose.Pdf for Java from the download section. Changing color space of PDF document is one of the exiting features introduced in this version. The maximum number of columns limit in a table has been increased to 512 and we have made further progress on porting new classes and methods from Aspose.Pdf for .NET to the Aspose.Pdf for Java architecture. The complete details of these changes can be found in Public API Changes in Aspose.Pdf for Java 9.0.0. Following are the some of the new features/enhancements this month’s release. The methods exportBookmarksToXML(...) and importBookmarksWithXML(...) with Stream arguments are implemented in the PdfBookmarkEditor class. So now extracted bookmarks can be saved into stream object can be import into stream from XML file. Some important new and improved features included in this release are given below
  • Updating some RGB colors CMYK
  • ExportBookmarksToXML() should return output in Stream or XmlDocument object
  • Complete porting of DOM from Aspose.Pdf for .NET (New) v.9.0
  • Table with column more than 255 results empty PDF - aspose.pdf
  • Key cannot be null exception without license implementation is resolved
  • Intermittent issue resolved where random characters are shown on the licence when downloaded
  • Enhanced concatenate PDF files
  • Use Element.getChildren() method is resolved
  • PDF to Tiff conversion output has stray lines on page is fixed
  • Japanese text extraction is fixed
  • Text is mangled when viewing file over MAC is now fixed
  • StackOverflow Error is fixed when generating PDF document
  • API XML file with java code
  • NPE exception is resolved on filling form over Linux
  • PDF to JPEG - Colors appear as black in resultant Image is now fixed
  • Sync up the javadoc and the library
  • XPS to PDF: some text missing in resultant PDF file is fixed
  • PDF to PDFA_1b conversion issue resolved
  • NullPointerException is resolved on saving PDF in Linux
  • Arabic text is now properly being filled inside PDF document
Overview: Aspose.Pdf for Java
Aspose.Pdf is a Java PDF component to create PDF documents without using Adobe Acrobat. It supports Floating box, PDF form field, PDF attachments, security, Foot note & end note, Multiple columns document, Table of Contents, List of Tables, Nested tables, Rich text format, images, hyperlinks, JavaScript, annotation, bookmarks, headers, footers and many more. Now you can create PDF by API, XML and XSL-FO files. It also enables you to converting HTML, XSL-FO and Excel files into PDF.

Sunday, April 13, 2014

Render OneNote File’s Content, Bullet, Numbered Lists & Paragraphs using .NET

What’s new in this release?

We are pleased to announce the release of Aspose.Note for .NET 1.1.0. This latest version now supports rendering text with subscript or superscript layout. (Superscript and subscript is text or numbers slightly above or below the normal text level and usually in a smaller font.) In addition to that, users can easily access and manipulate bullet lists, numbered lists and paragraphs with spacing options through the Aspose.Note API. The content manipulation features now offer a bit more control. One valuable feature is retrieving the bullet or numbered list properties, for example the font, font size, font color and format. Thanks to the recently fixed issues and improvements, rendering a OneNote document to other formats is now better. In this regard, we have fixed some error messages which were thrown when the page contains the only title element or the font does not support the Regular style. Several other fixes have been made to improve the overall quality. Accuracy is the key factor. These fixes cover precise rendering of image inside the outline element, the correct measurement of text lines, size calculation of RichText elements and the indent position of outlines and outline group elements. The Document Object Model navigation mechanism has also been improved. It is now possible to access FirstChild, LastChild, NextSibling and PreviousSibling from the current node object. Aspose.Note assembly is CLS compliant. It makes sure that the library can be used from any CLR language.
The following API changes in the new version are also worth noting:
  • The SpaceBefore property has been added to the RichText class. Use it to get or set the minimum amount of space before the text line.
  • The SpaceAfter property has been added to the RichText class. Use it get or set the minimum amount of space after the text line.
  • The LineSpacing property has been added to the RichText class. Use it to get or set line spacing.
  • The NumberList property has been added to the OutlineElement class. Use it to get or set the bullet or number list for outline.
  • The INotebookVisitor interface is now a DocumentVisitor abstract class. It helps avoiding problems.
  • A new NumberList class  has been added. Use it to retrieve the numbers or bullet list.
The main features and bug fixes added in this release are listed below
  • Rendering the text with subscript or superscript formating.
  • Rendering the bullets list.
  • Rendering the numbering list.
  • Rendering the paragraph with spacing options (before, after, line spacing at least).
  • The Aspose.Note assembly become CLS compliant.
  • The INotebookVisitor interface become as DocumentVisitor abstract class, it is allow to prevent issues with extensibility.
  • Improved the Document Object Model navigation. The FirstChild, LastChild, NextSibling, PreviousSibling methods were implemented.
  • Exception is resolved for the page contains only title element.
  • The rendering of image inside outline element is now corrected
  • The measuring of text line is now corrected
  • Exception resolved for the font does not support 'Regular' style.
  • The size calculation is now corrected for rich text with custom spacing between lines.
  • The indent position is now corrected for outline and outline group elements.
Overview: Aspose.Note for .NET

Aspose.Note for .NET is a set of .NET components that enables developers to work with Microsoft Office OneNote files in C#, VB.NET, ASP.NET web applications, web services & Windows applications. It allows developers to open files & manipulate elements of OneNote books, from text, images & properties, to more complex elements, & then export to PNG, GIF, JPEG, BMP or PDF formats. It is a pure .NET alternative to the MS OneNote Object Model & supports OneNote 2010, OneNote®  2010 SP1 & 2013 files.

Monday, April 7, 2014

Add New Page to Visio Drawing & Enhanced MS Visio Drawings to EMF Export

What’s new in this release?

We are pleased to announce the new release of Aspose.Diagram for .NET 3.8.0. We’re pleased to announce that from this new release, developers can add a new page by its ID. To do so, they can easily calculate a maximum page ID and increment it. The new Page (int ID) constructor allows you to pass the page ID. You’ll find this feature in the product documentation topic: Insert a New Blank Page into a Visio Drawing. Another improvement is exporting Microsoft Visio drawings to EMF format. It has now been upgraded, especially during conversion. Previously, many cases showed error messages. Visio drawing export to HTML format has also been improved. The improved areas include a shape’s hyperlink redirection. In some cases, it was missing hyperlinks or its URL parameters. This release includes the most recent bug fixes and enhancements. This release includes plenty of new and improved features as listed below
  • Argument Null Exception error is fixed when exporting a sample diagram to EMF
  • Add page method is not functioning as expected
  • VSDX to HTML conversion, can't redirect through a shape hyperlink is fixed
  • VSD to HTML conversion, hyperlink on shape lost the url-parameter is now fixed
  • VSDX to HTML conversion, hyperlink on shape lost the url-parameter is now fixed
Overview: Aspose.Diagram for .NET
Aspose.Diagram is a class library for working with MS Visio files & is a pure .NET alternate for MS Visio Object Model.It enables developers to work with VSD & VDX files on ASP.NET web applications, web services & Windows applications. It makes use of the advanced functionality of Visio's services to manipulate Visio docs on a server. Developer can open files & manipulate the elements of the diagram, from lines and fills, to more complex elements, and then export to native Visio formats or XML.

Sunday, April 6, 2014

Read All or Specific Gantt Chart View Data & Group Definition Data from MS Project MPP files

What’s new in this release?

We are pleased to announce the release of Aspose.Tasks for Java 6.5.0 with a number of new features and enhancements. Ported from its equivalent .NET version, this month’s release provides the capability of reading all or specific Gantt chart View Data such as bar styles information, grid lines properties, and progress lines properties. This month’s release also provides the feature of Reading Group Definition Data from Microsoft Project MPP files. This empowers users to read all information related to the grouping of project data which is carried out on defined criteria. The information can then be used in applications that store Meta data about a project. This month’s release also introduces another feature of reading Filter Definition data from MPP data files. This also includes reading individual filter criteria data that allows determining the set of filters applied. In addition, reading Table Data from a Microsoft Project file is also supported with this month’s release which allows accessing each table in the project file along with reading the table fields. Below is the complete list of new features and important bug fixes included in this release.
  • Supports Reading specific Gantt Chart View Data
  • Reading specific view data from MS Project MPP files.
  • Read Group definition data from mpp 2003 files.
  • Read table data from mpp 2003 files.
  • Read filter definition data from mpp files.
  • Read specific gantt chart view data for 2007 file format.
  • Read view data from mpp 2013.
  • Read view data from mpp 2010.
  • Read view data from mpp 2007.
  • Read Filter Criteria data.
  • Read view data from mpp 2003.
  • Read specific gantt chart view data for 2003 file format.
Overview: Aspose.Tasks for Java

Aspose.Tasks is a non-graphical Java Project management component that enables Java applications to read, write & manage Project documents without utilizing MS Project. It supports reading MS Project Template (MPT) files as well as allows exporting project data to HTML, BMP, PNG, JPEG, PDF, TIFF, XPS, XAML and SVG formats. It reads & writes MS Project documents in both MPP & XML formats.  Developers can read & change tasks, recurring tasks, resources, resource assignments, relations & calendars.

Thursday, April 3, 2014

Optimized Report Designer, Improved Excel 2007/2010 File Formats & Conversions Support

What’s new in this release?

The long awaited version of Aspose.Cells for Reporting Services 2.0.0 has been released. In this release, we have optimized the Aspose.Cells for Reporting Services Report Designer. You can now load Aspose.Cells for Reporting Services add-ins for Excel x64. You can configure Report Servers to store or cache the report server data. Aspose.Cells for Reporting Services Report Designer saves current accessed report server URL. When you open the report server manager dialog in the Aspose.Cells Report Designer again, the dialog form automatically loads the saved report server information.  You can also import a report definition file for SSRS2008 or SSRS2008R2. Aspose.Cells also supports SSRS 2008R2 Shared DataSets now. When Aspose.Cells Report Designer opens a report definition file which includes shared datasets, it can automatically get dataset information which includes fields form. We have enhanced the performance regarding render files and fixed some issues with exporting reports. We have figured out some issues regarding cell formatting. This release fixes a number of internal and external bugs and includes several new enhancements too. For example, the header and footer issues, certain issues with conditional formatting, issues with merging data, page breaks and hyperlinks are addressed in this release. We made lots of improvements regarding Microsoft Excel 2007/2010 file formats and conversions. This release includes plenty of new and improved features as listed below
  • Dynamic Formula to sum table column
  • Configuring Report Servers to store/cache the report server data
  • Support Shared DataSets
  • Negative Values in perantheses
  • Aspose.Cells for Reporting Services Report Designer import report define file for SQL Server 2008
  • Document map does not export to Excel 2007 correctly  is now fixed
  • Report is losing the grouping rows and columns is fixed
  • Root element  missing error is resolved when the report has group rows
  • Illegal CLS character in tablix name are fixed
  • Incorrect rendering resolved when outputting to Excel 2007
  • Error "The same worksheet name already exists" while rendering report
  • Few column of SSRS report are merging in three cells in xlsx.
  • Several formatting strings are now interpreting correctly when opened on an iPhone
  • Aspose Excel Hyperlink Issue resolved
  • Report failure fixed when rendering Groups into a page with or without expressions
  • Columns width is now wrapped on cases for the Aspose Data Only renderer
  • Currency Formatting Issues are resolved
  • Conditional Page Breaking now working in Aspose Renderers
  • SSRS Export to XLSX shrinking Column Headers are fixed
  • Aspose Data Only Report Output - Page2 is now controlled through the Config for Report Header
  • First Report Column Output is merged into Two Excel Columns
  • Currency Formatting Issues resolved with Excel and Data Only Excel
  • Cells Reporting Services 2008R2 adding Group total row correctted
  • Extra Row Merged in report is fixed
  • Incorrect date time format is resolved when exporting to Excel 2007
  • Incorrect Time Format is fixed When Exporting to Excel 2007
  • Aspose Data Only Renderer - Page Break issue resolved
  • Incorrectly Named Worksheets when exporting to Excel 2007
  • Report rendering now correctly when exported to Excel
  • Additional Rows when exporting to Excel 2007
  • Horizontal Report Format
  • Inserting Extra Sheets on Exported Workbook
  • Error fixed for Exporting Report
  • Excel 2007 XLSX rendering issues
  • Excel Found Unreadable Content is fixed
  • Table is now generated as Tablix in the RDL
  • Error: Object reference is now set to an instance of an object
  • An error is fixed while exporting the report in XLSX Reporting Services
  • SSRS Grouping problem when exporting to xlsx
  • Aspose Excel 2007 Export Error is resolved with workbook
  • Runtime error is resolved
  • Conditional Formatting is fixed and now properly working
  • Problem is resolved with trial software - Only getting back one row
  • Format issues are resolved with Aspose.Cells for Reporting Services
  • Saving Report File Failure is fixed - Excel rendering using image
  • visibility issue resolved with tablix in SSRS
  •  No Excel "Document Map" available is fixed in Aspose Cells for SSRS 2005?
Other most recent bug fixes are also included in this release.
Overview: Aspose.Cells for Reporting Services

Aspose.Cells for Reporting Services allows you to export native Excel reports in Microsoft SQL Server 2005 Reporting Services. Unlike the built-in renderer for Excel based reports, Aspose.Cells for Reporting Services provides an extended feature set and allows RDL reports to be converted to: Excel 97-2003 binary XLS format, SpreadsheetML or the Excel2007 XLSX format. With Aspose.Cells Report Designer tool, users can design & deliver reports into MS Excel directly without using Visual Studio IDE.
  • Homepage of Aspose.Cells for Reporting Services
  • Download Aspose.Cells for Reporting Services

Wednesday, April 2, 2014

Aspose.Newsletter April 2014 is Out: New .NET API for MS OneNote & More

Aspose Newsletter for April 2014 has now been published that highlights all the newly supported features offered in the recent releases of its JasperReports exporters, SQL Server rendering extensions, .NET, Java, SharePoint components, Android & REST APIs. It includes information about how to add MS OneNote capabilities to your Apps using our new .NET API & Integration of Aspose for Java with NetBeans. This month video tutorial shows how to convert a Microsoft OneNote document to PDF & more.
Add Microsoft OneNote Capabilities to your Apps
With Aspose.Note for .NET you can. Convert to PDF or images, extract text, images and document information from your own web services, desktop and web applications. Aspose.Note is aimed at developers who need to work with OneNote files from within their own applications. It allows them to manipulate the file format quickly and easily, saving time and effort. Aspose.Note for .NET is an alternative to the Microsoft OneNote Object Model and provides great performance. The API is extensible, easy to use and compact. Download Aspose.Note for .NET.
Product News
New: Aspose.Note for .NET
Aspose.Note for .NET is an API for working with Microsoft Office OneNote files independently of Microsoft Office Automation. The first release of the API lets developers convert .one files to image and PDF formats, and extract text, image and document information. See what else it can do. Read more about .NET OneNote API.
Aspose.Imaging for Java Incorporates All Aspose.Metafiles for Java Features
Aspose.Imaging for Java Incorporates All Aspose.Metafiles for Java Features
From version 2.1, Aspose.Imaging for Java incorporates all Aspose.Metafile for Java features. By merging the two APIs we give you a single powerful library that makes it easier to program with images. Find out how to migrate.
Integrating Aspose for Java with NetBeans
Geertjan Wielenga, Principal Project Manager in the Oracle Developer Tools group, tried Aspose’s NetBeans plugin to see how it worked. The plugin lets you create an Aspose project, include APIs and run examples quickly and easily. Read the review
Aspose Addon on Cloudinary
Cloudinary, the image management solution, has extended their services by adding an Aspose addon that can be used for document conversion and management. Read the post
Converting OneNote Documents with Aspose.Note for .NET
To help you get up and running quickly with Aspose.Note, our latest .NET library, we’ve put together a tutorial video that shows how to convert a Microsoft OneNote document to PDF, GIF and PNG formats. Watch the video
ATTENTION: Java Champions, Java User Group Leaders, MVPs and Oracle ACEs
Did you know that Aspose has an NFR (Not For Resale) license policy? Aspose appreciates the time and effort that you put into the developer community by providing resources, guidance and fellowship so that others can learn, grow and enjoy being part of the community. We know we can’t give you that time back but are happy to provide you an NFR license for any of our development products.  Please contact nfr.requests@aspose.com and let us know which products you are interested in. Include a link to your profile so we can verify that you are eligible for an NFR license.
Thanks again for your continued support of the developer community.
Updates about new Product Releases
  1. Aspose.Total for .NET – a compilation of our latest .NET products.
  2. Aspose.Cells for .NET 8.0.0 - Improved memory management and other improvements and fixes.
  3. Aspose.Words for .NET 14.2.0 –Support for hyphenation and over 110 enhancements and fixes.
  4. Aspose.Pdf for .NET 9.0.0 - Convert MHT to PDF, extract signature information and more..
  5. Aspose.Slides for .NET 14.2.0 - Support for dual signing and improved hyperlink management.
  6. Aspose.BarCode for .NET 6.1.0 - Merges recognition and generation modules, support for .NET Compact Framework 3.5
  7. Aspose.Tasks for .NET 6.4.0 - Export project data to Oracle Primavera formats and more.
  8. Aspose.Email for .NET 3.9.0 - Move messages between folders in PST files and a number of fixes.
  9. Aspose.Diagram for .NET 3.7.0: - Get pages by name and improved VSD to PDF conversion.
  10. NEW: Aspose.Note for .NET 1.0.0: - Work with Microsoft OneNote in .NET applications.
  11. Aspose.Total for Java - a compilation of our latest Java products.
  12. Aspose.Words for Java 14.2.0 - Support for hyphenation and over 130 enhancements and fixes.
  13. Aspose.Pdf for Java 4.6.0 – SVG to PDF conversion and a number of fixes.
  14. Aspose.Slides for Java 8.3.0 –Improved PPT to HTML conversion and other enhancements.
  15. Aspose.Email for Java 3.9.0 –Move messages between folders in PST files and a number of fixes.
  16. Aspose.Tasks for Java 6.4.0 - Export project data to Oracle Primavera formats and more.
  17. Aspose.Imaging for Java 2.1.0- Support for metafiles and a number of fixes.
  18. Aspose.Total for Cloud – The latest versions of our Cloud products.
  19. Aspose.Total for Android – all the latest versions of our Android APIs.
  20. Aspose.Words for Android 1.7.0 –Support for hyphenation and over 110 enhancements and fixes.
  21. Aspose.Total for SharePoint – a compilation of our latest SharePoint products.
  22. Aspose.Email for SharePoint 1.9.0 – Create secure PDF documents.
  23. Aspose.Total for Reporting Services – a compilation of our latest Reporting Services products.
  24. Aspose.Cells for Reporting Services 2.0.0 – Improved Report Designer and a number of fixes.
  25. Aspose.Words for Reporting Services 4.1.1– Hotfix that resolves installation issue.
  26. Aspose.Slides for Reporting Services 4.11.0 – Support XPS export
  27. Aspose.BarCode for Reporting Services 6.1.0– Rendering enhancements.
  28. Aspose.Total for JasperReports - a compilation of our latest JasperReports products.
Supporting User Groups and Conferences
In March we sponsor a number of user groups, including:
  • March 31-April 4: DevWeek, London, UK.
  • April 9-12: Codemotion Rome, Rome, Italy.
  • April 11-13: C# Corner Annual Conference, Delhi, India.
Would you like us to sponsor your user group? Get in contact at user.groups@aspose.com
Collect your copy of Aspose Newsletter, October 2013 edition
Keep in Touch
There are several ways for you to keep in touch with us. The monthly newsletter is a way for us to keep in touch with you, but we are always interested in hearing from you.
- Post a question on our forums
- Follow us on Google+
- Connect with us on Post a question on our Facebook
Contact Information
Aspose Pty Ltd Suite 163,
 79 Longueville Road Lane Cove,
NSW, 2066 Australia
Phone: 888.277.6734
 Fax: 866.810.9465

Tuesday, April 1, 2014

C# & VB.NET Code Samples for Exporting AutoCAD DXF Drawing to PDF

This Technical tip explains how .NET developers can export DXF Drawings to PDF using Aspose.Imaging for .NET. Aspose.Imaging includes a feature for reading AutoCAD DXF drawing entities and rendering them as an entire drawing into PDF format. It is possible to customize the conversion process to achieve specific results. We have introduced a new Cad class in the Aspose.Imaging.FileFormats namespace. The Cad class is a family of AutoCAD drawings and since they all share similar schemes, it was decided to adopt a similar object model for the AutoCAD drawings family. To accomplish DXF to PDF export, a new class, PdfOptions, has been introduced to the Aspose.Imaging.ImageOptions namespace.
This approach works as follows:
  • Open DXF drawing file using the Aspose.Imaging.Image.Load factory method.
  • Export it to PDF using the Image.Save(<stream/file>, <PdfOptions instance>) method.
The programming sample below shows how to DXF Drawings to PDF file using default settings.
 [C# Code Sample]
using Aspose.Imaging.FileFormats.Cad;
using Aspose.Imaging.ImageOptions;
namespace DxfExamples
{
    /// <summary>
    /// Represents test examples for DXF -> PDF export
    /// </summary>
    public class DxfExamples
    {
        /// <summary>
        /// Default export.
        /// </summary>
        public void DefaultExport()
        {
            // Name of the file
            string filename = "Drawing1.dxf";
            // Load an image
            using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(filename))
            {
                // Create options
                PdfOptions pdfOptions = new PdfOptions();
                // Set output file size
                pdfOptions.PageWidth = 800;
                pdfOptions.PageHeight = 600;
                // Export
                image.Save(filename + ".pdf", pdfOptions);
            }
        }
    }
}
[VB.NET Code Sample]
Imports Aspose.Imaging.FileFormats.Cad
Imports Aspose.Imaging.ImageOptions
Namespace DxfExamples
        ''' <summary>
        ''' Represents test examples for DXF -> PDF export
        ''' </summary>
        Public Class DxfExamples
            ''' <summary>
            ''' Default export.
            ''' </summary>
            Public Sub DefaultExport()
                ' Name of the file
                Dim filename As String = "Drawing1.dxf"
                ' Load an image
                Using image As Aspose.Imaging.Image = Aspose.Imaging.Image.Load(filename)
                    ' Create options
                    Dim pdfOptions As New PdfOptions()
                    ' Set output file size
                    pdfOptions.PageWidth = 800
                    pdfOptions.PageHeight = 600
                    ' Export
                    image.Save(filename & Convert.ToString(".pdf"), pdfOptions)
                End Using
            End Sub
        End Class
    End Namespace
Setting the Image Size
Export from DXF to PDF is not a trivial task and since the PDF image requires the canvas size to be defined, we need to specify the output dimensions for the PDF image to render properly. Set the PdfOptions.PageWidth and PdfOptions.PageHeight properties explicitly, or you may get an ImageSaveException.
[C# Code Sample]
//The code sample below shows the auto-scaling option in use.
using Aspose.Imaging.FileFormats.Cad;
using Aspose.Imaging.ImageOptions;
namespace DxfExamples
{
    /// <summary>
    /// Represents test examples for DXF -> PDF export
    /// </summary>
    public class DxfExamples
    {
/// <summary>
        /// Export with automatical up-scaling.
        /// </summary>
        public void ExportAutoUpScale()
        {
            // Name of the file
            string filename = "Drawing2.dxf";
            // Load an image
            using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(filename))
            {
                // Create options
                PdfOptions pdfOptions = new PdfOptions();
                // Set output file size
                pdfOptions.PageWidth = 850;
                pdfOptions.PageHeight = 600;
                // Allow upscaling
                pdfOptions.ScaleMethod = ScaleType.GrowToFit;
                // Export
                image.Save(filename + "_UpScale.pdf", pdfOptions);
            }
        }
    }
}
[VB.NET Code Sample]
Imports Aspose.Imaging.FileFormats.Cad
Imports Aspose.Imaging.ImageOptions
Namespace DxfExamples
        ''' <summary>
        ''' Represents test examples for DXF -> PDF export
        ''' </summary>
        Public Class DxfExamples
               ''' <summary>
               ''' Export with automatical up-scaling.
               ''' </summary>
               Public Sub ExportAutoUpScale()
                       ' Name of the file
                       Dim filename As String = "Drawing2.dxf"
                       ' Load an image
                       Using image As Aspose.Imaging.Image = Aspose.Imaging.Image.Load(filename)
                               ' Create options
                               Dim pdfOptions As New PdfOptions()
                               ' Set output file size
                               pdfOptions.PageWidth = 850
                               pdfOptions.PageHeight = 600
                               ' Allow upscaling
                               pdfOptions.ScaleMethod = ScaleType.GrowToFit
                               ' Export
                               image.Save(filename & Convert.ToString("_UpScale.pdf"), pdfOptions)
                       End Using
               End Sub
        End Class
End Namespace

Overview: Aspose.Imaging for .NET

Aspose.Imaging for .NET is an image processing & manipulation component that allows developers to create, edit, draw or convert images in their .NET application. It allows developers to convert image files to PSD, BMP, JPEG, PNG, TIFF and GIF formats. Moreover a set of pens, brushes and fonts can be used to draw images or add new elements & text to existing images. Aspose.Imaging for .NET works well with both web & windows applications. Moreover, it adds the support for Silverlight platform.