PDF Reports

PDF reports are very popular in the business. Reports can be produced in the real-time, reports can be personalized, and reports can use a database. The advantage of the PDF reports is platform independent.

PDF Mosaic .NET SDK is suitable library to generate rich pdf reports with text, tables, images, annotations, media. PDF Mosaic has the ability to generate PDF tables. Let’s talk about PDF tables. With help of PDF Mosaic .NET SDK you can draw tables. Start with PDFMosaic.PDFTable class for creating an instance of a table. Then add new rows and column using properties Rows and Columns of the table object. Also, you can set the color of the background, border, border style. You can use advanced text string format, fonts, and color of the text. At the final, draw a table on PDF page by calling method DrawTable of the page canvas. See the following example for drawing table with help of out .NET library for generating PDF documents: click to see example.

If you need to generate PDF reports with tables for your customer, PDF Mosaic .NET is a good solution for your tasks. Drawing of tables with help of PDF Mosaic SDK is easy and simple. Download free library for .NET and try it: free download.


Team of PDF Mosaic.

PDF and Music – 2

Not all music is in PDF format. More music is in image formats such as JPG, PNG, or TIFF. For example, the following resource Pinterest provides music sheets for marches, waltzes, rags, theater music, cornet solos, trombone features, and much more in the PNG format mostly.  And if you want to convert music sheets in the image format, you can use PDF Mosaic SDK .NET for your purposes. PDF Mosaic .NET Library is able to convert images in various formats (BMP, jpeg, png, tiff, gif) to PDF documents. You can create an image from a file in GIF/TIFF/PNG/BMP/JPEG formats, or a buffer of image bytes, or a System.Drawing.Image object. To create PDF files from images, use PDFImage object and the following methods of canvas: public void DrawImage(PDFMosaic.PDFImage image,System.Single left,System.Single top), public void DrawImage(PDFMosaic.PDFImage image, System.Single left, System.Single top, System.Singlewidth, System.Single height).

The below is code for creating PDF from images:

using PDFMosaic;
using System.Drawing;

namespace DrawImage
    class DrawImage
        static void Main()
            PDFDocument document = new PDFDocument();
            document.Pages.Add(new PDFPage(PDFPaperFormat.A4));
            PDFCanvas canvas = document.Pages[0].Canvas;
            PDFImage image = new PDFImage("musicsheet.jpg");            
            canvas.DrawImage(image, 0, 0, image.Width, image.Height);
            document.Save("music.pdf", true);


Please see the sample PDF music compilations here: music.pdf

The PDF file was created by PDF Mosaic .NET Library. Original image here.
As can you see, the creation of PDF is an easy process with help of PDF SDK for .NET. Try it!

Read the first part of the article.


Team of PDF Mosaic.

PDF and Music


Music papper


PDF music sheets are very popular among musicians. Why? It is obvious.

PDF is the most widely-distributed format for digital devices. Musicians and bands frequently use iPads for the viewing music sheets. There is some devices to turn over pages.

Digital books are popular a long time ago. PDF books is standard. Many articles are printed in the PDF format. And now music sheets is going to PDF. There are many resources with warehouse of PDF music. For example, MusOpen. This site allows you to browse our sheet music by composer, instrument, form and time period. Using  PDF Mosaic .NET SDK you can merge several PDF sheets to one compilation, and play on your device. It can be done easily with help of our PDF .NET Library.


Team of PDF Mosaic.

PDF Mosaic version 1.4.0 has been released!

The new version of PDF Mosaic .NET has been released. We’ve fixed some bugs in the new version. Also we have added new feature — watermarks. If you want to add some info with your warnings, or copyright, or another additional information, you can use new API for managing watermarks in the PDF document. You have ability to set font, font size, location, and rotate angle for your text watermark. In the future release of PDF library we are planning to add API for managing image watermarks.
See the sample code for using text watermarks.

You can download this new version from our download page.

If you have any other questions, please don’t hesitate to contact us via support form.


Team of PDF Mosaic.

PDF Mosaic version 1.2.563 has been released!

We’re happy to announce that PDF Mosaic Library 1.2.563 has been released. The latest version of PDF SDK includes a bug fixes, enhancements and new functions.

In the new version the following features were added:

+ added method PDFDocument.SaveAsText (so, now you can easy convert any pdf documents to plain text);
+ added support for 256-bit AES encryption.

Also we’ve improved text extraction and optimized parsing of existing documents.

You can download this new version from our download page.

If you have any other questions, please don’t hesitate to contact us via the support form.

Team of PDF Mosaic.

PDF Mosaic version 1.1.514 has been released!

Good news! We’ve been released the next major version of PDF Mosaic Library – library to write/read/modify/fill PDF documents in .NET applications (Visual Basic.NET, C#, ASP.NET). The latest version contains a number of significant improvements and new features. 

New Featires and Improvements:

  • Added property PDFEditBox.TextRotationAngle;
  • Added methods PDFDocument.Append and PDFDocument.SaveRange;
  • Added support for Type1 and OpenType fonts;
  • Added methods PDFFont.FromFile and PDFFont.FromStream;
  • Added the ability to extract text – PDFPage.GetText;
  • Added optional content support – PDFOptionalContents, PDFLayer etc.;
  • Added support for managment of tables;
  • Added more samples;
  • Improved parsing of existing documents.

Download PDF Mosaic 1.1.514 now and give it a try. Check out the Samples and Manual to help you get started. The Tutorial is good for just getting started.

PDF Mosaic Library: Scoped parsing of PDF documents

Our library when you open and read pdf files using scoped parsing of document’s content. When opening a document, we extract the necessary minimum of pdf objects, and then in the process when applying to other objects we do parsing them. With this we were able to significantly reduce the time of opening and saving pdf documents, especially noticeable in the multi-pages if pdf documents. For example, the document, containing about 1300 pages, PDF Mosaic library opens for 1.5 seconds. PDF Mosaic library spends 40 seconds for saving the same document. Of course, time is approximate, since it depends on the machine on which conducted the tests, and the contents of pdf documents. But the advantages of deferred parsing clearly visible. But the advantages of delay parsing clearly visible.

If the processing time pdf documents is critical to you, or you mostly work with documents with many pages, we recommend to use the PDF Mosaic library, since this library is implemented effectively read of pdf documents.

The below a code for emulating and testing this situation:

using PDFMosaic;
using System;

namespace CreateAndSave
  class OpenAndSave
    static void Main(string[] args)
      // Open a big pdf file
      System.DateTime tmOpen = System.DateTime.Now;
      PDFDocument document = new PDFDocument(@"..\..\..\Adobe - Pdf Reference. 6th Ed.pdf");
      Console.WriteLine("Time spended for opening pdf file: {0} seconds", (System.DateTime.Now - tmOpen).Seconds);

      // Save opened file
      System.DateTime tmSave = System.DateTime.Now;
      document.Save("Adobe - Pdf Reference. 6th Ed - PDF Mosaic.pdf", true);
      Console.WriteLine("Time spended for saving pdf file: {0} minuts {1} seconds", (System.DateTime.Now - tmSave).Minutes, (System.DateTime.Now - tmSave).Seconds);

For example, compare the speed of PDF Mosaic library and iTextSharp. For testing we’ve using pdf with 1300 pages – Adobe PDF Reference.
The speed measurements were performed on computer has the fillowing configuration:
– CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ 2.30 GHz;
– RAM: 4,00 GB;
– OS: Windows 7 x64.

And we’ve got the following results (Speedtest and Comparsion of Open-Source iTextSharp and PDF Mosaic Library):
PDFMosaic opens the file during 0.9 sec;
iTextSharp opens the file during 27.5 sec.

Team of PDF Mosaic.

Features of PDF Mosaic 1.0

Our library has more than 500 supported functions for working with PDF files. You want to create, edit, split, merge, or personalize PDF files, or create Interactive Forms. The table below shows the features that are available in the first version of the PDF Library.

Creating Interactive Forms
Edit Form Fields
Edit and create JavaScript Functions, JavaScript Actions
Text formatting, output of multi-column text
TIFF support
Color spaces DeviceGray, DeviceRGB, DeviceCMYK
Native PDF Transparency for vector graphics and images
16 blend modes, ability to set the overprint mode
Vector graphics, Line Dash Patterns, Shadings, Patterns
Web links, File links, Page links, Bookmarks
File Attachment Annotations
Sound Annotations
Movie Annotations
Import of PDF files
No differentiation between client and server application
Color spaces ICCBased, DeviceN
Unlimited Delivery
Creation of PDF/A and PDF/X files planned for version 3.0
Validity check for PDF/A creation planned for version 3.0
Split and Merge PDF files, Single page import
40 Bit RC4, 128 Bit RC4/AES, 256 Bit AES Encryption
3D Annotations
Content parser to images, and vector graphics planned for version 1.1
EMF Conversion planned for version 3.0
Text Extraction, search and replace text planned for version 2.0
Digital Signatures planned for version 2.0
Create PDF documents from text files planned for version 1.1
Optional contents groups planned for version 1.1
Useful API for working with tables planned for version 1.1


Team of PDF Mosaic.

PDF Mosaic version 1.0.0 has been released!

It’s out, it’s out. PDF Mosaic 1.0.0 has been released today! This is a major release which includes many new features. Now we have 1.0.0, what is next? Below are some highlights of what to expect in the future of PDF Mosaic:

 – Creation of PDF/A files;
 – Content parser to extract text, images, and vector graphics;
 – EMF Conversion;
 – Digital Signatures.

What are you waiting for? Download PDF Mosaic 1.0.0 now and give it a try. Check out the Samples and Manual to help you get started. The Tutorial is good for just getting started.

Team of PDF Mosaic.

PDF: History

The Adobe Portable Document Format (PDF) is standard for document exchange. The PDF created by Adobe Systems in 1993. The goal of these products is to enable users to exchange and view electronic documents easily and reliably, independently of the environment in which they were created. Last update for format was released in 2009.

During 17 years, PDF is very popular among the formats for storing and exchange of information. The benefits that are now made to occupy a leading place to PDF are an open standard, multiplatform, data protection and the text-search features.

PDF describes text and graphics in a device-independent and resolution-independent manner. PDF also includes objects, such as fonts, encodings, interactive elements, security and signatures, file attachments, metadata, annotations and hypertext links.

Team of PDF Mosaic.