Mike Gorchak
|
PDF reader for Photon GUI
|
Mike Gorchak
04/24/2012 12:31 PM
post92726
|
PDF reader for Photon GUI
If someone interested, there is a new version (first public) of PDF reader for Photon/QNX6.5 for x86 platform.
Binaries and sources can be downloaded here https://github.com/llmike/PhMuPDF/downloads
If someone interested to build mupdf engine with PDF reader for Photon, I can explain how to do this.
I have been doing this project for myself since 2010. I'm using self-hosted QNX and very often need to read numerous PDF
documents under QNX. I hope you will find this application useful too :)
Thanks.
|
|
|
Mario Charest
|
RE: PDF reader for Photon GUI
|
Mario Charest
04/24/2012 4:59 PM
post92731
|
RE: PDF reader for Photon GUI
Thanks!!!!!
> -----Message d'origine-----
> De : Mike Gorchak [mailto:community-noreply@qnx.com]
> Envoyé : 24 avril 2012 12:31
> À : photon-graphics
> Objet : PDF reader for Photon GUI
>
> If someone interested, there is a new version (first public) of PDF reader for
> Photon/QNX6.5 for x86 platform.
>
> Binaries and sources can be downloaded here
> https://github.com/llmike/PhMuPDF/downloads
>
> If someone interested to build mupdf engine with PDF reader for Photon, I can
> explain how to do this.
>
> I have been doing this project for myself since 2010. I'm using self-hosted QNX
> and very often need to read numerous PDF documents under QNX. I hope you
> will find this application useful too :)
>
> Thanks.
>
>
>
>
> _______________________________________________
>
> Photon microGUI
> http://community.qnx.com/sf/go/post92726
>
|
|
|
Derek Leach
|
RE: PDF reader for Photon GUI
|
Derek Leach
04/25/2012 9:00 AM
post92737
|
RE: PDF reader for Photon GUI
excellent!
-----Original Message-----
From: Mike Gorchak [mailto:community-noreply@qnx.com]
Sent: April 24, 2012 12:31 PM
To: photon-graphics
Subject: PDF reader for Photon GUI
If someone interested, there is a new version (first public) of PDF reader for Photon/QNX6.5 for x86 platform.
Binaries and sources can be downloaded here https://github.com/llmike/PhMuPDF/downloads
If someone interested to build mupdf engine with PDF reader for Photon, I can explain how to do this.
I have been doing this project for myself since 2010. I'm using self-hosted QNX and very often need to read numerous PDF
documents under QNX. I hope you will find this application useful too :)
Thanks.
_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post92726
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
08/07/2012 8:40 AM
post94670
|
Re: PDF reader for Photon GUI
I downloaded the src at the link. However I am not able to build the same. Kindly tell me the steps .
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
08/16/2012 5:44 AM
post94876
|
Re: PDF reader for Photon GUI
Hi,
You have to obtain generic sources for mupdf at http://git.ghostscript.com/?p=mupdf.git;a=summary , please use version 1
.0, not latest sources. Or just download 1.0 snapshot at http://code.google.com/p/mupdf/downloads/detail?name=mupdf-1.0-
source.tar.gz&can=2&q= . Extract my sources to the directory with mupdf sources. Type "make -f Makefile.qnx". Enjoy.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
09/26/2012 8:40 AM
post95833
|
Re: PDF reader for Photon GUI
Hi,
I downloaded the image 1.0 and palced your code(obtained from https://github.com/llmike/PhMuPDF/downloads)
During make I got the following errors-
fitz/image_jpx.c: In function 'fz_load_jpx':
fitz/image_jpx.c:27: error: 'opj_event_mgr_t' undeclared (first use in this function)
fitz/image_jpx.c:27: error: (Each undeclared identifier is reported only once
fitz/image_jpx.c:27: error: for each function it appears in.)
fitz/image_jpx.c:27: error: expected ';' before 'evtmgr'
etc ...
The details are attached in the snapshot.
Kindly help on this. I am running this in the /MuPdf directory on QNX 6 Self Hosted machine.
Regards,
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
09/27/2012 5:03 AM
post95871
|
Re: PDF reader for Photon GUI
Hi Mike,
The PDF Reader is excellent Thanks a lott for this.
I am building the source code for which I had put a query previously. Also I had executed the binary provided by you.
I had a query regarding this .
I executed this on my self hosted machine.
I am trying to execute the same exe on another machine where the difrence is in binaries and libs in the /usr/bin and /
usr/lib and other system folder. The binary does not run and gves a memory fault.I am able to run other photon
applications on my machine.
I suspect some library dependency specific to this binary which is not being met.
Could you tell me the library or other dependencies this executable has.This would be very helpull.
Regards,
|
|
|
Derek Leach
|
RE: PDF reader for Photon GUI
|
Derek Leach
09/27/2012 8:59 AM
post95877
|
RE: PDF reader for Photon GUI
Use:
DL_DEBUG=libs your_app
It will tell if any libs are missing.
-----Original Message-----
From: Kapil Gadgil [mailto:community-noreply@qnx.com]
Sent: September-27-12 5:03 AM
To: photon-graphics
Cc: neha6.b@tcs.com
Subject: Re: PDF reader for Photon GUI
Hi Mike,
The PDF Reader is excellent Thanks a lott for this.
I am building the source code for which I had put a query previously. Also I had executed the binary provided by you.
I had a query regarding this .
I executed this on my self hosted machine.
I am trying to execute the same exe on another machine where the difrence is in binaries and libs in the /usr/bin and /
usr/lib and other system folder. The binary does not run and gves a memory fault.I am able to run other photon
applications on my machine.
I suspect some library dependency specific to this binary which is not being met.
Could you tell me the library or other dependencies this executable has.This would be very helpull.
Regards,
_______________________________________________
Photon microGUI
http://community.qnx.com/sf/go/post95871
To cancel your subscription to this discussion, please e-mail photon-graphics-unsubscribe@community.qnx.com
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
09/27/2012 9:31 AM
post95879
|
Re: PDF reader for Photon GUI
> I am building the source code for which I had put a query previously. Also I
> had executed the binary provided by you.
If you are still experiencing problems with building, I uploaded 1.1 version to github and you can obtain generic 1.1
version at http://code.google.com/p/mupdf/downloads/detail?name=mupdf-1.1-source.tar.gz&can=2&q= and then we will try to compile it at both sides step by step.
> I am trying to execute the same
exe on another machine where the difrence is
> in binaries and libs in the /usr/bin and /usr/lib and other system folder.
If you have noticed, the archive mupdf-1.0-src.tar.gz as well as mupdf-1.1-src.tar.gz contain 3rdparty directory, which
has headers and pre-compiled static libraries of all things, which are required to build phmupdf on QNX:
libz.a
libpng15.a
libopenjpeg.a
libjpeg.a
libjbig2dec.a
libfreetype.a
libbz2.a
Final phmupdf binary only depends on:
1) libph.so.3
2) libm.so.2
3) libc.so.3
4) libfont.so.1
which are all QNX system libraries, available even in runtime only installation.
> The binary does not run and gves a memory fault.I am able to run other photon
> applications on my machine.
> I suspect some library dependency specific to this binary which is not being
> met.
How phmupdf binary was copied to this machine ? If through the network, like FTP, please make sure that binary transfer
mode has been enabled before.
Could you check checksum of both binaries with cksum utility: "cksum phmupdf"?
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
09/28/2012 12:19 AM
post95906
|
Re: PDF reader for Photon GUI
Hi Mike,
Thanks for the details.It was helpfull.
I checked the libraries,executable , everything seems to be ok.
Does this Reader run on QNX 6.4.0 . I was excuting this on 6.5 and 6.4.0 . The issue is with 6.4.0
In case this wont execute on 6.4 then do you have any previous version of this reader that is compatible with 6.4
Regards,
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
09/28/2012 4:20 AM
post95907
|
Re: PDF reader for Photon GUI
> Thanks for the details.It was helpfull.
> I checked the libraries,executable , everything seems to be ok.
>
> Does this Reader run on QNX 6.4.0 . I was excuting this on 6.5 and 6.4.0 . The
> issue is with 6.4.0
> In case this wont execute on 6.4 then do you have any previous version of this
> reader that is compatible with 6.4
It works for me on 6.4.1 and 6.5. But I think it must be re-complied under 6.4.0 to get it working. GUI of the reader
uses alpha blending for icons to show soft shadows under the picture. Looks at the bottom of gear icon, for example. I
do not remember if 6.4 supports alpha blending through the PhImage_t settings or not.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
10/05/2012 4:03 AM
post96049
|
Re: PDF reader for Photon GUI
Hi Mike,
I have built it on QNX 6.4.0 and its great.
There were a few compilation errors ,however i fixed it and the binary is running great.
Currently I am trying to improve its performance on our machine.
Please do share your inputs too.
Regards,
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
10/15/2012 3:59 AM
post96319
|
Re: PDF reader for Photon GUI
> I have built it on QNX 6.4.0 and its great.
> There were a few compilation errors ,however i fixed it and the binary is
> running great.
Great!
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
11/01/2012 7:44 AM
post96744
|
Re: PDF reader for Photon GUI
Hi Mike,
I cannot scroll horizontally in this binary. I read from a few sources that h j k l are shortcut keys to scroll
horizontally in MuPDF Viewer.
Are there any other keys to horizontally scroll the document or a horizontal scroll bar needs to be implemented through
code.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
11/07/2012 3:25 AM
post96927
|
Re: PDF reader for Photon GUI
Hi Mike,
I have implemented horizontal scrollbar using PtScrollContainer and it works fine.
Please tell me where in the code has Home ,End , page Up ,page down ,arrow up and down event been handled.
I went through the code but couldn't find it.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
12/05/2012 2:05 AM
post97792
|
Re: PDF reader for Photon GUI
Hi Mike,
Are there any licence issues with this PDF Reader/code for commercial purpose????
Regds,
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
01/15/2013 1:25 PM
post98586
|
Re: PDF reader for Photon GUI
> Hi Mike,
> Are there any licence issues with this PDF Reader/code for commercial purpose
> ????
> Regds,
Sorry for delay, I have not checked this thread :) My sources have Apache 2 license, while all mupdf sources are using
GPL v3 license. I'm afraid you have to provide the sources together with binary distribution. Please read the GPL v3
license for more details.
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
01/15/2013 1:28 PM
post98587
|
Re: PDF reader for Photon GUI
> Hi Mike,
>
> I have implemented horizontal scrollbar using PtScrollContainer and it works
> fine.
>
> Please tell me where in the code has Home ,End , page Up ,page down ,arrow up
> and down event been handled.
> I went through the code but couldn't find it.
All these keys are handled by vertical scrollbar widget (inside a widget).
|
|
|
Mitchell Schoenbrun
|
Re: PDF reader for Photon GUI
|
Mitchell Schoenbrun
01/09/2013 6:42 PM
post98468
|
Re: PDF reader for Photon GUI
Mike,
I am interested in using the PDF reader in a slightly modified way. I downloaded the source, but could not find
an easy way to "make" it. Is something intentionally missing?
Thanks,
Mitchell
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
01/15/2013 1:29 PM
post98588
|
Re: PDF reader for Photon GUI
> Mike,
>
> I am interested in using the PDF reader in a slightly modified way. I
> downloaded the source, but could not find an easy way to "make" it. Is
> something intentionally missing?
I answered directly to your mail. Thanks.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
01/22/2013 4:55 AM
post98715
|
Re: PDF reader for Photon GUI
Hi Mike,
I am able to use Phmudf with generic source 1.0 dowloaded from http://code.google.com/p/mupdf/downloads/detail?name=
mupdf-1.0-source.tar.gz&can=2&q= and the phmupdf source code provided by you.
However phmupdf consumes a lot of heap and shared memory on scroll and zoom operations.It may be a possible memory leak.
Are there any possible fixes for these in generic muPDF1.1 or there may be some other reasons.
Thanks ...
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
01/22/2013 3:57 PM
post98734
|
Re: PDF reader for Photon GUI
> Are there any possible fixes for these in generic muPDF1.1 or there may be
> some other reasons.
There no memory leaks, as far as I know.
PhMuPDF consumes about 256Mb of RAM for cache, you can change this value in the main() function of phmupdf.c module:
application.settings.cache_size=FZ_STORE_DEFAULT;
FZ_STORE_DEFAULT is equal to 256Mb.
Also you can change PHMUPDF_RENDER_MAX_IMAGES macro in the phmupdf.h module. Default value is 16, so 16 offscreen/memory
contexts will be used to hold 16 pages of document, usually adjacent or last viewed pages. Minimum value is 4. Each
cached page can consume 4-8Mb depending on size of PhMuPDF window or zoom value.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
01/23/2013 7:02 AM
post98742
|
Re: PDF reader for Photon GUI
Hi Mike,
Thanks for the inputs.
I tried the options as cache size reduced to 8 MB and
PHMUPDF_RENDER_MAX_IMAGES 4 and also reduced anti-aliasing to 4.
However I can still see a total memory usage upto ~30 MB on zooming and scrolling operations.
Can the memory usage of the application be further reduced as our system is supplied with low memory. Can it be
restricted to ~20 MB max.
|
|
|
Mike Gorchak(deleted)
|
Re: PDF reader for Photon GUI
|
Mike Gorchak(deleted)
01/29/2013 2:06 PM
post98875
|
Re: PDF reader for Photon GUI
> Can the memory usage of the application be further reduced as our system is
> supplied with low memory. Can it be restricted to ~20 MB max.
Really, I do not know. As far as I remember upcoming mupdf 1.2 has some improvements regarding memory usage, but I would
not have entertained little hope. 30Mb is a very good memory usage for such kind of applications like PDF reader.
|
|
|
Kapil Gadgil(deleted)
|
Re: PDF reader for Photon GUI
|
Kapil Gadgil(deleted)
02/06/2013 7:33 AM
post99106
|
Re: PDF reader for Photon GUI
Hi Mike,
I understand that such Applications require large amount of memory, but there should be some upper limit.
As I see in current phmupdf is that on scrolling operations on high zoom level the memory usage keeps on increasing and
never stops until my application crashes.
Thanks
|
|
|
|