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

PDF.Convert.ToXod exception with PDFTron PDFNet on WinService

I try to use the PDF.Convert.ToXod to convert file as .xod, but it occurs exception, the exception as below: Exception: Message: An error occurred while converting the file. Detailed error: The dictionary does not contain required key: VRes …
kuko
  • 11
  • 1
1
vote
1 answer

Adding custom font to FreeText in PDFTron

Hi I'm using PDFTron for a Windows 10 app in C# I'm working on. We have Highlight Path and Text annotation. I embed the text annotation to the PDF using a FreeText object. But I don't find any easy way to embed a custom font in to that particular…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
1
vote
0 answers

pdfnet - re-opening a pdf after returning to a page with NavigationCacheMode.Enabled

I have 2 pages on a windows store app project. First page displays a pdf file in a small part of the page, and i have a button that when i press i open the other page with the pdf loaded in full screen. On page1 i have this on its…
Thought
  • 5,326
  • 7
  • 33
  • 69
1
vote
2 answers

Set PDFViewCtrl scroll to an absolute position in the document

I'm using the Android version of PDFNet 6.5.0. I need to set the vertical scroll of the PDFViewCtrl to an absolute point in the pdf, expressed in PDF Canvas coordinates. For example, say that I want to zoom to the middle of the second page. I could…
GaRRaPeTa
  • 5,459
  • 4
  • 37
  • 61
1
vote
2 answers

Testing out PDFTron / PDFNet - Symbol not found when adding libTools.a

I am having a problem with libTools.a when following the PDFTron BLOG article, step 2: getting-started-on-ios Step 1, works. I have a working PDF viewer, but no controls other then paging and zooming. When I add the libTools.a library (the one that…
Kent
  • 1,374
  • 1
  • 15
  • 29
1
vote
2 answers

What should go in a PDFTron custom script?

PDFTron has the option to provide a custom Javascript file to modify the viewer, but I'm not sure what should go in this file, and I can't find any examples on the web. The website has the following description: Viewer Options - By default, PWS…
JMK
  • 27,273
  • 52
  • 163
  • 280
1
vote
1 answer

PDFNet 5.7 .Net 4.5 Windows 8.1x64 crash

I've encountered a crash when using PDFNet 5.7 in a .Net 4.5 64 bit application running on Windows 8.1 The issue is only occurring in this scenario. .Net 3.5 works fine with Windows 8.1 and .Net 4.5 works fine on Windows 8.1 64-bit when run in 32…
Web Dev
  • 2,677
  • 2
  • 30
  • 41
1
vote
1 answer

pdfnet document text annotation doesn't save if keyboard is active

Just updated PDFNet.framework to 6.2.1 When I edit a doc with text fields in the PDFViewCtrl and then save it with NSData *pdfData = [pdfViewCtrl.GetDoc SaveToBuf:e_linearized]; all field values get saved except the one that has focus. Recently…
azeml
  • 23
  • 3
1
vote
1 answer

How to stop a PDFNet Action from executing?

Basically I'm trying intercept taps on links to a remote file and instead open a local version that I already have stored. I'm able to get to the action of the link after it is tapped, but I can't figure out how to stop it from executing the default…
0
votes
0 answers

PDFtron low level text extractore gly issue

Base problem: The PDFTron lib font.MapToUnicode return wrong case character. Details: This is happens in particular book the snap are attached below, there are few character are getting in lower case but char.char_code is for upper case. as per my…
Damodhar
  • 1,219
  • 8
  • 17
0
votes
1 answer

PDFNet Digital Signature in Node JS using Google KMS

I've seen example of signing https://www.pdftron.com/documentation/nodejs/guides/features/signature/sign-pdf signOnNextSave uses PKCS #12 certificate, but I use Google KMS for asymmetric signing to keep private keys safe. Here is example of signing…
Mirian Okradze
  • 335
  • 1
  • 5
  • 9
0
votes
1 answer

Converting html to PDF using pdftron "ToPDF cannot convert this file format on this platform"

I get the below error we do that. "ToPDF cannot convert this file format on this platform" File is available at the locations. I am simply trying to convert a html file to pdf. bool err = false; try { PDFDoc pdfdoc = new…
theNoob
  • 173
  • 1
  • 9
0
votes
1 answer

Adding a custom view to a page not working in PDFTron.Android for Xamarin

I'm trying to use PDFTron for Xamarin Android. I want to render and paint my custom annotations, without using their annotation system. According to their documentation in…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
0
votes
1 answer

PDFTron PDF to XOD conversion throws exception System.AccessViolationException

The below code that converts a PDF document to XOD using PDFNet nuget package (v6.8.56.6513) throws an exception. However, the previous version (v6.8.2.65223) of the nuget package works without any problem. To produce the issue, please download this…
Mihir
  • 419
  • 3
  • 10
0
votes
1 answer

Activate specific panel in leftPanel in PDFNet Webviewer

I remove 2 of the 3 panels of the leftPanel by using disableElements: setQuickBarPanelContents() { this.instance.disableElements(['notesPanel', 'notesPanelButton', 'outlinesPanel', 'outlinesPanelButton']); } One of the removed panels is the…
Silvio Langereis
  • 487
  • 1
  • 11
  • 20