Posted at: 15:12 on 19 August 2010 by Muhimbi
![]()
As part of our on-going series about new features in the PDF Converter for SharePoint 4.0 and PDF Converter Services, we would like to showcase our exciting new HTML to PDF conversion functionality.
Scrolling Text Boxes. I have a form that has several fields that allow for a scroll bar when the text exceeds the text box area. This is great, but the only problem is when I print out the form, the additional text beyond the box is collapsed and I see the little plus sign next to it.
Please note that this article mentions SharePoint as well as .NET a number of times. Rest assured that, as the PDF Converter Services is Web Services based, it works just as well from Java, C#, Ruby and other web services capable environments.
We anticipate that most of our customers will use this functionality to convert SharePoint pages, including lists, to PDF format. However, rather than displaying a boring old SharePoint site, letâs show how well this works with a real website, in this case one of our landing pages.
UPDATE: A workflow activity is now available as well for converting HTML to PDF as is an update for the SharePoint User interface to convert SharePoint pages to PDF format.
The following image shows the original HTML page on the left hand side and the converted PDF file on the right. As you can see this works very well.
Example of the original web page (left) and the converted PDF file (right) A summary of the new HTML features are as follows. Although this new functionality is available in both the PDF Converter Services as well as the PDF Converter for SharePoint, some of the more SharePoint centric features in the list are obviously exclusive to the SharePoint version.
HTML to PDF Conversion is accessible via the web services based interface as well. Listed below is a simple C# example of how to carry out a conversion from your own code. The code is not complete as it calls into some shared functions from our main C# example to keep things short.
Our existing Java based examples can easily be extended to carry out the same type of conversions. Contact us if you need a hand, we love to help and are very responsive.
All in all some pretty exciting functionality. Donât hesitate to leave a comment below if you have any questions or contact us to discuss any of our products.
.
Labels: Articles, Java, News, pdf, PDF Converter, PDF Converter Services, Products
Create, edit, protect and convert PDF documents to multiple formats within .NET-based applications without any Adobe Acrobat dependencies.Download Free TrialOverview
Open NuGet package manager, search for Aspose.PDF and install.
You may also use the following command from the Package Manager Console.
PM>
Convert PDF to multiple formats
Add, update, delete text & images from PDF documents
Insert, extract, append & concatenate PDF documents
Insert text, image or page stamp
Encrypt and decrypt PDF as well as modify passwords
Variety of printing options
Convert PDF to Word, PowerPoint & HTML Formats
With as little as 2 lines of code, you can implement robust PDF to Word, PowerPoint or HTML conversion features for your .NET applications.
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 the whole PDF to multi-page TIFF. You may also convert 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 generate 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.
This library 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 files, append new pages to an existing file, extract pages, insert pages at a particular location in an existing file, split documents or create N-up's (number of pages over the single page) and booklets.
Set Security Constraints for PDF Documents
Aspose.PDF for .NET offers the facility to encrypt and decrypt documents with either 40-bit,128-bit or 256-bit encryption and provides the ability to specify user passwords for further security. Content modification in documents such as copying the content, printing the file, completing form fields, degraded printing, annotation modification as well as document assembly can also be restricted.
API allows you to further improve security mechanism by using PKCS#1, PKCS#7 and PKCS#7 detached signature types, and with the use of the digital certificate. You may specify the certificate level and set the graphical appearance of the signature as per application requirements.
Process PDF Form Fields
Aspose.PDF for .NET provides advanced features beyond simple form fields processing. With this single product, you get a bunch of features from the addition of form fields to advanced abilities such as dynamically rename, remove and copy form fields across the documents, set JavaScript for the push button and flatten form fields. This product is also great when it comes to specifying field attributes such as READ_ONLY, REQUIRED, NO_EXPORT, HIDDEN, NO ZOOM. 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 an 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 file. You may also add images as a watermark while generating documents or manipulating existing files.
Adobe Acrobat Automation â Not Needed
Aspose.PDF for .NET APIs are built using managed code that can be installed and deployed as a single .NET assembly without needing Adobe Acrobat installed. It is easier and flexible to use compared to Adobe Acrobat automation.
What People Are Saying
Don't just take our word for it. See what users have to say about APIs.
Having switched to Aspose.PDF, we are yet to discover a single instance where the document conversion fails. In the past, we had kept anonymized versions of the customer PDF documents that failed to open or merge using SyncFusion, and were pleased to find that all of those documents were processed flawlessly with Aspose.PDF.Zeeshan Bhatti | BoardPro, New Zealand
For this project, the components gave us more than what we bargained for. The implementation was a breeze; the added value ensured full customer satisfaction. For future projects, where components might be required, Aspose is definitely the first place we will look.Pascal Sabbe | HICT, Belgium
PreviousNextView Case Studies
Support and Learning Resources
Aspose.PDF offers individual PDF APIs for other popular development environments as listed below:
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |