{"id":20393371,"url":"https://github.com/foxitsoftware/foxitpdfsdkformaui","last_synced_at":"2025-07-22T14:02:53.916Z","repository":{"id":186660619,"uuid":"608437487","full_name":"foxitsoftware/FoxitPDFSDKForMAUI","owner":"foxitsoftware","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-02T08:53:00.000Z","size":191,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-07T15:52:32.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxitsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T02:26:18.000Z","updated_at":"2024-12-02T08:53:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa150a8f-919d-4668-9886-3855c14176cd","html_url":"https://github.com/foxitsoftware/FoxitPDFSDKForMAUI","commit_stats":null,"previous_names":["foxitsoftware/foxitpdfsdkformaui"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foxitsoftware/FoxitPDFSDKForMAUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2FFoxitPDFSDKForMAUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2FFoxitPDFSDKForMAUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2FFoxitPDFSDKForMAUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2FFoxitPDFSDKForMAUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxitsoftware","download_url":"https://codeload.github.com/foxitsoftware/FoxitPDFSDKForMAUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxitsoftware%2FFoxitPDFSDKForMAUI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266507357,"owners_count":23940055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T03:48:27.409Z","updated_at":"2025-07-22T14:02:53.860Z","avatar_url":"https://github.com/foxitsoftware.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foxit PDF SDK for .NET MAUI\n\n------\n\nFoxit PDF SDK for .NET features a powerful, easy-to-use Core API in C# for rendering, viewing, annotation, signing, protecting and managing forms in PDFs. As a cross-platform product, Foxit.SDK.Dotnet 9.0 began to provide MAUI with interfaces supported by Windows, Android, iOS and macOS. The following sections introduce the contents of Foxit PDF SDK for .NET MAUI.\n\n## Supported platforms\n\n------\n\n| Platform | System Requirements                                  | Memo                                                |\n| -------- | ---------------------------------------------------- | --------------------------------------------------- |\n| Windows  | Windows 11 and Windows 10 version 1809 or higher     | A PDFReader has been tested on Windows 10.0.19045   |\n| MacOS    | macOS 10.15 or higher, using Mac Catalyst.           | A PDFReader has been tested on Mac OS 12.6.1        |\n| iOS      | iOS 11 or higher, using the latest release of XCode. | A PDFReader has been tested on iOS 13.6.            |\n| Android  | Android 5.0 (API 21) or higher.                      | A PDFReader has been tested on Android12.0 (API 31) |\n\n## Getting Started ##\n\n------\n\n* [Install .NET MAUI](https://dot.net/maui) \n* [Install latest XCode for iOS and Mac Catalyst](https://developer.apple.com/xcode)\n* [A sample PDFReader with Foxit PDF SDK for .NET MAUI](https://github.com/foxitsoftware/FoxitPDFSDKForMAUI)\n\n## Using Foxit.SDK.Dotnet For MAUI  ##\n\n------\n\n### Install Foxit.SDK.Dotnet package\n\n- Install Foxit.SDK.Dotnet package in Visual Studio using the NuGet Package Manager\n- Install Foxit.SDK.Dotnet package in Visual Studio for Mac using the NuGet Package Manager\n- Install and manage NuGet packages with the dotnet CLI\n  `dotnet add package Foxit.SDK.Dotnet`\n- Install Foxit.SDK.Dotnet NuGet packages with the NuGet CLI\n  `NuGet\\Install-Package Foxit.SDK.Dotnet`\n\n### A  PDFReader Demo for .NET MAUI\n\n#### A PDFReader demo for MAUI currently implements the following functions:\n\n- PDF documents opening and closing.\n- PDF pages rendering and displaying.\n- PDF pages flipping and jumping.\n- PDF pages zooming in and out.\n\n#### Third-party nuget package needed\n\n- **SkiaSharp**  Used to convert the rendered foxit.common.bitmap into an SkiaSharp.SKImage.\n- **System.Drawing.Common**  Required by the Foxit.SDK.Dotnet.\n\n#### Render a PDF page to Microsoft.Maui.Graphics.IImage\n\nThe following codes show how to convert foxit.common.bitmap to Microsoft.Maui.Graphics.IImage.\n\n```C#\nusing IImage = Microsoft.Maui.Graphics.IImage;\n\n...\nfoxit.common.Bitmap bitmap = new foxit.common.Bitmap(bitmap_width, bitmap_height, foxit.common.Bitmap.DIBFormat.e_DIBArgb);\nfoxit.common.Renderer render = new foxit.common.Renderer(bitmap, false);\nfoxit.common.fxcrt.Matrix2D matrix = pdf_page_.GetDisplayMatrix(cx, cy, width, height, rotate);\nbitmap.FillRect(0xFFFFFFFF, null);\n// Render page\nrender.StartRender(pdf_page_, matrix, null);\nint pitch = bitmap.GetPitch();\nIntPtr ptr = bitmap.GetBuffer();\n\nSkiaSharp.SKImage sk_image = SkiaSharp.SKImage.FromPixels(new SkiaSharp.SKImageInfo(bitmap_width, bitmap_height, SkiaSharp.SKColorType.Bgra8888), ptr, pitch);\nvar data = sk_image.Encode();\nStream stream = data.AsStream();\nMemoryStream mem_stream = new MemoryStream();\nstream.CopyTo(mem_stream);        \nIImage image;\n#if WINDOWS\nW2DImageLoadingService w2d = new W2DImageLoadingService();            \nimage = w2d.FromStream(mem_stream);\n#endif\n#if IOS || ANDROID || MACCATALYST\nimage = PlatformImage.FromStream(mem_stream);\n#endif\n...\n\n```\n\nFor more information about Foxit PDF SDK for .NET MAUI (windows), please refer to Foxit PDF SDK for Windows dotnetcore API reference. For Foxit PDF SDK for .NET MAUI (iOS, Mac Catalyst and Android), there are no API references currently, but the interfaces are similar to Windows, you can refer to the Windows dotnetcore API reference first.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxitsoftware%2Ffoxitpdfsdkformaui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxitsoftware%2Ffoxitpdfsdkformaui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxitsoftware%2Ffoxitpdfsdkformaui/lists"}