--
You received this message because you are subscribed to the Google Groups "PDFTron WebViewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfnet-webviewer+unsubscribe@googlegroups.com.
To post to this group, send email to pdfnet-webviewer@googlegroups.com.
Visit this group at https://groups.google.com/group/pdfnet-webviewer.
For more options, visit https://groups.google.com/d/optout.
Hi Matt,I've changed our conversion code to the following:var xodOutputOptions = new pdftron.PDF.Convert.XODOutputOptions();xodOutputOptions.GenerateURLLinks(true); // plain text URL's that are not link annotations will be converted into link annotations.....pdftron.PDF.Convert.ToXod(targetFullPathPdf, targetFullPathXod, xodOutputOptions);But the links still are not clickable. See attached reconverted file.Is there something wrong with my code?Thanks,David
Hi David,The attached file contains link annotations in the internal XFDF and I'm able to click the links without any issues. Are you able to reproduce the issue in an uncustomized WebViewer? If not would you be able to provide a sample project that reproduces the issue, or a link to your website where we can see the issue occurring?Matt ParizeauSoftware DeveloperPDFTron Systems Inc.
On Monday, January 29, 2018 at 1:28:06 PM UTC-8, David Compton wrote:
Hi Matt,I've changed our conversion code to the following:var xodOutputOptions = new pdftron.PDF.Convert.XODOutputOptions();xodOutputOptions.GenerateURLLinks(true); // plain text URL's that are not link annotations will be converted into link annotations.....pdftron.PDF.Convert.ToXod(targetFullPathPdf, targetFullPathXod, xodOutputOptions);But the links still are not clickable. See attached reconverted file.Is there something wrong with my code?Thanks,David
On 24 January 2018 at 06:34, Matt Parizeau via PDFTron WebViewer <pdfnet-webviewer+APn2wQfzwjN3K1PXhwB2EpteOBUOrXzBt3Iu_yTiKO...@googlegroups.com> wrote:Hi David,Thanks for sending the documents. It looks like the links aren't actual link annotations and Acrobat is detecting them at viewing time. You can do this at XOD conversion time by adding the option --url_links (or equivalent for PDFNet) which will detect and add link annotations for WebViewer. I confirmed that converting your file with that option will add the links in the XOD file.Matt ParizeauSoftware Developer
PDFTron Systems Inc.
On Monday, January 22, 2018 at 2:43:15 PM UTC-8, David Compton wrote:Please refer to attached documents. The original document is a simple one page PDF with 3 hyperlinks in it which work when clicked in Adobe Acrobat Pro (subject to responding positively to the Security Warning that pops up). However the links do not work in the converted document (XOD) file. Can you please advise why this is the case?Kind regards,David Compton--
You received this message because you are subscribed to the Google Groups "PDFTron WebViewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfnet-webviewer+unsubscribe@googlegroups.com.
To post to this group, send email to pdfnet-webviewer@googlegroups.com.
Visit this group at https://groups.google.com/group/pdfnet-webviewer.
For more options, visit https://groups.google.com/d/optout.
var createInnerElement = Annotations.Link.prototype.createInnerElement;
Annotations.Link.prototype.createInnerElement = function() {
var ele = createInnerElement.apply(this, arguments);
if (window.utils.mouseUpEventBug) {
var me = this;
ele.on('touchend', function() {
me.trigger('mouseup');
});
}
return ele;
};Hi Matt,
On 24 January 2018 at 06:34, Matt Parizeau via PDFTron WebViewer <pdfnet-webviewer+APn2wQfzwjN3K1PXhwB2EpteOBUOrXzBt3Iu_yTiKOGMlKG@googlegroups.com> wrote:Hi David,Thanks for sending the documents. It looks like the links aren't actual link annotations and Acrobat is detecting them at viewing time. You can do this at XOD conversion time by adding the option --url_links (or equivalent for PDFNet) which will detect and add link annotations for WebViewer. I confirmed that converting your file with that option will add the links in the XOD file.Matt ParizeauSoftware Developer
PDFTron Systems Inc.
On Monday, January 22, 2018 at 2:43:15 PM UTC-8, David Compton wrote:Please refer to attached documents. The original document is a simple one page PDF with 3 hyperlinks in it which work when clicked in Adobe Acrobat Pro (subject to responding positively to the Security Warning that pops up). However the links do not work in the converted document (XOD) file. Can you please advise why this is the case?Kind regards,David Compton--
You received this message because you are subscribed to the Google Groups "PDFTron WebViewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfnet-webviewer+unsubscribe@googlegroups.com.
To post to this group, send email to pdfnet-webviewer@googlegroups.com.
Visit this group at https://groups.google.com/group/pdfnet-webviewer.
For more options, visit https://groups.google.com/d/optout.
Hi Matt,
I tried that, but unfortunately it did not fix the problem. Any other suggestions?Kind regards,David
Hi David,Can you try this build to see if it resolves the problem. http://www.pdftron.com/ID-zJWLuhTffd3c/WebViewer/WebViewer_3.1.0.63783.zipIf not then we'll be able to look more closely at the problem either tomorrow or early next week.Matt ParizeauSoftware DeveloperPDFTron Systems Inc.
On Thursday, February 1, 2018 at 9:47:44 AM UTC-8, David Compton wrote:
Hi Matt,I tried that, but unfortunately it did not fix the problem. Any other suggestions?Kind regards,David
window.open = function(target) {
window.parent.open(target, '_system');
};Hi Matt,
On 2 February 2018 at 12:04, Matt Parizeau via PDFTron WebViewer <pdfnet-webviewer+APn2wQfzwjN3K1PXhwB2EpteOBUOrXzBt3Iu_yTiKOGMlKG@googlegroups.com> wrote:
Hi David,Can you try this build to see if it resolves the problem. http://www.pdftron.com/ID-zJWLuhTffd3c/WebViewer/WebViewer_3.1.0.63783.zipIf not then we'll be able to look more closely at the problem either tomorrow or early next week.Matt ParizeauSoftware DeveloperPDFTron Systems Inc.
On Thursday, February 1, 2018 at 9:47:44 AM UTC-8, David Compton wrote:
Hi Matt,I tried that, but unfortunately it did not fix the problem. Any other suggestions?Kind regards,David
PDFTron Systems Inc.
ionic cordova plugin add cordova-plugin-inappbrowser
npm install --save @ionic-native/in-app-browserwindow.open = function(target) {
window.parent.open(target, '_system');
};Hi Matt,
I installed the plugin and added the specified code to my readerControlConfigCustom file. But it does not seem to make any difference. Did I add the code in the wrong place?Kind regards,David
PDFTron Systems Inc.
Hi David,I based it on your sample project here https://github.com/daveywc/pdftron-ionic, and here are the steps I took.1. Ran the two commands listed here to install the plugin: https://ionicframework.com/docs/native/in-app-browser/
ionic cordova plugin add cordova-plugin-inappbrowser
npm install --save @ionic-native/in-app-browser2. Changed home.ts to point to the XOD file with links that you shared.3. Changed home.ts to add a config option.4. Added a config file with the code:window.open = function(target) {
window.parent.open(target, '_system');
};Then I ran the project on the iPhone X 11.2 simulator and I was able to click the links and have them open in the browser.You might want to confirm that the config file is actually being loaded successfully by adding an alert inside of it and making sure you see the alert popup when running the project. Note that the config path should be relative to the index.html file, not the home.ts file.Matt ParizeauSoftware DeveloperPDFTron Systems Inc.
On Wednesday, February 14, 2018 at 9:49:33 AM UTC-8, David Compton wrote:
Hi Matt,I installed the plugin and added the specified code to my readerControlConfigCustom file. But it does not seem to make any difference. Did I add the code in the wrong place?Kind regards,David
Hi Matt,
I'm feeling really stupid on this.... but can you show me what the code for step 3 " Changed home.ts to add a config option" looks like?Thanks,David
On 16 February 2018 at 06:30, Matt Parizeau via PDFTron WebViewer <pdfnet-webviewer+APn2wQfzwjN3K1PXhwB2EpteOBUOrXzBt3Iu_yTiKOGMlKG@googlegroups.com> wrote:
Hi David,I based it on your sample project here https://github.com/daveywc/pdftron-ionic, and here are the steps I took.1. Ran the two commands listed here to install the plugin: https://ionicframework.com/docs/native/in-app-browser/
ionic cordova plugin add cordova-plugin-inappbrowser
npm install --save @ionic-native/in-app-browser2. Changed home.ts to point to the XOD file with links that you shared.3. Changed home.ts to add a config option.4. Added a config file with the code:window.open = function(target) {
window.parent.open(target, '_system');
};Then I ran the project on the iPhone X 11.2 simulator and I was able to click the links and have them open in the browser.You might want to confirm that the config file is actually being loaded successfully by adding an alert inside of it and making sure you see the alert popup when running the project. Note that the config path should be relative to the index.html file, not the home.ts file.Matt ParizeauSoftware DeveloperPDFTron Systems Inc.
On Wednesday, February 14, 2018 at 9:49:33 AM UTC-8, David Compton wrote:
Hi Matt,I installed the plugin and added the specified code to my readerControlConfigCustom file. But it does not seem to make any difference. Did I add the code in the wrong place?Kind regards,David
Hi David,For step 3 all you need to do is add config: 'path/to/config/file.js' and then create a file at that path with the specified code. You can read more about config files here https://www.pdftron.com/webviewer/demo/tutorials/getting-started-config-files.htmlMatt ParizeauSoftware Developer
PDFTron Systems Inc.
On Monday, February 19, 2018 at 9:53:13 AM UTC-8, David Compton wrote:
Hi Matt,I'm feeling really stupid on this.... but can you show me what the code for step 3 " Changed home.ts to add a config option" looks like?Thanks,David
Hi Matt,
Just wanted to let you know that I finally got this to work for me. It took a while though.... The problem was nothing to do with my config file setup - that was all OK.I discovered that the links worked in the sample app that I had provided you (once I installed the in-app-browser plugins), but still did not work in my production app. Hours of eliminating all differences between the two projects later, I finally worked out that the reason was that I was still using the custom build that you had provided early on in this thread (WebViewer_3.1.0.63783). When I reverted to the standard version 3.1 all worked again. How I wish that I'd worked that out a couple of weeks ago. Anyway all is now working. I'm hoping that whatever changes were in that custom build do not make it into the next production release.Anyway thanks for your help - I'm just happy to finally have the issue resolved.Kind regards,David
On 20 February 2018 at 11:21, Matt Parizeau via PDFTron WebViewer <pdfnet-webviewer+APn2wQfzwjN3K1PXhwB2EpteOBUOrXzBt3Iu_yTiKOGMlKG@googlegroups.com> wrote:
Hi David,For step 3 all you need to do is add config: 'path/to/config/file.js' and then create a file at that path with the specified code. You can read more about config files here https://www.pdftron.com/webviewer/demo/tutorials/getting-started-config-files.htmlMatt ParizeauSoftware Developer
PDFTron Systems Inc.
On Monday, February 19, 2018 at 9:53:13 AM UTC-8, David Compton wrote:
Hi Matt,I'm feeling really stupid on this.... but can you show me what the code for step 3 " Changed home.ts to add a config option" looks like?Thanks,David