PDFiumSharp | .NET wrapper around Google 's PDFium library | Document Editor library

 by   ArgusMagnus C# Version: v0.1.1-beta License: Non-SPDX

kandi X-RAY | PDFiumSharp Summary

kandi X-RAY | PDFiumSharp Summary

PDFiumSharp is a C# library typically used in Editor, Document Editor, Xamarin applications. PDFiumSharp has no bugs, it has no vulnerabilities and it has low support. However PDFiumSharp has a Non-SPDX License. You can download it from GitHub.

The PDFiumSharp library is a C#/.NET wrapper around the PDFium library. It enables .NET developers to create, open, manipulate, render and save PDF documents.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PDFiumSharp has a low active ecosystem.
              It has 143 star(s) with 56 fork(s). There are 8 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 20 open issues and 6 have been closed. On average issues are closed in 142 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of PDFiumSharp is v0.1.1-beta

            kandi-Quality Quality

              PDFiumSharp has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              PDFiumSharp 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

              PDFiumSharp releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              PDFiumSharp saves you 135 person hours of effort in developing the same functionality from scratch.
              It has 338 lines of code, 0 functions and 59 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PDFiumSharp
            Get all kandi verified functions for this library.

            PDFiumSharp Key Features

            No Key Features are available at this moment for PDFiumSharp.

            PDFiumSharp Examples and Code Snippets

            No Code Snippets are available at this moment for PDFiumSharp.

            Community Discussions

            QUESTION

            How can fonts be loaded into a PDF document with PDFiumSharp?
            Asked 2019-Jul-16 at 07:46

            I'm trying to add a custom font (otf file or for testing purpose ttf) to my PDF document to render text page objects with. The rendered text is always the same gibberish like ÿÿÿÿÿÿe ('e' might be the last char of my string or a random character). Creating, rendering and adding other objects like paths or images are working fine. So I'm guessing the font isn't loaded correctly.

            I'm using an updated version of the C# wrapper PDFiumSharp ( https://github.com/ArgusMagnus/PDFiumSharp ), which provides the following methods: FPDFText_LoadFont(document, FontType, IsCid, byte[] fontData) and FPDFPageObj_CreateTextObj(document, FPDF_Font font, size). The wiki of PDFiumSharp states that through LoadFont the font is loaded into the document. The code snippet following runs through without problems (so fontpath is correct, can be loaded and the text object can be created).

            I exchanged the pdfium.dll with the newest one from https://github.com/bblanchon/pdfium-binaries, which includes the entry point FPDF_LoadFont too.

            There is also another entry point FPDF_InitLibraryWithConfig, which gets a FPDF_LIBRARY_CONFIG as argument. This config holds a readonly field IntPtr _userFontPaths, which might me usable somehow, but I haven't find a way to set this.

            ...

            ANSWER

            Answered 2019-Jul-15 at 10:49

            Ok, the problem was again in the wrapper: The function bool FPDFText_SetText(FPDF_PAGEOBJECT text_object, [MarshalAs(UnmanagedType.LPStr)] string text) needed a LPStr. Changing it to LPWStr did the trick.

            Source https://stackoverflow.com/questions/57008810

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

            Vulnerabilities

            No vulnerabilities reported

            Install PDFiumSharp

            The easiest way to get going is to reference the NuGet packages. There are five NuGet packages available:  .
            PDFium.Windows contains the native PDFium binaries for windows. Either install this package or provide the binaries yourself (put pdfium_x64.dll, pdfium_x86.dll in the application directory).
            PDFiumSharp contains the core package. With this you can create, open, manipulate, render and save PDF documents. PdfPages can be rendered to PDFiumBitmaps (which are simply memory buffers). This package depends on the presence of the native PDFium binaries.
            PDFiumSharp.GdiPlus extends the PdfPage class with extension methods to render to Bitmaps.
            PDFiumSharp.Wpf extends the PdfPage class with extension methods to render to WriteableBitmaps.
            PDFiumSharp.Xwt extends the PdfPage class with extension methods to render to BitmapImages.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ArgusMagnus/PDFiumSharp.git

          • CLI

            gh repo clone ArgusMagnus/PDFiumSharp

          • sshUrl

            git@github.com:ArgusMagnus/PDFiumSharp.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link