pdftron

CustomRelativeLayout Layout_with and layout_height in PDFTron not working

眉间皱痕 提交于 2020-03-23 07:49:20
问题 Hi I have this CustomRelativeLayout in a PDFViewerCtrl in an Android Xamarin project: <pdftron.PDF.Tools.CustomRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="250dp" android:layout_height="250dp" app:posX="50" app:posY="150" app:pageNum="1" android:background="#33AFAFFF" app:zoomWithParent="true"> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background=

Underlining with pdfnet results in different line thickness

狂风中的少年 提交于 2019-12-12 18:19:17
问题 The code that i use for underlining a selection of text. I begin calling the addUnderline() method, the other methods are helper methods. private pdftron.SDF.Obj CreateUnderlineAppearance(pdftron.PDF.Rect bbox) { ElementBuilder builder = new ElementBuilder(); ElementWriter writer = new ElementWriter(); builder.PathBegin(); builder.MoveTo(bbox.x1, bbox.y1); builder.LineTo(bbox.x2, bbox.y1); Element line = builder.PathEnd(); //Set color attributes for the line... line.SetPathFill(false); line

Saving the color of an annotation in pdftron (pdfnet winforms)

浪尽此生 提交于 2019-12-12 02:34:39
问题 I'm trying to reuse the color of a highlight annotation after a pdf document and it's highlights have been saved. I add an annotation and assign a color this way: if (isCustomColor) { ColorPt color = markingColors[m_editColor]; hightlightAnnot.SetColor(color,3); hightlightAnnot.RefreshAppearance(); } pdftron.PDF.Page page = doc.GetPage(selectionPageNum); TextExtractor txtExtractor = new TextExtractor(); txtExtractor.Begin(page, hightlightAnnot.GetRect()); hightlightAnnot.SetContents

How to get form data from pdftron webviewer

谁都会走 提交于 2019-12-11 01:07:46
问题 I have a PDFTron webviewer which I use to render a pdf form. I need to extract the form xml from the webviewer when user click on external save button. I tried var am = readerControl.docViewer.getAnnotationManager(); var xfdfString = am.exportAnnotations(); $.ajax({ type: 'POST', url: readerControl.serverUrl + '?did=' + readerControl.docId, data: xfdfString, success: function(data) { // Annotations were successfully uploaded to server }, error: function(jqXHR, textStatus, errorThrown) {

How to use Existing .so file in android application [closed]

人走茶凉 提交于 2019-12-07 03:21:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I was searching for library which should convert .doc/.docx to .pdf in android platform. I got PdFTron android sdk,in that they have given libPDFNetC.so file. For Conversion, there is class called Convert, inside that there is a method toPDF(), in that method they have internally called native method FileToPdf()

Error trying to loadLibrary for PDFTron Android

China☆狼群 提交于 2019-12-06 11:53:54
问题 I am getting a strange error when trying to integrate with PDFTron i.e PDFNet Android SDK: UnsatisfiedLinkError: Couldn't load PDFNetC: findLibrary returned null. Expected armv7a, found cpu_info: abi: armeabi-v7a I have already checked this link. Most likely the native library provided by PDFNet Android SDK is not included in my project correctly. Inside the lib folder I the downloaded package, there are native libraries and java library that both need to be included to my project. Created a

How to use Existing .so file in android application [closed]

纵饮孤独 提交于 2019-12-05 08:15:33
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I was searching for library which should convert .doc/.docx to .pdf in android platform. I got PdFTron android sdk,in that they have given libPDFNetC.so file. For Conversion, there is class called Convert, inside that there is a method toPDF(), in that method they have internally called native method FileToPdf().I tried that code but unable to call that native method and was getting errors I want to know that if

Error trying to loadLibrary for PDFTron Android

ぃ、小莉子 提交于 2019-12-04 17:33:57
I am getting a strange error when trying to integrate with PDFTron i.e PDFNet Android SDK: UnsatisfiedLinkError: Couldn't load PDFNetC: findLibrary returned null. Expected armv7a, found cpu_info: abi: armeabi-v7a I have already checked this link . Most likely the native library provided by PDFNet Android SDK is not included in my project correctly. Inside the lib folder I the downloaded package, there are native libraries and java library that both need to be included to my project. Created a folder called jniLibs in main folder and place all .so (with corresponding folder structure) inside