Questions tagged [pdfnet]

Use this tag for questions regarding PDFNet SDK on mobile, desktop/server or PDFNetJS. Unless a tag for a language, or platform, is also included, a general PDFNet answer is expected.

PDFNet SDK is a cross-platform PDF toolkit.

81 questions
1
vote
1 answer

Get all SDF/COS objects from PDF

I am trying to get a list of all SDF/COS objects within a PDF document, using PDFNet 7.0.4 and netcoreapp3.1. Using a different PDF parser, I know that this document has 570 total COS objects within it, including 3 images. Initially I used PDFDoc to…
superstator
  • 3,005
  • 1
  • 33
  • 43
1
vote
1 answer

Zooming PDFViewWPF by touch gestures

We've got an application which was running with PDFNet.dll in version 6.3.2. Zooming by touch gestures was working properly. Since we've updated PDFNet to Version 6.8.2 (and the newest PDFNetTools) it doesn't work anymore. Touch handling in general…
tg24
  • 161
  • 3
  • 22
1
vote
1 answer

Scrolling in Sticky Notes

I got the following sticky note example: If the sticky note has more than 9 rows, the additional rows are not visible. I'm able to navigate through the note with my arrow keys. If I'm going to scroll with the mouse wheel, it seems to ignore the…
tg24
  • 161
  • 3
  • 22
1
vote
1 answer

Retrieving pdf page bitmap with its original size and dpi

I'm wondering why i'm getting a bitmap from a page that has a different size/dpi than the bitmap i used to create the page. example: bmp is a Bitmap with a Width of 1275 and Height 1651 at a dpi of 150. I use this bitmap to create the page. When i…
DennisVA
  • 2,068
  • 1
  • 25
  • 35
1
vote
1 answer

PDFTron: converting pixels to fontsize

I have some text in a pdf that has been OCR'ed. The OCR returns the bounding boxes of the words to me. I'm able to draw the bounding boxes (wordRect) on the pdf and everything seems correct. But when i tell my fontsize to be the height of these…
DennisVA
  • 2,068
  • 1
  • 25
  • 35
1
vote
1 answer

PDFNet pdftron library throws "Arithmetic operation resulted in an overflow" when use create() in .Net

Please provide the solution as soon as possible, why pdftron.PDF.Image.Create(doc,bitmap,JBIG2_hint) gives exception "Arithmetic operation resulted in an overflow", but on the other hand if I try another overload function of Create(), then it works…
1
vote
1 answer

Using a modified PDFTron Tools Framework

I'm working on a iOS Framework (using CocoaPods) that, as of today, uses PDFNet.framework as its only dependency. Everything works as expected when I use the resulting framework in another "top level" project. Now I'm trying to make this same…
1
vote
1 answer

C# turn transparency into white for a .pdf document

I have a .pdf document that has transparency in its pages. I need to remove that transparency and make it white, how can I do that with C#? I can use pdftron, itextsharp or any other free library.
enemy
  • 101
  • 1
  • 1
  • 3
1
vote
1 answer

Convert Image file to PDF document letter size using PDFTron

I am trying to convert an image file to a PDF document with a defined page size (letter size). Currenlty I am able to convert an image to a PDF document without defining any page dimensions (default dimensions of the PDF is the image size). I would…
Illusioner
  • 31
  • 3
1
vote
2 answers

Pdfnet Print sample not working

While testing in the samples from PDFPrintTest, we noticed that Example 2 coupled with Event Handler's example 1 is not behaving properly. Example 1 of PrintPage Event Handler: void PrintPage(object sender, PrintPageEventArgs ev) { …
Silvio Langereis
  • 487
  • 1
  • 11
  • 20
1
vote
1 answer

Is it possible to have a 2-page view in PDFTron?

I looked over the PDFNet API references and sample code, but can't find any mention for having a 2-page view. Is it possible to have 2 pages on 1 pdfviewctrl in PDFNet ? If I overlooked it, I apoligize in advance !
Silvio Langereis
  • 487
  • 1
  • 11
  • 20
1
vote
1 answer

How to use PDFNet pdfviwer with annotations in Xamarin Cross platform (xamarin forms in PCL)

I want to implement PDF Viewer with annotations in Xamarin Cross Platform apps (UWP, Android & ios). As per suggestion on (https://components.xamarin.com/gettingstarted/pdfnet-mobile-sdk?version=1.0.0). How can we implement PDFnet PDFViewer in…
Vikas Bare
  • 11
  • 1
1
vote
2 answers

pdfnet: No refresh after single page rotation

I managed to rotate individual pages in a document, but I can't get any means of refreshing the page to work. I have to re-navigate to the page to see the effect of the rotation. Not the ideal scenario for our users. MyPDFView code: public void…
Silvio Langereis
  • 487
  • 1
  • 11
  • 20
1
vote
1 answer

Application crashes on element reader (pdftron)

I have an issue with pdftron, where opening a certain file, will cause our application to crash with following error: An unhandled exception of type 'pdftron.Common.PDFNetException' occurred in PDFNet.dll Additional information: Exception: …
Silvio Langereis
  • 487
  • 1
  • 11
  • 20
1
vote
1 answer

PDFNet: How to disable sticky annotations

When the mouse hovers over an annotation that is not flattened, its icon changes from an arrow to a hand icon. Since i use a custom cursor for the mouse, i don't want this to happen. I believe this functionality is provided to let the user know…
DennisVA
  • 2,068
  • 1
  • 25
  • 35