Re: Web Area display PDF

2018-08-21 Thread Patrick Emanuel via 4D_Tech
Thanks a lot.

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Web Area display PDF

2018-08-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeff,

Thanks for sharing!

> -Oorspronkelijk bericht-
> Van: Jeffrey Kain 
> Verzonden: maandag 20 augustus 2018 19:20
> Aan: 4d_tech@lists.4d.com
> Onderwerp: Re: Web Area display PDF
> 
> I wasn’t able to get it working in Windows. It seems really close though.  But
> the IE rendering engine is so ancient.
> 
> It ought to work fine on 4D Windows 64-bit with a Blink web area, but haven’t
> tried it yet.
> 
> > On Aug 20, 2018, at 1:13 PM, Randy Engle <4d.l...@xc2.us> wrote:
> >
> > Jeff,
> >
> > We are "Windows Only"

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
No problem - I thought that was an error message from the demo until someone 
else reported it... :)

> On Aug 20, 2018, at 12:54 PM, Jeffrey Kain  wrote:
> 
> Mac or Windows?
> 
> I've only gotten this to work on Mac so far, even though the requirements for 
> PDFjs indicate it should work on Microsoft's web engine.
> 
>> On Aug 20, 2018, at 10:55 AM, Randy Engle <4d.l...@xc2.us> wrote:
>> 
>> However, I'm getting a message:
>> 
>> "This item might not exist or is no longer available"

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
Sorry - looks like the link I posted earlier had expired.


Try this one:


https://1drv.ms/u/s!Akpn2ti2N9ePuRF0W74wLMHsvfzb


> On Aug 20, 2018, at 8:30 AM, Jeffrey Kain  wrote:
> 
> I have a component that you can drop into any database - 32-bit or 64-bit - 
> that will render PDFs using Mozilla's open source PDFjs renderer.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
I wasn’t able to get it working in Windows. It seems really close though.  But 
the IE rendering engine is so ancient.  

It ought to work fine on 4D Windows 64-bit with a Blink web area, but haven’t 
tried it yet.  

> On Aug 20, 2018, at 1:13 PM, Randy Engle <4d.l...@xc2.us> wrote:
> 
> Jeff,
> 
> We are "Windows Only"
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
Mac or Windows?

I've only gotten this to work on Mac so far, even though the requirements for 
PDFjs indicate it should work on Microsoft's web engine.

> On Aug 20, 2018, at 10:55 AM, Randy Engle <4d.l...@xc2.us> wrote:
> 
> However, I'm getting a message:
> 
> "This item might not exist or is no longer available"
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Web Area display PDF

2018-08-20 Thread Randy Engle via 4D_Tech
Hi Jeff,

Thanks for posting this 
Sounds great!

>> I have a component that you can drop into any database - 32-bit or 64-bit - 
>> that will render PDFs using Mozilla's open source PDFjs renderer.
>> 
>>   https://1drv.ms/u/s!Akpn2ti2N9ePuQFPa0jiG91YjE2z

However, I'm getting a message:

"This item might not exist or is no longer available"

Randy Engle, Director
XC2 Software LLC – XC2LIVE!




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
I don't mind at all - glad you find it useful.

> On Aug 20, 2018, at 9:47 AM, Luc Devar  wrote:
> 
> Jeffrey,
> 
> If you do not mind, I will certainly use this in conjuncture with QPDF 
> Plugins for one of my projects.
> A neat component I must say and it will add a nice touch to the application.
> 
> Luc Devar
> 
>> On Aug 20, 2018, at 8:30 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> I have a component that you can drop into any database - 32-bit or 64-bit - 
>> that will render PDFs using Mozilla's open source PDFjs renderer.
>> 
>>   https://1drv.ms/u/s!Akpn2ti2N9ePuQFPa0jiG91YjE2z
>> 
>> --
>> Jeffrey Kain
>> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Luc Devar via 4D_Tech
Jeffrey,

If you do not mind, I will certainly use this in conjuncture with QPDF Plugins 
for one of my projects.
A neat component I must say and it will add a nice touch to the application.

Luc Devar

> On Aug 20, 2018, at 8:30 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a component that you can drop into any database - 32-bit or 64-bit - 
> that will render PDFs using Mozilla's open source PDFjs renderer.
> 
>https://1drv.ms/u/s!Akpn2ti2N9ePuQFPa0jiG91YjE2z
> 
> --
> Jeffrey Kain
> 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Jeffrey Kain via 4D_Tech
I have a component that you can drop into any database - 32-bit or 64-bit - 
that will render PDFs using Mozilla's open source PDFjs renderer.

 https://1drv.ms/u/s!Akpn2ti2N9ePuQFPa0jiG91YjE2z


--
Jeffrey Kain
jeffrey.k...@gmail.com




> On Aug 20, 2018, at 8:16 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Do you, or someone else, what is the problem with this? A solution would be 
> appreciated.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-08-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako,

About 3 months ago there was a discussion about viewing PDFs in a webarea on 
High Sierra
Then it was the believe that when using this in 4D 64-bit the problem was solved

However, now we are testing 64-bit for the first time, and when viewing a PDF 
in a webarea on High Sierra it crashes after viewing only two PDFs

Do you, or someone else, what is the problem with this? A solution would be 
appreciated.

Gr,

Piotr



there was a word on the release note.

evidently it was caused by the 32-bit version of PDFKit (Apple framework, part 
of the OS)



http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_16/VIntl/4D_v16_3_ReleaseNotes.pdf



> 2018/05/15 17:10、Piotr Chabot Stadhouders via 4D_Tech 
> <4d_t...@xxx.xxx> のメール:

> We also have problems viewing PDF in a webarea with 4D 32-bit on High Sierra

> Do you know if this is a 32-bit problem?

> So going to 64-bit would solve the problem?

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-05-15 Thread Keisuke Miyako via 4D_Tech
there was a word on the release note.
evidently it was caused by the 32-bit version of PDFKit (Apple framework, part 
of the OS)

http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_16/VIntl/4D_v16_3_ReleaseNotes.pdf

> 2018/05/15 17:10、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> We also have problems viewing PDF in a webarea with 4D 32-bit on High Sierra
> Do you know if this is a 32-bit problem?
> So going to 64-bit would solve the problem?




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Web Area display PDF

2018-05-15 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeffrey,

We also have problems viewing PDF in a webarea with 4D 32-bit on High Sierra
Do you know if this is a 32-bit problem?
So going to 64-bit would solve the problem?

We are using 4d write and want to migrate it to 4D write pro
Now would be the time to do this if the PDF problem doesn't exist with 64-bit.

Thanks,

Piotr

> -Oorspronkelijk bericht-
> Van: Jeffrey Kain <jeffrey.k...@gmail.com>
> Verzonden: zaterdag 21 april 2018 1:09
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Web Area display PDF
> 
> Which OS are you using? PDF display is broken in 4D 32-bit on High Sierra.
> 
> We got pdf.js to work in 4D on Mac but I haven’t gotten around to
> componentizing it yet or making it widely available.   If you’re interested I 
> could
> send you a little database and you could copy the methods in.  It works really
> well.
> 
> Sent from my iPad
> 
> > On Apr 20, 2018, at 7:04 PM, John Baughman via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
> >
> > Myako, thanks for the link. GitHub frankly makes my eyes water. I don’t have
> any idea where to start with pdf.js to resolve my problem. Would your often
> touted pdf plug-in do anything that might help me resolve this problem?

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-24 Thread Axel Kohlepp via 4D_Tech

Hello,

on WebArea with 32-Bit Mac you can use the Schubert-IT plugin: 
pdf-plugin-244.dmg

AxelKohlepp®2015
John Baughman via 4D_Tech schrieb:

The following code is not working...

  $file:="file://"+Convert path system to POSIX($file)
  //file = 
"file:///Volumes/T75-TRANS01/OrthoPro/Resources/PracticeEfficiency.pdf"
  eWebArea_url:=$file

If I paste the same url in Safari, it works.

The following works…
   eWebArea_url:=“http://apple.com/“ works.

2 questions..

1. What am I doing wrong or missing?

2. The Web Area on the form is assigned the variable vEfficiencyWebArea. In the 
debugger this variable is shown as undefined. Other than my PDF issue, the web 
area works. Why is the variable undefined. $urlTest:=WA Get current 
URL(vEfficiencyWebArea) works.

Thanks,

John




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-23 Thread Koen Van Hooreweghe via 4D_Tech
Hi John,

If you keep the pdf way, also check out the excellent PDFViewer plugin from 
pluggers.nl . I have been using this on Mac for a long 
time already. No Windows experience.

HTH
Koen

> Op 21 apr. 2018, om 01:04 heeft John Baughman via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Maybe I need to move away from the Web Area. What I have is a complex form 
> with 6 header sections. To create the document for display in the web area, I 
> am building the report with these headers using Print form in multi level For 
> loops and printing it to a pdf document on disk.
> 
> The only reason I need the document is to display it in the 4D web ares. This 
> was working when I first created it over a year ago. The report itself is 
> rarely used. After moving to v15, or perhaps earlier it stopped working and 
> no-one told me about it. Now it has become an issue
> 
> Is there another way to do this? In other words is there a way to build the 
> report for display direct;y in 4D?




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-20 Thread John Baughman via 4D_Tech
Jeff, yes please. I would greatly appreciate anything you can send me to help.

Thanks,

John

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





> On Apr 20, 2018, at 1:08 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Which OS are you using? PDF display is broken in 4D 32-bit on High Sierra.
> 
> We got pdf.js to work in 4D on Mac but I haven’t gotten around to 
> componentizing it yet or making it widely available.   If you’re interested I 
> could send you a little database and you could copy the methods in.  It works 
> really well.
> 
> Sent from my iPad
> 
>> On Apr 20, 2018, at 7:04 PM, John Baughman via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Myako, thanks for the link. GitHub frankly makes my eyes water. I don’t have 
>> any idea where to start with pdf.js to resolve my problem. Would your often 
>> touted pdf plug-in do anything that might help me resolve this problem?
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-20 Thread Jeffrey Kain via 4D_Tech
Which OS are you using? PDF display is broken in 4D 32-bit on High Sierra.

We got pdf.js to work in 4D on Mac but I haven’t gotten around to 
componentizing it yet or making it widely available.   If you’re interested I 
could send you a little database and you could copy the methods in.  It works 
really well.

Sent from my iPad

> On Apr 20, 2018, at 7:04 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Myako, thanks for the link. GitHub frankly makes my eyes water. I don’t have 
> any idea where to start with pdf.js to resolve my problem. Would your often 
> touted pdf plug-in do anything that might help me resolve this problem?
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-20 Thread John Baughman via 4D_Tech
I have removed the adobe plugin from both libraries. It still does not work.

Maybe I need to move away from the Web Area. What I have is a complex form with 
6 header sections. To create the document for display in the web area, I am 
building the report with these headers using Print form in multi level For 
loops and printing it to a pdf document on disk.

The only reason I need the document is to display it in the 4D web ares. This 
was working when I first created it over a year ago. The report itself is 
rarely used. After moving to v15, or perhaps earlier it stopped working and 
no-one told me about it. Now it has become an issue

 Is there another way to do this? In other words is there a way to build the 
report for display direct;y in 4D?

Myako, thanks for the link. GitHub frankly makes my eyes water. I don’t have 
any idea where to start with pdf.js to resolve my problem. Would your often 
touted pdf plug-in do anything that might help me resolve this problem?

John



> On Apr 20, 2018, at 9:20 AM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> pdf.js is such a powerful library,
> 
> https://mozilla.github.io/pdf.js/
> 
> you might not even need browser plugins anymore to display PDF.
> 
> 2018/04/20 18:20、Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> のメール:
> If I remember correctly there used to be an issue with the Acrobat plugin and 
> Web areas. This might be old info and the problem might be solved, but maybe 
> its worth to give it a try. Remove the AdobePDFViewer plugin in the Interinet 
> Plug-Ins folder of one of the Library folders (system or user).
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-20 Thread Keisuke Miyako via 4D_Tech
pdf.js is such a powerful library,

https://mozilla.github.io/pdf.js/

you might not even need browser plugins anymore to display PDF.

2018/04/20 18:20、Koen Van Hooreweghe via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
If I remember correctly there used to be an issue with the Acrobat plugin and 
Web areas. This might be old info and the problem might be solved, but maybe 
its worth to give it a try. Remove the AdobePDFViewer plugin in the Interinet 
Plug-Ins folder of one of the Library folders (system or user).



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Web Area display PDF

2018-04-20 Thread Koen Van Hooreweghe via 4D_Tech
Hi John,

If I remember correctly there used to be an issue with the Acrobat plugin and 
Web areas. This might be old info and the problem might be solved, but maybe 
its worth to give it a try. Remove the AdobePDFViewer plugin in the Interinet 
Plug-Ins folder of one of the Library folders (system or user).

HTH
Koen

> Op 20 apr. 2018, om 10:27 heeft John Baughman via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> 1. What am I doing wrong or missing?




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Web Area display PDF

2018-04-20 Thread John Baughman via 4D_Tech
The following code is not working...

 $file:="file://"+Convert path system to POSIX($file)
 //file = 
"file:///Volumes/T75-TRANS01/OrthoPro/Resources/PracticeEfficiency.pdf"
 eWebArea_url:=$file

If I paste the same url in Safari, it works.

The following works…
  eWebArea_url:=“http://apple.com/“ works.

2 questions..

1. What am I doing wrong or missing?

2. The Web Area on the form is assigned the variable vEfficiencyWebArea. In the 
debugger this variable is shown as undefined. Other than my PDF issue, the web 
area works. Why is the variable undefined. $urlTest:=WA Get current 
URL(vEfficiencyWebArea) works.

Thanks,

John




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**