Friday, December 7, 2018

Optimize PDF and clean it up with a simple code

    22

Optimize PDF with easy PDF SDK

Portable Document Format is a container that consists of textual, graphical and technical information, such as fonts, metadata, color profiles, etc. With the popularity of Portable Document Format, the software to create or write a PDF file has also proliferated. Today there are thousands of software products/Applications, which create PDF files.

However, all PDFs are not created equal.

Each software product or Application is geared toward writing the PDF file, focusing on the artifacts in the PDF of interest to them. PDF writers aren’t always careful about maintaining the integrity of the PDF document, and take shortcuts in writing files. The result is still a valid PDF, conforming to PDF/A and PDF/X standards, but may have many discrepancies like:

  • Abandoned pages;
  • Abandoned images;
  • Abandoned hyperlinks;
  • Unsupported fonts.

As a PDF file gets passed among different people who use diverse software to read/write it, or by the same person feeding it to different applications, the above inconsistencies may creep into the file. This typically results in the file size growing mysteriously. Your application may remove some pages, but the file size may still grow! These PDF files are also slow to load in Acrobat Reader, or may not load at all in your software environment.

PDF file before optimization


The best way to optimize your PDF and decrees it size is removing such clutter. It all could be easily done programmatically if you have the time and the where with all to manipulate PDF files.

BCL’s eadyPDF SDK has the functionality to rectify this problem. The SDK has two functions which optimize the PDF, and bring it back to a well-knit efficient structure.

void Optimize(string InputFileName, string OutputFileName, string Password)
void Optimize2(string InputFileName, string OutputFileName, string Password, int Flags, string AdvancedOptions)

Optimizing PDF in .net environment

These functions parse the PDF file, check for unused items, and physically remove them. They also check the sanctity of all objects embedded in the PDF files. The functions take in a Password parameter, in case the PDF file is encrypted. The Optimize2 function uses a Flags parameter, which dictates if the private application data called PieceInfo, and XMP metadata is to be removed. These functions can be called explicitly which processing the PDF form your software, or can be called automatically after the call to any other method in the library. This is controlled by the Boolean OptimizeAfterEachProcess.

PDF Optimized by easyPDF SDK


Thus, no matter the source of your PDF, the easyPDF library can help you keep it optimized, so that it reduces the burden on your applications. After all, you can get the same PDF in a smaller size and of the same quality, which is ready for printing or archiving in a matter of minutes and with a few simple lines of code.

Test the optimization function today by downloading and installing easy PDF SDK free trial now.

22 comments:
Write comments
  1. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. The best wireless earbuds in 2020. Samsung Galaxy Buds Plus. Best wireless earbuds overall best wireless earbuds 2020. Apple AirPods Pro. Best wireless earbuds: the best Bluetooth earbuds and earphones in 2021 · Sony WF-1000XM3 · sennheiser momentum true wireless 2.
      ابی

      معین

      Delete
  2. best doc to pdf converter ever
    https://bit.ly/2KDvICk

    ReplyDelete
    Replies
    1. The best wireless earbuds in 2020. Samsung Galaxy Buds Plus. Best wireless earbuds overall best wireless earbuds 2020. Apple AirPods Pro. Best wireless earbuds: the best Bluetooth earbuds and earphones in 2021 · Sony WF-1000XM3 · sennheiser momentum true wireless 2.

      Delete
  3. PDF generated using these API are accessibility compatable? Can we make this as accessibility comparable?

    ReplyDelete
  4. After website has been updated, many pdfs are not converting as before.

    ReplyDelete
  5. دانلود فول آلبوم ایوان بند شامل تمام آهنگ های جدید و قدیمی ایوان بند با کیفیت ۳۲۰ و ۱۲۸ به صورت یکجا و تکی از رسانه گیتار موزیک.
    گروه ایواند بند از فواد غفاری و حسین شریفی در سال ۱۳۹۵ تشکیل شد. شاعر و ترانه سرای ایوان بند خانوم حدیث دهقان می باشد.

    ReplyDelete
  6. I think the admin of this site is truly working hard for his website, as here every stuff is quality Viva TV Apk For Android

    ReplyDelete
  7. It allows you to loslessly optimize PDF to reduce file size by stripping unnecessary meta data and applying compression, without affecting the quality in Reach us here

    ReplyDelete
  8. with this tool you can optimize multiple file at the same time & if you want to further need to reduce the file size you can afford to lose the quality.
    For more information visit :
    office.com/setup

    ReplyDelete
  9. best router 2021 for long range. Let me help you picking first long-range router for large home. I am also including a buying guide. Best Wireless Routers Under $100, $200, $300 and $500 in 2021 (WiFi 6 Routers Included). NETGEAR Nighthawk AX8 8-Stream WiFi 6 Router

    ReplyDelete
  10. https://honarfardi.com/women-skills/makeup-tutorial/make-hair-dye-darker/

    ReplyDelete
  11. great article i found it extremely helpful. we offer analyst training to aspiring business analysts in the best of environments, check us out at https://trainingbusinessanalyst.com/

    ReplyDelete
  12. When it comes to Inspect All Services Dallas Fort Worth, Texinspec tops the list as they have a versatile range of home inspection services along with experts who are certified professionals to make sure that when we call them to solve our problems, we should be ensured that they are going to take proper care of our worries and make sure that when they leave our house, they are taking away all the problems which leads to us getting help from the home inspectors. Every home related problem needs immediate care but one thing, if not checked on time can cause us lose hundreds to thousands of problems is termite problem. Termites destroy the structure of our home, affects the timber and causes the damage of wood work present in our home. Texinspec offers best Termite Inspection Service in Dallas as they have the necessary personnel and equipment to deal with the situation and help us get rid of it.



    ReplyDelete
  13. Quickbooks payroll update error 15241 as the name suggest that this error occurs in the payroll feature of the Quickbooks software.

    ReplyDelete
  14. Stubsondemand is an online paystub generator for your Earning Statement; insert your employee name, address, and income information if needed, and get your check stub with additions, deductions, and income tax withholdings. While using Stubsondemand generator you are able to easily eliminate your mistake at the time of filing stubs such as wrong name, amount, or other information.
    https://stubsondemand.com/paystub-generator/

    ReplyDelete
  15. Quickbooks Pdf converter is a built-in tool that is capable of converting the Quickbooks reports into Adobe PDF format. The conversion of these files is done through a component called the Quickbooks print component. The vital thing that you should note is that with the help of this tool you can perform a lot of tasks very easily. You can share the reports or file with someone who does not use the Quickbooks software. This is really thoughtful of Quickbooks to create this tool inside the Desktop software.

    ReplyDelete

© 1993 - , BCL Technologies. All other trademarks are the property of their respective owners. Privacy Policy