pdfnet

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 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()

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