logo
small logo
  • Products
  • Buy
  • Support
  • Articles
  • Customer panel Support
    • en
    • ru
    • pt
    • es
    • de
    • pl
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • Save the original image quality when exporting to PDF
  • How to protect your PDF?

    November 30, 2020

    On the Data protection day, we decided to prepare an article about the PDF documents

    read more
  • Interactive forms in PDF export Fast Report .Net 2018

    January 17, 2018

    It's no secret that the PDF standard allows you to create fillable forms. That is,

    read more
  • How to make PDF on Raspberry PI with .NET Core

    May 26, 2020

    Raspberry PI is a miniature single-board computer with ARM processor. This microcomputer is often used

    read more
  • How to make a report like Drill-Down

    September 4, 2019

    Reports with grouping are necessary for data analysis. But when there are a lot of

    read more
  • How to connect to MongoDB from the FastReport.Net report

    November 16, 2019

    First of all, you need to assemble a plug-in connector library to the database for

    read more

Save the original image quality when exporting to PDF

August 20, 2017

In PDF export report there is a new option - "Original Resolution". It allows you to save images in full resolution. Sometimes it is important to transfer an image with the original quality. Using this new option, you will be able to get the image from a PDF document without any quality loss.

Here there is one restriction - you cannot rotate the image in the report because it will require a change of the image.

However, FastReport has a special protection on the odd chance that you have rotated the image. PDF export will get the original picture. What if you find an image of not a desired angle in your PDF report? In this case, you should check the export options to make sure that the "Original Resolution" option is enabled.

If it is necessary, you can scale the image.

Let us take a look at the following example. 

First, create a simple report. Add an object "Picture" to the report page. Double click on the added object "Picture". After this, a picture editor will open:

 

Use the "Load" button and select the image on the local disk. Click "OK". Here, scaling of the object "Picture" is optional:

 

Run the report in preview mode. Select «Save» -> «Adobe Acrobat»

In the PDF export settings select the "Options" tab:

Click "OK" and save the export file:

 

Now change the report template. Establish the "Angle property" of the object "Picture" to 90 degrees.

 

Take into account, that you should make export to PDF with the enabled "Original resolution":

As you can see, the image has not been rotated by 90 degrees.

Let us make another export to PDF, but with a disabled option "Original resolution":

In this case, we get an image, rotated by 90 degrees. But what happened to the "original" image?

The quality is lost. It is seen from the size of the file:

In the last export, we have disabled the option "Original Resolution" and got the file size of 93 KB instead of 14 703 KB. You can stretch the image if you open your PDF file in the editor. In first two exports the picture with high resolution will retain quality:

In the third one you will see a terrible pixelation:

Summing up, in the article we have illustrated a method, that helps you to send documents, retaining the original image quality.

about product download buy
avatar
Dmitriy Fedyashov
Head of QA
.NET FastReport PDF

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Buy
  • Download
  • Documentation
  • Testimonials
  • How to uninstall
  • Ticket system
  • FAQ
  • Tutorial Video
  • Forum
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Our team
  • Contact us

© 1998-2021 by Fast Reports Inc.

  • Privacy Policy