What's New in this Release? The long awaited version of Aspose.Words for.NET & Java (13.4.0) has been released. This month's release includes contains a massive 154 improvements to Aspose.Words, including several big performance boosts and interesting new features. The amount of memory required to render a document has been reduced by more than 20-30%. Rendering of images to PDF improved by approximately 25% when saving with JPEG compression.
The size of images stored in PDF files generated by Aspose.Words has been reduced in many cases. Duplication of images could sometimes occur in some situations. This issue has been resolved and file size improved in these cases. In this release Aspose.Words introduces support for digitally signing DOC and DOCX documents. A digital signature adds an extra layer of protection to a document and ensures that the document content has not been tampered with. This feature adds an 'invisible' signature to the document, which is not to be confused with a signature line which is a digital signature accompanied by a normally handwritten signature image. With this release Aspose.Words can now detect the compliance of a loaded OOXML document and resave the document using the correct compliance.
This avoids the document being saved to the wrong specification and unexpected compatibility warnings.
Can be used to specify additional options when saving a document into the format. Example:Saves a document to PDF without compression. Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions options = new PdfSaveOptions; options.setTextCompression(PdfTextCompression.NONE); doc.save(getMyDir + 'Rendering.SaveToPdfNoCompression Out.pdf', options); Example:Converts a whole document to PDF with three levels in the document outline. Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions options = new PdfSaveOptions; options.setHeadingsOutlineLevels(3); options.setExpandedOutlineLevels(1); doc.save(getMyDir + 'Rendering.SaveToPdfWithOutline Out.pdf', options); Constructor Summary. Gets or sets a value determining whether or not to export as Metadata.
The default value is false. When this value is set to true custom document properties are exported in PDF document as metadata. The namespace of exported properties in XMP packet is 'custprops'. Every property has an associated xml-element 'custprops:Property1', 'custprops:Property2' and so on. There is 'rdf:Description' element inside property element. The description element has two elements 'custprops:Name', containing custom property's name as a value of this xml-element, and 'custprops:Value', containing custom property's value as value of this xml-element.
Initializes a new instance of this class that can be used to save a document in the format. Example:Demonstrates how to set Aspose.Words to embed full fonts in the output PDF document. // Load the document to render.
Document doc = new Document(getMyDir + 'Rendering.doc'); // Aspose.Words embeds full fonts by default when EmbedFullFonts is set to true. The property below can be changed // each time a document is rendered. PdfSaveOptions options = new PdfSaveOptions; options.setEmbedFullFonts(true); // The output PDF will be embedded with all fonts found in the document. Doc.save(getMyDir + 'Rendering.EmbedFullFonts Out.pdf');. Property Getters/Setters Detail. getBookmarksOutlineLevel/setBookmarksOutlineLevel public int getBookmarksOutlineLevel / public void setBookmarksOutlineLevel(int value).
Controls how fonts are embedded into the resulting PDF documents. The default value is false, which means the fonts are subsetted before embedding. Subsetting is useful if you want to keep the output file size smaller.
Subsetting removes all unused glyphs from a font. When this value is set to true, a complete font file is embedded into PDF without subsetting. This will result in larger output files, but can be a useful option when you want to edit the resulting PDF later (e.g. Add more text). Some fonts are large (several megabytes) and embedding them without subsetting will result in large output documents. Example:Demonstrates how to set Aspose.Words to embed full fonts in the output PDF document. // Load the document to render.
Document doc = new Document(getMyDir + 'Rendering.doc'); // Aspose.Words embeds full fonts by default when EmbedFullFonts is set to true. The property below can be changed // each time a document is rendered. PdfSaveOptions options = new PdfSaveOptions; options.setEmbedFullFonts(true); // The output PDF will be embedded with all fonts found in the document. Doc.save(getMyDir + 'Rendering.EmbedFullFonts Out.pdf'); Example:Demonstrates how to set Aspose.Words to subset fonts in the output PDF. // Load the document to render. Document doc = new Document(getMyDir + 'Rendering.doc'); // To subset fonts in the output PDF document, simply create new PdfSaveOptions and set EmbedFullFonts to false. PdfSaveOptions options = new PdfSaveOptions; options.setEmbedFullFonts(false); // The output PDF will contain subsets of the fonts in the document.
Only the glyphs used // in the document are included in the PDF fonts. Doc.save(getMyDir + 'Rendering.SubsetFonts Out.pdf');. getEmbedStandardWindowsFonts/setEmbedStandardWindowsFonts public boolean getEmbedStandardWindowsFonts / public void setEmbedStandardWindowsFonts(boolean value). Gets or sets a value determining whether or not to embed standard windows fonts Arial and Times New Roman. The default value is true. When this value is set to false Arial and Times New Roman fonts are not be embedded into PDF. Only Arial and Times New Roman fonts are affected by this setting because MS Word doesn't embed only these fonts when saving document to the PDF.
This setting works only for the text in ANSI (Windows-1252) encoding. If the document contains non-ANSI text then corresponding fonts will be embedded regardless of this setting. Note that when saving to PDF/A this option must be set to true as all fonts must be embedded in the PDF file. Example:Shows how to set Aspose.Words to skip embedding Arial and Times New Roman fonts into a PDF document. // Load the document to render. Document doc = new Document(getMyDir + 'Rendering.doc'); // To disable embedding standard windows font use the PdfSaveOptions and set the EmbedStandardWindowsFonts property to false.
PdfSaveOptions options = new PdfSaveOptions; options.setEmbedStandardWindowsFonts(false); // The output PDF will be saved without embedding standard windows fonts. Doc.save(getMyDir + 'Rendering.DisableEmbedWindowsFonts Out.pdf');. getEncryptionDetails/setEncryptionDetails public getEncryptionDetails / public void setEncryptionDetails( value). Gets or sets the details for encrypting the output PDF document.
The default value is null and the output document will not be encrypted. When this property is set to a valid object, then the output PDF document will be encrypted. Note that encryption cannot be used when PDF/A compliance is set as this compliance does not permit encryption.' ); Example:Demonstrates how to set permissions on a PDF document generated by Aspose.Words.
Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions saveOptions = new PdfSaveOptions; // Create encryption details and set owner password. PdfEncryptionDetails encryptionDetails = new PdfEncryptionDetails(', 'password', PdfEncryptionAlgorithm.RC4128); // Start by disallowing all permissions.
EncryptionDetails.setPermissions(PdfPermissions.DISALLOWALL); // Extend permissions to allow editing or modifying annotations. EncryptionDetails.setPermissions(PdfPermissions.MODIFYANNOTATIONS PdfPermissions.DOCUMENTASSEMBLY); saveOptions.setEncryptionDetails(encryptionDetails); // Render the document to PDF format with the specified permissions.
Doc.save(getMyDir + 'Rendering.SpecifyPermissions Out.pdf', saveOptions);. getExpandedOutlineLevels/setExpandedOutlineLevels public int getExpandedOutlineLevels / public void setExpandedOutlineLevels(int value). Specifies how many levels in the PDF document outline to show expanded when the PDF file is viewed. Specify 0 and the document outline will be collapsed; specify 1 and the first level items in the outline will be expanded and so on.
Default is 0. Valid range is 0 to 9. Example:Converts a whole document to PDF with three levels in the document outline. Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions options = new PdfSaveOptions; options.setHeadingsOutlineLevels(3); options.setExpandedOutlineLevels(1); doc.save(getMyDir + 'Rendering.SaveToPdfWithOutline Out.pdf', options);. getExportCustomPropertiesAsMetadata/setExportCustomPropertiesAsMetadata public boolean getExportCustomPropertiesAsMetadata / public void setExportCustomPropertiesAsMetadata(boolean value). Gets or sets a value determining whether or not to export as Metadata.
The default value is false. When this value is set to true custom document properties are exported in PDF document as metadata. The namespace of exported properties in XMP packet is 'custprops'. Every property has an associated xml-element 'custprops:Property1', 'custprops:Property2' and so on. There is 'rdf:Description' element inside property element. The description element has two elements 'custprops:Name', containing custom property's name as a value of this xml-element, and 'custprops:Value', containing custom property's value as value of this xml-element.
getExportDocumentStructure/setExportDocumentStructure public boolean getExportDocumentStructure / public void setExportDocumentStructure(boolean value). Specifies the font embedding mode. The value of the property is integer constant.
The default value is. This setting works only for the text in ANSI (Windows-1252) encoding. If the document contains non-ANSI text then corresponding fonts will be embedded regardless of this setting.
Note that when saving to PDF/A this option must be set to as all fonts must be embedded in the PDF file. getHeadingsOutlineLevels/setHeadingsOutlineLevels public int getHeadingsOutlineLevels / public void setHeadingsOutlineLevels(int value). Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the PDF document outline. Specify 0 for no headings in the outline; specify 1 for one level of headings in the outline and so on.
Default is 0. Valid range is 0 to 9. Example:Converts a whole document to PDF with three levels in the document outline. Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions options = new PdfSaveOptions; options.setHeadingsOutlineLevels(3); options.setExpandedOutlineLevels(1); doc.save(getMyDir + 'Rendering.SaveToPdfWithOutline Out.pdf', options);. getImageColorSpaceExportMode/setImageColorSpaceExportMode public int getImageColorSpaceExportMode / public void setImageColorSpaceExportMode(int value). Gets or sets a value determining the quality of the JPEG images inside PDF document. Has effect only when a document contains JPEG images.
Use this property to get or set the quality of the images inside a document when saving in PDF format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression. If quality is 100 and source image is JPEG, it means no compression - original bytes will be saved. The default value is 100.
getMemoryOptimization/setMemoryOptimization public boolean getMemoryOptimization / public void setMemoryOptimization(boolean value). Gets or sets used for rendering of numerals. European numerals are used by default. The value of the property is integer constant.
If the value of this property is changed and page layout is already built then is invoked automatically to update any changes. Example:Demonstrates how to set the numeral format used when saving to PDF. PdfSaveOptions options = new PdfSaveOptions; options.setNumeralFormat(NumeralFormat.CONTEXT);. getOpenHyperlinksInNewWindow/setOpenHyperlinksInNewWindow public boolean getOpenHyperlinksInNewWindow / public void setOpenHyperlinksInNewWindow(boolean value). Gets or sets a value determining whether hyperlinks in the output Pdf document are forced to be opened in a new window (or tab) of a browser. The default value is false. When this value is set to true hyperlinks are saved using JavaScript code.
Aspose Software
JavaScript code is app.launchURL('URL', true);, where URL is a hyperlink. Note that if this option is set to true hyperlinks can't work in some PDF readers e.g. Chrome, Firefox. getOptimizeOutput/setOptimizeOutput public boolean getOptimizeOutput / public void setOptimizeOutput(boolean value). Gets or sets a value determining whether or not to preblend transparent images with black background color. Preblending images may improve PDF document visual appearance in Adobe Reader and remove anti-aliasing artifacts.
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. The default value is false. getPreserveFormFields/setPreserveFormFields public boolean getPreserveFormFields / public void setPreserveFormFields(boolean value). Specifies whether to preserve Microsoft Word form fields as form fields in PDF or convert them to text. Default is false. Microsoft Word form fields include text input, drop down and check box controls.
When set to false, these fields will be exported as text to PDF. When set to true, these fields will be exported as PDF form fields. When exporting form fields to PDF as form fields, some formatting loss might occur because PDF form fields do not support all features of Microsoft Word form fields. Example:Shows how to save a document to the PDF format using the Save method and the PdfSaveOptions class. When true, pretty formats output where applicable.
Default value is false. Set to true to make HTML, MHTML, EPUB, WordML, RTF, DOCX and ODT output human readable. Useful for testing or debugging. Example:Shows how to pass an option to export HTML tags in a well spaced, human readable format. Document doc = new Document(getMyDir + 'Document.doc'); HtmlSaveOptions htmlOptions = new HtmlSaveOptions(SaveFormat.HTML); // Enabling the PrettyFormat setting will export HTML in an indented format that is easy to read.
// If this is setting is false (by default) then the HTML tags will be exported in condensed form with no indentation. HtmlOptions.setPrettyFormat(true); doc.save(getMyDir + 'Document.PrettyFormat Out.html', htmlOptions);. getSaveFormat/setSaveFormat public int getSaveFormat / public void setSaveFormat(int value). Specifies the folder for temporary files used when saving to a DOC or DOCX file. By default this property is null and no temporary files are used. When Aspose.Words saves a document, it needs to create temporary internal structures. By default, these internal structures are created in memory and the memory usage spikes for a short period while the document is being saved.
HWK Chip Software Informer. Featured HWK Chip free downloads and reviews. Latest updates on everything HWK Chip Software related. Hwk software. Jan 25, 2018 HWK Suite by SarasSoft. Versions: and. File name: DCTxBB5.exe. Hwk Suit Setup, free hwk suit setup software downloads, Page 3.
When saving is complete, the memory is freed and reclaimed by the garbage collector. If you are saving a very large document (thousands of pages) and/or processing many documents at the same time, then the memory spike during saving can be significant enough to cause the system to throw System.OutOfMemoryException. Specifying a temporary folder using will cause Aspose.Words to keep the internal structures in temporary files instead of memory. It reduces the memory usage during saving, but will decrease the save performance.
The folder must exist and be writable, otherwise an exception will be thrown. Aspose.Words automatically deletes all temporary files when saving is complete. getTextCompression/setTextCompression public int getTextCompression / public void setTextCompression(int value). Specifies compression type to be used for all textual content in the document.
The value of the property is integer constant. Example:Saves a document to PDF without compression. Document doc = new Document(getMyDir + 'Rendering.doc'); PdfSaveOptions options = new PdfSaveOptions; options.setTextCompression(PdfTextCompression.NONE); doc.save(getMyDir + 'Rendering.SaveToPdfNoCompression Out.pdf', options);. getUpdateFields/setUpdateFields public boolean getUpdateFields / public void setUpdateFields(boolean value).
Gets or sets a value determining whether or not to use anti-aliasing for rendering. The default value is false. When this value is set to true anti-aliasing is used for rendering. This property is used when the document is exported to the following formats:,. When the document is exported to the, and formats this option is used for raster images. getUseBookFoldPrintingSettings/setUseBookFoldPrintingSettings public boolean getUseBookFoldPrintingSettings / public void setUseBookFoldPrintingSettings(boolean value).
Pdf Compression Adobe
Gets or sets a boolean value indicating whether the document should be saved using a booklet printing layout, if it is specified via #Error Cref: PageSetup.MultiplePages. If this option is specified, page range set via #Error Cref: PageIndex and #Error Cref: PageCount is ignored when saving. This behavior matches MS Word.
If book fold printing settings are not specified in page setup, this option will have no effect. getUseCoreFonts/setUseCoreFonts public boolean getUseCoreFonts / public void setUseCoreFonts(boolean value). Gets or sets a value determining whether or not to substitute TrueType fonts Arial, Times New Roman, Courier New and Symbol with core PDF Type 1 fonts. The default value is false. When this value is set to true Arial, Times New Roman, Courier New and Symbol fonts are replaced in PDF document with corresponding core Type 1 font. Core PDF fonts, or their font metrics and suitable substitution fonts, are required to be available to any PDF viewer application. This setting works only for the text in ANSI (Windows-1252) encoding.
Non-ANSI text will be written with embedded TrueType font regardless of this setting. Settings core fonts to true is not allowed when saving to PDF/A as this compliance requires all fonts to be embedded. This option has a higher priority then option. Example:Shows how to set Aspose.Words to avoid embedding core fonts and let the reader subsuite PDF Type 1 fonts instead. // Load the document to render. Document doc = new Document(getMyDir + 'Rendering.doc'); // To disable embedding of core fonts and subsuite PDF type 1 fonts set UseCoreFonts to true. PdfSaveOptions options = new PdfSaveOptions; options.setUseCoreFonts(true); // The output PDF will not be embedded with core fonts such as Arial, Times New Roman etc.
Doc.save(getMyDir + 'Rendering.DisableEmbedWindowsFonts Out.pdf');. getUseHighQualityRendering/setUseHighQualityRendering public boolean getUseHighQualityRendering / public void setUseHighQualityRendering(boolean value).
When using the compressionlevel the size of the file is not changing. Code is, MemoryStream stream = new MemoryStream; doc.Save(stream, SaveFormat.FormatAsposePdf); //Seek to the beginning so it can be read by XmlDocument. Stream.Seek(0, SeekOrigin.Begin); //Load the document into an XmlDocument XmlDocument xmlDoc = new XmlDocument; xmlDoc.Load(stream); Pdf pdf = new Pdf; pdf.CompressionLevel = 9; pdf.IsImagesInXmlDeleteNeeded = true; pdf.BindXML(xmlDoc, null); pdf.Save(pdfFile); return pdfFile.
Aspose.PDF for.NET allows the developers to embed PDF document creation, manipulation & conversion capabilities in their.NET applications. It supports working with many popular file formats including PDF, XFA, TXT, HTML, PCL, XML, XPS, EPUB, TEX and image file formats. Aspose.PDF for.NET is an affordably priced, feature rich PDF API that offers PDF compression options, table creation and manipulation, graph & image functions, extensive hyperlink functionality, extended security controls and custom font handling.
Moreover, developers can create PDF documents directly through its API or via XML templates, and can create forms or manage form fields embedded in PDF documents. Save PDF in different formats - C# // load the file to be converted var pdf = new Aspose.Pdf.Document(dir + 'template.pdf'); // save in different formats pdf.Save(dir + 'output.docx', Aspose.Pdf.SaveFormat.DocX); pdf.Save(dir + 'output.pptx', Aspose.Pdf.SaveFormat.Pptx); pdf.Save(dir + 'output.html', Aspose.Pdf.SaveFormat.Html); Furthermore, you can either transform each page of a PDF file to conventional raster & vector image formats such as BMP, JPEG, PNG, GIF, EPS, SVG or convert whole PDF to multi-page TIFF. You may also convert PDF files to XLS, EPS, SVG, XPS, LaTex, TXT and PDF/A format with ease. Create & Manipulate PDF Documents On the Fly Aspose.PDF for.NET offers the capability to create PDF documents from scratch. You can use its API or transform images, XML, XSL-FO, HTML, SVG, PCL, XPS, EPUB or simple text files to PDF documents. Moreover, you can specify XMP metadata, author details, creator details and title information during the PDF generation.
Aspose.PDF for.NET is also a good choice when you need to edit or manipulate existing PDF documents. It allows you to concatenate or merge two or more PDF documents, append new pages to an existing PDF file, extract pages, insert pages at a particular location in an existing PDF file, split PDF documents or create N-up's (number of pages over single page) and booklets. Set Security Constraints for PDF Documents Aspose.PDF for.NET offers the facility to encrypt and de-crypt PDF documents with either 40-bit,128-bit or 256-bit encryption, and provides the ability to specify user passwords for further PDF security. Content modification in PDF documents such as copying content, printing the file, completing form fields, degraded printing, annotation modification as well as PDF document assembly can also be restricted. Aspose.PDF for.NET allows you to further improve PDF security mechanism by using PKCS#1, PKCS#7 and PKCS#7 detached signature types, and with the use of digital certificate. You may specify the certificate level and set the graphical appearance of the signature as per application requirements.
Process PDF Form Field Aspose.PDF for.NET provides advanced features far form just fields processing. With this single product, you get a bunch of features from simple addition of form fields to the PDF document to more advanced abilities such as dynamically rename, remove and copy form fields across the PDF documents, set JavaScript for push button and flatten form fields. This product is also great when it comes to specifying field attributes such as READONLY, REQUIRED, NOEXPORT, HIDDEN, NOZOOM. You can also easily specify visual attributes such as field Alignment, BorderStyle, ButtonStyle, FontSize, TextColor, TextEncoding or define custom positioning to place the form fields at absolute position within the document. Aspose.PDF for.NET also supports importing & exporting form fields data from XML, FDF or XFDF files. Moreover, you can bind form fields with OLEDB or ODBCDB data sources.
API also allows to import an image or barcode, get field data with rich text formatting or add submit button to post data to a specified URL. Graph & Imaging Capabilities Aspose.PDF for.NET provides support for many different types of graphs: graphs can be drawn on any page location specified by coordinates and existing graphs can be rotated and scaled to suit your requirements. You may also try converting images residing on disk, memory or web location, to PDF format. Along with conventional image types, CCITT (fax) images, multi-page TIFF images and transparent GIF images are also supported. Aspose.PDF for.NET also allows you to add, replace, extract or delete images already present in a PDF document. You may also add images as watermark while generating PDF documents or manipulating existing files.
Add Tables to PDF Documents Aspose.PDF for.NET allows you to add tables to PDF documents, where you can specify the table border style, margin and padding information, column widths and spanning options, control row splitting attributes, create nested tables, clone table objects or simply import data from an object array, data table or data view. Default cell formatting can be applied to entire table cells, create individual rows and columns, add repeating rows or create nested tables. Tables can be placed inside the main PDF document or inside the header and footer sections. Hyperlink & Attachments Features Aspose.PDF for.NET allows you to add hyperlinks pointing to other pages within same PDF, hyperlinks to pages in other PDF documents, hyperlinks to non-PDF files or you may add hyperlinks towards any web location. Along with hyperlink creation, get the capabilities to extract hyperlinks from a PDF document. Get the power to add, update, import, export or delete attachments and annotations. Files of any type can be attached to a PDF document and annotation types such as polygon, polyline, pop-up, rubber stamp, caret, free text and many more can be added.
You may also specify icon type, coordinates and opacity values. Text Formatting Features Aspose.PDF for.NET allows to apply text alignment, place contents in right-to-left languages such as Arabic, Hebrew and Urdu, create left hanging text paragraphs, preserve white space in text, set custom tab stops. You may also define text formatting for all segments of a document. Along with the ability to specify horizontal alignment of the text, you can also specify vertical alignment of text segments such as baseline or topline. Text foreground and background colors can also be changed. You may use replaceable symbols which allow you to change the corresponding text content at runtime. This product is great when it comes to text extraction, text replacement and insertion of new text inside an existing PDF document.
The output file size increases with each iteration because you're using the component in evaluation mode. When working in evaluation mode, it adds evaluation watermarks in the PDF file. Moreover, in evaluation mode, component is little slower too due to the evaluation checks and watermarks etc. Please use the component with the license file. If you're just evaluating then you may to test the application without any such limitations.
Also, please make sure that you're using the latest version of the component -. If you still find any further questions or issues, please share with us.
I have also added a snapshot of the output received at my end with the license file: Disclosure: I work as a developer evangelist at Aspose.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |