PDF Viewer DLL?
Moderator: Rathinagiri
Re: PDF Viewer DLL?
The following example shows how to:
- resize/maximize Sumatra window,
- display bookmarks panel on start.
- resize/maximize Sumatra window,
- display bookmarks panel on start.
- Attachments
-
- Sumatra.zip
- (6.01 MiB) Downloaded 337 times
Re: PDF Viewer DLL?
Please let me note, that using UPX, if there are no really good reasons to do so, is not a good idea.
And simply reducing the size of executable isn't alone a good reason, since the drawbacks
are significantly more than advantages.-
The same applies for embedding big binaries (like sumatraPDF.exe) into executable.
Using an archiver, like for example the excellent 7-zip, is a much better solution.
best regards,
---
Pete
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: PDF Viewer DLL?
In my case, the app, updates itself automatically via the network, and since some clients has slow/unstable connections, minimizing the executable size, saves me a lot of problems, but I agree with you, that if there is no need, it is preferable to avoid EXE compression.PeteWG wrote: ↑Sun Feb 19, 2017 4:20 pmPlease let me note, that using UPX, if there are no really good reasons to do so, is not a good idea.
And simply reducing the size of executable isn't alone a good reason, since the drawbacks
are significantly more than advantages.-
The same applies for embedding big binaries (like sumatraPDF.exe) into executable.
Using an archiver, like for example the excellent 7-zip, is a much better solution.
best regards,
---
Pete
Maybe I should change my updater to work with .7z compressed updates and omit UPX use.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: PDF Viewer DLL?
Hi Friends:
This is my first implementation on Roberto Lopez idea.-
Hopping this helps you and give new ideas.-
With regards.
Eduardo
This is my first implementation on Roberto Lopez idea.-
Hopping this helps you and give new ideas.-
With regards.
Eduardo
- Attachments
-
- PDF_VIEWER_EXES.zip
- (6.84 MiB) Downloaded 286 times
-
- PDF_VIEWER_CODE.zip
- (3.6 MiB) Downloaded 331 times
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: PDF Viewer DLL?
I'm in fault, because i forget to mention that my samples was inspired on KDJ sample posted on this topic.-
Forgive me KDJ and thanks.-
Eduardo
Forgive me KDJ and thanks.-
Eduardo
Re: PDF Viewer DLL?
Print PDF silently on default printer
EXECUTE FILE '"' + cExeFile + '"' PARAMETERS '-print-to-default -exit-on-print' + ' "' + cPdfFile
Print PDF on selected printer
EXECUTE FILE '"' + cExeFile + '"' PARAMETERS '-print-dialog -exit-on-print' + ' "' + cPdfFile
EXECUTE FILE '"' + cExeFile + '"' PARAMETERS '-print-to-default -exit-on-print' + ' "' + cPdfFile
Print PDF on selected printer
EXECUTE FILE '"' + cExeFile + '"' PARAMETERS '-print-dialog -exit-on-print' + ' "' + cPdfFile
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: PDF Viewer DLL?
Hi BDP:
Thanks for your contribution.-
But i get an error message before printing, as i show:
When i accept, print begins.-
I don't understand why.- Please check if is on my case or on everybody.-
Thanks again.-
Eduardo
Thanks for your contribution.-
But i get an error message before printing, as i show:
When i accept, print begins.-
I don't understand why.- Please check if is on my case or on everybody.-
Thanks again.-
Eduardo
Re: PDF Viewer DLL?
I have no error, code attachedEduardoLuis wrote: ↑Tue Feb 21, 2017 1:05 pm Hi BDP:
Thanks for your contribution.-
But i get an error message before printing, as i show:
When i accept, print begins.-
I don't understand why.- Please check if is on my case or on everybody.-
Thanks again.-
Eduardo
error_pdfViewer.JPG
- Attachments
-
- SumatraPrint.rar
- (41.34 KiB) Downloaded 287 times
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG