我有WritableBitmap图像,我已在图像控制src中设置.当用户在选定的文本区域移动时,我正在创建矩形.我还使用PDFtron SDK从PDF文档中获取选定的文本.我们WritableBitmap从PDF 获取图像.我们必须在线选择文字.
我正在使用此代码绘制屏幕:
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle((int)Math.Min(_downX, x),
(int)Math.Min(_downY, y),
(int)Math.Abs(_downX - x),
(int)Math.Abs(_downY - y));
System.Drawing.Bitmap myBitmap = new System.Drawing.Bitmap(@"D:\PDF\ScreenDraw\WpfApplication1\WpfApplication1\Image\Capture.PNG");
using (System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(myBitmap))
{
System.Drawing.Color customColor = System.Drawing.Color.FromArgb(50, System.Drawing.Color.Red);
System.Drawing.SolidBrush shadowBrush = new System.Drawing.SolidBrush(customColor);
g.FillRectangles(shadowBrush, new System.Drawing.Rectangle[] { rectangle });
}
//myBitmap.Save(@"D:\PDF\abc.png");
//bitmapSource = new BitmapImage(new Uri(@"D:\PDF\abc.png", UriKind.Absolute));
using (var memory = new System.IO.MemoryStream())
{
myBitmap.Save(memory, System.Drawing.Imaging.ImageFormat.Png);
memory.Position = 0;
var bitmapImage = new BitmapImage();
bitmapImage.BeginInit();
bitmapImage.StreamSource = memory; …Run Code Online (Sandbox Code Playgroud) 我正在搜索应该在android平台上将.doc/.docx转换为.pdf的库.
我得到了PdFTron android sdk,因为他们已经给了libPDFNetC.so文件.
对于Conversion,有一个名为Convert的类,里面有一个方法toPDF(),在那个方法中,他们在内部调用了本机方法FileToPdf().我试过那个代码但是无法调用那个本机方法而且收到错误
我想知道,如果你现有.so文件,如果你想调用.so文件中存在的本机方法,那么是否需要使用JNI?我对JNI不太了解.任何帮助.
在 ASP.NET 或 HTML 页面中使用 PDFTron Web 查看器来显示 PDF 或 XOD 文件,我收到错误消息:“无法加载资源文件。这可能是由于工作路径不正确或服务器上不受支持的 .res mime 类型。 ”
<script>
$(function () {
var viewerElement = document.getElementById('viewer');
var myWebViewer = new PDFTron.WebViewer({
path: 'lib',
type: 'html5',
documentType: "pdf",
initialDoc: "lib/GettingStarted.pdf",
config: '',
streaming: false,
enableAnnotations: false,
enableOfflineMode: false,
enableReadOnlyMode: true
}, viewerElement);
});
</script>
Run Code Online (Sandbox Code Playgroud)
浏览器的控制台窗口显示如下:
HTML1300: Navigation occurred.
View
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
View
SCRIPT7016: Use of XMLHttpRequest with the synchronous …Run Code Online (Sandbox Code Playgroud) 我目前正在开发一个使用PDFTronwebviewer 的应用程序.是否有将使用pdftronwebviewer 编辑的pdf保存到服务器?
有一个功能pdftron可以将注释保存到服务器,但我需要将整个pdf与编辑一起保存到服务器.