Xamarin表单-如何在UWP中以PDF或JPEG格式存储图像 [英] Xamarin Form - How To store an image in PDF or JPEG Format in UWP

查看:135
本文介绍了Xamarin表单-如何在UWP中以PDF或JPEG格式存储图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我正在开发DMS应用程序,用户可以在其中通过扫描仪扫描文档或图像并在服务器上上传.

hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server.

出于扫描目的,请参阅此链接,效果很好..::)

For scanning purpose i am refered this link it works perfectly..:)

现在的问题是ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource,StorageFolder),此方法接受扫描仪支持的图像格式.我的扫描仪仅支持.BMP格式,但我想将PDF或JPEG格式的图像存储在给定的文件夹名称中.

Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name.

其他,请提出任何免费的pdf软件包(dll).哪些可以接受多种图像格式并转换为pdf格式以及uwp中的 PDFSharp 软件包支持?

Else please suggest any free pdf package( dll). which accept multiple image format and convert to single pdf format and PDFSharp package support in uwp ?

先谢谢了,)

  ScannerSettings _ScannerSettings = new ScannerSettings();  

  ImageScanner scanner = await ImageScanner.FromIdAsync(_settings.DeviceId);

  scanner = _ScannerSettings.SetScannerSettings(scanner, _settings); // here i am trying to assigning the scanner settings with pdf or jpeg format.

 var operation =  scanner.ScanFilesToFolderAsync(AssignScannerType, folder); // it gives exception if i am passing the pdf or JPEG format in scanner settings because my scanner not support this format.

推荐答案

https://github.com/ststeiger/PdfSharpCore 是.NET Core 1.6+的端口 它不使用System.Drawing.dll. 它基于PdfSharp 1.32,并具有一些缺失和一些无法正常工作的功能.

https://github.com/ststeiger/PdfSharpCore is a port for .NET Core 1.6+ It doesn't use System.Drawing.dll. It is based on PdfSharp 1.32 and has some missing and some half-working features.

https://github.com/ststeiger/PdfSharpNetStandard 适用于NetStandard 2.1+,并基于PdfSharp 1.5.

https://github.com/ststeiger/PdfSharpNetStandard Is for NetStandard 2.1+, and is based on PdfSharp 1.5.

几乎没有什么东西 ( https://github.com/ststeiger/PdfSharpNetStandard/tree/master/PdfSharp_Removed https://github.com/ststeiger/PdfSharpNetStandard/tree/master/MigraDoc_Rendering_Removed). PdfSharpNetStandard应该像PdfSharp一样工作.

Very few things are missing (https://github.com/ststeiger/PdfSharpNetStandard/tree/master/PdfSharp_Removed https://github.com/ststeiger/PdfSharpNetStandard/tree/master/MigraDoc_Rendering_Removed). PdfSharpNetStandard should work work just like PdfSharp.

PdfSharpCore已将PdfSharp更改为基于.NET-Core高性能实现. 从理论上讲,它应该具有更好/更高的性能.

PdfSharpCore has changed PdfSharp to be based on the .NET-Core High-Performance implementations. It should have a better/higher performance - in theory.

这篇关于Xamarin表单-如何在UWP中以PDF或JPEG格式存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆