Re: [Pharo-users] Embedded PDF viewer?

2018-02-05 Thread Ben Coman
On 14 November 2017 at 00:18, Sean P. DeNigris wrote: > Ben Coman wrote >> I've wanted PDF rendering inside Pharo for *years* and finally got a >> sniff of a solid possibility - so I'm chasing it down. It might not pan >> out like I imagine, but "Live programming PDF documents" seems like a >> ca

Re: [Pharo-users] Embedded PDF viewer?

2017-11-14 Thread Christian Haider
g > von K K Subbu > Gesendet: Dienstag, 14. November 2017 06:43 > An: Ben Coman > Cc: Any question about pharo is welcome > Betreff: Re: [Pharo-users] Embedded PDF viewer? > > On Monday 13 November 2017 05:29 PM, Ben Coman wrote: > > Yes, I've certainly cons

Re: [Pharo-users] Embedded PDF viewer?

2017-11-13 Thread K K Subbu
On Monday 13 November 2017 05:29 PM, Ben Coman wrote: Yes, I've certainly considered it.  Pragmatically, in my electrical career I deal with a lot of single page A3 PDF scans of schematic drawings, so pre-converting to a bitmap format outside of Pharo wouldn't lose much. PDF deals with vector

Re: [Pharo-users] Embedded PDF viewer?

2017-11-13 Thread Offray Vladimir Luna Cárdenas
On 13/11/17 06:59, Ben Coman wrote: > "Live programming PDF documents" seems like a catchy meme that the > broader community may find intriguing.   > > Really, I'm just curious about what might be possible and can only > discover that by walking the way. Certainly I would be interested in that c

Re: [Pharo-users] Embedded PDF viewer?

2017-11-13 Thread Sean P. DeNigris
Ben Coman wrote > I've wanted PDF rendering inside Pharo for *years* and finally got a > sniff of a solid possibility - so I'm chasing it down. It might not pan > out like I imagine, but "Live programming PDF documents" seems like a > catchy meme that the broader community may find intriguing. Go

Re: [Pharo-users] Embedded PDF viewer?

2017-11-13 Thread Ben Coman
On Mon, Nov 13, 2017 at 6:03 PM, K K Subbu wrote: > On Monday 13 November 2017 09:50 AM, Ben Coman wrote: > >> I've managed to build PDFium into a shared library on Ubuntu 16.04. >> (I'll announce a blog post on this later.) >> Now I'm considering the best bitmap format to bring the rendered page

Re: [Pharo-users] Embedded PDF viewer?

2017-11-13 Thread K K Subbu
On Monday 13 November 2017 09:50 AM, Ben Coman wrote: I've managed to build PDFium into a shared library on Ubuntu 16.04. (I'll announce a blog post on this later.) Now I'm considering the best bitmap format to bring the rendered page back into Pharo. Have you considered importing PDFs as a s

Re: [Pharo-users] Embedded PDF viewer?

2017-11-12 Thread Ben Coman
I've managed to build PDFium into a shared library on Ubuntu 16.04. (I'll announce a blog post on this later.) Now I'm considering the best bitmap format to bring the rendered page back into Pharo. I'm seeking advise on... Q1. Looking at the two significant bitmap creation functions below from th

Re: [Pharo-users] Embedded PDF viewer?

2017-11-07 Thread Ben Coman
t; *From: *teso...@gmail.com > *Sent: *Sunday, November 5, 2017 10:25 AM > *To: *Any question about pharo is welcome > *Subject: *Re: [Pharo-users] Embedded PDF viewer? > > > > Hello Ben, > >UFFI does not allow you to call static libraries. Static libraries are >

Re: [Pharo-users] Embedded PDF viewer?

2017-11-05 Thread Andrew Glynn
Evince is pretty easy to embed. Sent from Mail for Windows 10 From: teso...@gmail.com Sent: Sunday, November 5, 2017 10:25 AM To: Any question about pharo is welcome Subject: Re: [Pharo-users] Embedded PDF viewer? Hello Ben,     UFFI does not allow you to call static libraries. Static libraries

Re: [Pharo-users] Embedded PDF viewer?

2017-11-05 Thread teso...@gmail.com
Hello Ben, UFFI does not allow you to call static libraries. Static libraries are not executable per se, they need to be linked in another program. As I know, the only way of using an static library from Pharo is to: - Build a plugin that wraps it. - Build a DLL exposing all the functions in

Re: [Pharo-users] Embedded PDF viewer?

2017-11-05 Thread Ben Coman
I'm looking into calling PDFium from Pharo via FFI. Currently I'm stalled a bit since it doesn't have a shared-library target. If you consider access to such a library would be useful to the community, please take a few moments to star this issue... https://bugs.chromium.org/p/pdfium/issues/detail

Re: [Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Ben Coman
On Wed, Oct 11, 2017 at 2:03 PM, Ben Coman wrote: > > > On Tue, Oct 10, 2017 at 8:58 PM, Manuel Leuenberger > > wrote: > > > Hi, > > > > > > I want to view a PDF within Pharo. I found that Athens has a PDF > canvas, but I have no idea how to use it. Is there a way to view a PDF > within Pharo, s

Re: [Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Ben Coman
> On Tue, Oct 10, 2017 at 8:58 PM, Manuel Leuenberger > wrote: > > Hi, > > > > I want to view a PDF within Pharo. I found that Athens has a PDF canvas, but I have no idea how to use it. Is there a way to view a PDF within Pharo, so that I can scroll, zoom, click links etc. in the PDF? > > > > Chee

Re: [Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Dimitris Chloupis
Implementation wise this may be possible through a hack, some OS windows can be semi trasparent , this make it possible to overlay one GUI element over the other in this case a PDF with basic scrolling handles. It should be possible with UFFI and some knowledge of OS GUI APIs. Probably much easier

Re: [Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Offray Vladimir Luna Cárdenas
I have been thinking about this. I don't know if you can have a VNC client inside the image that can be used to render a PDF app, but that would be my first approach, to leverage all the features in the current PDF readers. Cheers, Offray On 10/10/17 14:04, Stephane Ducasse wrote: > Hi manuel >

Re: [Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Stephane Ducasse
Hi manuel So far I do not know if we have this is Pharo. I imagine that we would have to build a renderer once we will have the PDF reader from Christian library. Stef On Tue, Oct 10, 2017 at 8:58 PM, Manuel Leuenberger wrote: > Hi, > > I want to view a PDF within Pharo. I found that Athens has

[Pharo-users] Embedded PDF viewer?

2017-10-10 Thread Manuel Leuenberger
Hi, I want to view a PDF within Pharo. I found that Athens has a PDF canvas, but I have no idea how to use it. Is there a way to view a PDF within Pharo, so that I can scroll, zoom, click links etc. in the PDF? Cheers, Manuel