OpenPDF | free Java library for creating and editing PDF files | Document Editor library

 by   LibrePDF Java Version: 1.3.34 License: Non-SPDX

kandi X-RAY | OpenPDF Summary

kandi X-RAY | OpenPDF Summary

OpenPDF is a Java library typically used in Editor, Document Editor applications. OpenPDF has no bugs, it has no vulnerabilities, it has build file available and it has medium support. However OpenPDF has a Non-SPDX License. You can download it from GitHub, Maven.

OpenPDF is a Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is the LGPL/MPL open source successor of iText, and is based on some forks of iText 4 svn tag. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.

            kandi-support Support

              OpenPDF has a medium active ecosystem.
              It has 2759 star(s) with 481 fork(s). There are 71 watchers for this library.
              There were 4 major release(s) in the last 12 months.
              There are 121 open issues and 263 have been closed. On average issues are closed in 216 days. There are 22 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of OpenPDF is 1.3.34

            kandi-Quality Quality

              OpenPDF has 0 bugs and 0 code smells.

            kandi-Security Security

              OpenPDF has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OpenPDF code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              OpenPDF has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              OpenPDF releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              OpenPDF saves you 91696 person hours of effort in developing the same functionality from scratch.
              It has 101417 lines of code, 6862 functions and 756 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed OpenPDF and discovered the below as its top functions. This is intended to give you an instant insight into OpenPDF implemented functionality, and help decide if they suit your requirements.
            • Calculates the total widths of the table .
            • Reads all properties from the frame
            • Computes the owner key of the user .
            • Go through all the columns in the composite .
            • Writes a line to the content .
            • Handle start tags .
            • Write cells .
            • Reads the next token .
            • merge internal tables
            • Gets the appearance of the layer .
            Get all kandi verified functions for this library.

            OpenPDF Key Features

            No Key Features are available at this moment for OpenPDF.

            OpenPDF Examples and Code Snippets

            Open local pdf file in Xamarin Forms
            Lines of Code : 77dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            [assembly: Dependency(typeof(OpenPDF))]
            namespace BoxViewColorDemo.Droid
                public class OpenPDF : IOpenFile
            How open document pdf/docx with external app in Android
            Lines of Code : 8dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
             File pdfFile = new File("File Path");
             Intent openPdf = new Intent(Intent.ACTION_VIEW);
             fileUri = FileProvider.getUriForFile(viewContext,com.mydomain.fileprovider, pdfFile);
            Generate PDF with iTextSharp in Xamarin (Unicode, Russian)
            Lines of Code : 156dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            public string ExportFontFileToSDCard(string FontFileName)
                    string _sdcard_directory = null;
                        _sdcard_directory = Environment.GetExternalStoragePublicDirectory(Environment.DirectoryDcim) +
            FIORI: display PDF file sent from the Gateway
            Lines of Code : 7dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            openPDF : function(){
                    var URL = ",PersonnelAssignment='00100226')/$value";
                    sap.m.URLHelper.redirect( URL, true )
            I try to copy from raw to external memory but it does not work
            Lines of Code : 107dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            static final Integer WRITE_EXST = 0x3;
               private void askForPermission(String permission, Integer requestCode) {
                if (ContextCompat.checkSelfPermission(MainAct

            Community Discussions


            How to render a pdf in android using pdf renderer
            Asked 2022-Feb-04 at 12:15

            Hello guys how do solve this my error log I'm trying to render pdfs using the android graphics pdfrenderer class in android I've tried to observe where or how I got it wrong but I can't see yet please guys how exactly do I achieve this using this particular class any idea will be very much appreciated.



            Answered 2022-Feb-04 at 05:52

            there you can use this code. it's working fine for me



            Spring Java : PDF download only works with idm
            Asked 2021-Dec-23 at 07:20

            i need to download a pdf with OpenPDF using the following controller method as a web service :



            Answered 2021-Dec-23 at 07:20

            I found the solution , it was simply that the web service's client should precise the response type as array buffer , In my case it was VueJS , so i added the following on axios call :



            How to open file stored in stoarge folder in laravel?
            Asked 2021-Dec-23 at 04:48

            I am trying to open files which is stored in "storage/app/public/cca_license/pdf_upload" folder. When I try to open the file, the content is empty.
            What I have tried is




            Answered 2021-Dec-23 at 04:48

            Your code does not contain any return statement. Laravel offers a variety of ways to make responses.


            For example, a file response.



            Insert blank page in pdf with OpenPdf
            Asked 2021-Nov-24 at 15:24

            Hi I working on simple function which marge all jpg files and save them to pdf (with openpdf). Each image should be fitted to page, and between them I want to have one blank page. I already have:



            Answered 2021-Nov-24 at 15:24

            For a clean solution you need to use the PdfWriter instance, so first replace



            FlyingSaucer with openpdf doesn't render flex box correctly
            Asked 2021-Nov-08 at 15:34

            I want to render a PDF document using latest FLyingSaucer



            Answered 2021-Nov-08 at 15:34

            Flying-saucer doesn't support Flex, and will likely never support it.

            The CSS supported by flying-saucer is limited to CSS 2.1 and most of CSS paged media.



            Vue / Nuxt button click event
            Asked 2021-Oct-14 at 20:53

            I have a button click event in Vue that calls a method to open a pdf using It works fine in every browser except for safari on MAC. Not really sure what could be causing this? Do I need to pass $event to the method?



            Answered 2021-Oct-12 at 15:49

            If it does not work with Safari specifically, it is more of a browser support issue and not your code specifically.

            You may need to narrow down the issue to check where this one is coming from, tools like Browserstack can help to find out the version from which it may work again.

            Then, it comes down to see if you can find a polyfill to replicate the unsupported snippet of code.



            android.content.ActivityNotFoundException: No Activity found to handle Intent when opening pdf at android 11
            Asked 2021-Oct-03 at 17:05

            I know there are many similar topics like this, but they are either outdated or do not work with pdfs.

            My question is, how do I download a pdf from cloud firestore and save it into the internal storage? My normal method was to use downloadmanager and save the pdf into external storage, but since this does not work anymore because of scoped storage, I need to find a new way.

            Currently, I only know how to create a temporary file and download the pdf from firestore into this temporary file, but not how to save it.

            Old Method (with Downloadmanager) ...


            Answered 2021-Oct-03 at 16:26

            Edit: Answer not relevant after your latest edit to question.

            If you're going to use external storage, here's how to do it:



            Adding certification / docMDP signature using openPDF
            Asked 2021-Sep-10 at 13:49

            I just stumbled over the following code in openPDF while creating a docMDP:



            Answered 2021-Sep-10 at 13:49

            Your question essentially is not about OpenPDF in particular but about certain values in the DocMDP transform dictionary. Thus, my answer will not be focused on OpenPDF.

            In PDF versions 1.5 and 1.6 so-called Object Digests were used in addition to the Byte Range Digests in signatures with transform methods. These digests were calculated recursively over a certain set of PDF objects depending on type and parameters of the transform in question.

            The DigestMethod value is the hash algorithm to use in object digests.

            In Adobe's PDF Reference 1.7 object digests were deprecated which was made really clear in the errata:

            In ISO 32000-1 object digests were completely removed from the text (in some cases leaving text behind which is difficult to understand).

            Thus, the values you are wondering about are deprecated and are not to be used for verification purposes anymore.

            You also find the reason why iText uses dummy values in the same errata:

            Thus, Adobe Acrobat 7 and 8 required some values to be there. Nowadays there is no need for them anymore.

            In this context you may be interested in the PDF issue 117 - the DigestMethod had erroneously become required in ISO 32000-2:2020 and this issue is about deprecating it.



            IIS VirtualDirectories, and accessing their contents from a ASP.NET MVC Project
            Asked 2021-Jun-02 at 15:32

            With Chromium no longer allowing links to local files I am attempting to test a couple of solutions to allow users to open PDF's on a local Network Share without having to download them first (the current work around).

            I tested a pure JavaScript solution and that one worked great.

            However I am trying use a Virtual Directory in IIS that points to a Network share with the files the user(s) can access.

            When testing and trying to navigate to the file I have saved I get a "cannot find path error"

            I created a test application and published it on my local machine.

            Below is the screenshot of the Virtual Directory I created.

            **Below** is the code I use to try and open the file. ...


            Answered 2021-Jun-02 at 15:32

            In ASP.NET Core you can return an VirtualFileResult

            A FileResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.

            Or you can do a Server.MapPath("~/pdf/light.pdf") to get the virtual path.

            Returns the physical file path that corresponds to the specified virtual path.

            In your example code you would use it as such:



            Android 11: Primary directory (invalid) not allowed for content://media/external/file allowed directories are [Download, Documents]
            Asked 2021-May-09 at 19:14

            I am trying to create PDF file from base64 string. Because of Storage Update in Android 11, I have to change my code but I'm getting following error in Android 11 devices:



            Answered 2021-May-05 at 21:53

            I finally found a solution. I can't say it's a best solution but it works perfectly.


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install OpenPDF

            You can download it from GitHub, Maven.
            You can use OpenPDF like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the OpenPDF component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer For Gradle installation, please refer .


            ExamplesJavaDocTutorial (wiki, work in progress)Migration from iText, TIFF support
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone LibrePDF/OpenPDF

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link