AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FaxTool - TIFF/PDF Splitter / Joiner
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Sun Jul 05, 2009 11:21 pm    Post subject: FaxTool - TIFF/PDF Splitter / Joiner Reply with quote

FaxTool 0.20

Hey everybody.
I was looking for some free TIFF splitter and joiner, to use with the faxes I send and receive.
Since I could only find ones that require payment, or ones that only do part of the job (usually with a lot of GUI...), I wrote this little script to do this for free and with ease.


FaxTool lets you split and join TIFF / PDF files by simply dragging them onto the interface.

In fact, this is just an AHK GUI wrapper.
The actual conversion is done through LibTIFF and PDFTK executables which are FileInstalled into this script.

Source code and downloadable compiled version can be found here.

If someone finds it useful, enjoy.
_________________
Sector-Seven - Freeware tools built with AutoHotkey


Last edited by Icarus on Sat Dec 19, 2009 3:08 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Mon Jul 06, 2009 4:38 pm    Post subject: Reply with quote

Version 0.11 - now supporting splitting and merging of PDF files as well.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Nov 05, 2009 3:18 pm    Post subject: Reply with quote

Very nice, something anyone would be able to incorporate into their routine, maybe post scanning a few docs? Thanks

Icarus wrote:
Version 0.11 - now supporting splitting and merging of PDF files as well.
Back to top
gwarble



Joined: 23 May 2009
Posts: 129
Location: north bay, california

PostPosted: Fri Nov 06, 2009 3:31 am    Post subject: Reply with quote

simple, useful, and clean... nice work

i tried it at work today, we get a lot of groups of single page pdf's (blueprints) to quote and with a simple drag n drop this was already very useful for me, so thanks

one quick recommendation i have is to use the existing file name, and append the page number to it (ie ThisDoc.pdf becomes ThisDoc-pg1.pdf, ThisDoc-pg2.pdf, etc) so if more than one file is split in the same directory...

thanks
- joel
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Fri Nov 06, 2009 6:46 am    Post subject: Reply with quote

Thanks joel,

About the filename, I will check if the conversion executables have a command argument to set the output name, or maybe I will do a post conversion rename.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
soggos



Joined: 27 Mar 2008
Posts: 97
Location: France

PostPosted: Sat Dec 12, 2009 11:39 pm    Post subject: Reply with quote

Great Thank's Icarus.,You simplified my life!

(words for french recherche
Petit programme pour Regrouper des .Pdf en un seul. Ou pour couper un Pdf en plusieurs)
_________________
since ahk, all is different!
Back to top
View user's profile Send private message Visit poster's website
ruespe



Joined: 17 Jun 2008
Posts: 145

PostPosted: Fri Dec 18, 2009 3:22 pm    Post subject: Reply with quote

A very helpfull little tool. Thanks for sharing it.
_________________
Greetings
Rog
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Sat Dec 19, 2009 3:11 pm    Post subject: Reply with quote

Released version 0.20

Output filenames will be based on the input filename:
Split of SomeDoc.pdf will produce SomeDoc_1.pdf, SomeDoc2.pdf
Join of SomeDoc_1.pdf and SomeDoc_2.pdf will produce SomeDoc_merged.pdf
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TLM



Joined: 21 Aug 2006
Posts: 1758
Location: The Shell

PostPosted: Sat Jan 02, 2010 10:40 pm    Post subject: Reply with quote

Hey Icarus,

I was wondering what kind of (if any) feedback you get regarding the temporary exe's.
For instance, how do antivirus apps behave?
Have you had any problems with false postives or any blocking of the extracts?
What about UAC on non XP os's?

I'm planning on distributing some applications that also use 3rd party apps as processors and was worried about his exact problem.

Thanks in advance for any info.
_________________

MFS made with AHK
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Sat Jan 02, 2010 10:48 pm    Post subject: Reply with quote

Good questions.

In regards to the separate EXE files, I did not get any negative feedback.

In regards to antivirus false positive - I am getting quite a few of these, with almost all my compiled AHK scripts.
Every now and then, some antivirus (usually AVG...) decides that my AHK scripts are "suspected" or "trojan".
Recompiling with a newer AHK version solves it usually.

In regards to UAC - I am having some difficulties with it, and getting some complaints.
All my scripts are writing to an INI file (for settings), and some vista users complain that the settings are not saved - I am blaming UAC.

Is there anything that can be done with the UAC issues (other than disabling it altogether?).
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TLM



Joined: 21 Aug 2006
Posts: 1758
Location: The Shell

PostPosted: Sat Jan 02, 2010 11:34 pm    Post subject: Reply with quote

1st off I want to thank you for such a speedy reply.
Its nice to have someone to talk to about this (my wife hates it when I try to explain this stuff to her Laughing).

Icarus wrote:
Is there anything that can be done with the UAC issues (other than disabling it altogether?).

With regards to either an INI or text file for prefs, I recently started an app that has to recall last user info.
I opted to use the registry rather than an INI for reason that UAC can block it and or there would be no need for an external file.
There was absolutely no UAC alerts on either Win7 or Vista machines. I did get some intermittent recall falts where Vista would not fully recall reg info, but this only occurred when there were, say, syntax errors in the underlying AHK script.
Perhaps this could be a good workaround for you??

Icarus wrote:
In regards to antivirus false positive - I am getting quite a few of these, with almost all my compiled AHK scripts.
Every now and then, some antivirus (usually AVG...) decides that my AHK scripts are "suspected" or "trojan".
Recompiling with a newer AHK version solves it usually.

I fully understand the issue of false positives due to upx compression.

The things I worry about when using 3rd party apps packaged into a central exe are:

- false interpretation as a virus/malware delivery app.
- licensing (re-distribution).
- future compatibility of the 3rd party applications.
- 3rd party apps triggering the UAC (IMPORTANT!)
- getting a bad reputation from users or the 'programming community' for use of these apps.

I know I could learn more about WinAPI that would probably give me tonnes of practical workarounds.
The problem I'm finding is the learning curve is extremely steep.
It almost makes more sense to me to (finish) learning C++.
Then I could just create my own single exe or dll. For rapid development this sucks though.

I don't mean to whine, but seeing as you have software distributed on the net, your opinion of all this is greatly appreciated Very Happy.
_________________

MFS made with AHK
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Sun Jan 03, 2010 8:41 am    Post subject: Reply with quote

TLM wrote:
1st off I want to thank you for such a speedy reply.
Its nice to have someone to talk to about this (my wife hates it when I try to explain this stuff to her Laughing).


I hear you... Smile

TLM wrote:

I opted to use the registry rather than an INI for reason that UAC can block it and or there would be no need for an external file.


I want mobility and transparency.
When everything is in the scripts folder, including settings, its easy to understand (for users) and easy to take on a USB drive.

TLM wrote:

The things I worry about when using 3rd party apps packaged into a central exe are:

- false interpretation as a virus/malware delivery app.
- licensing (re-distribution).
- future compatibility of the 3rd party applications.
- 3rd party apps triggering the UAC (IMPORTANT!)
- getting a bad reputation from users or the 'programming community' for use of these apps.


False positive will always be an issue probably because of UPX, but it happens to me about two times a year that someone points out that some antivirus software thinks its a virus.

In regards to licensing, yes, need to make sure redistribution is allowed.

TLM wrote:

It almost makes more sense to me to (finish) learning C++.


I agree. The thing is I hate the bloated development environment.
Comparing the super lightweight notepad2 with some version of the visual studio keeps me in the comfort zone of rapid AHK development.

TLM wrote:

I don't mean to whine, but seeing as you have software distributed on the net, your opinion of all this is greatly appreciated Very Happy.


any time Smile
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TLM



Joined: 21 Aug 2006
Posts: 1758
Location: The Shell

PostPosted: Sun Jan 03, 2010 10:34 pm    Post subject: Reply with quote

Icarus wrote:
I want mobility and transparency.
When everything is in the scripts folder, including settings, its easy to understand (for users) and easy to take on a USB drive.
I see.
Portability (and multi file support) is also something that I've been looking into of late.
I'm wondering if writing to the registry will ever add an extra UAC layer. Its such a cumbersome alert.
I'd rather my users have to deal with it at a minimum!
Funny enough I've found some lower level functions that ONLY allow for files to be read from the script dir so it looks like this is going to be the norm for me anyway (for now) Wink.

Icarus wrote:
The thing is I hate the bloated development environment.
Comparing the super lightweight notepad2 with some version of the visual studio keeps me in the comfort zone of rapid AHK development.
I was referring to the motherload WinAPI Laughing. On a serious note, I hear that C++Ox is going to be very 'straight forward' way to develop in the near future. More here: http://en.wikipedia.org/wiki/C%2B%2B0x

Oh before I forget, just as a test, I wanted to see if 3rd party command line executables could be run even if the extensions were changed (to avoid the obvious usage).
Low and behold low level functions and comspec all excepted the exe's as long as the extension was substituted (and not blank).
Now this has me wondering, could the system see this as a potential 'hideaway' for a threat?

Looks like its a job for the beta testers Smile!
_________________

MFS made with AHK
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 827

PostPosted: Sun Jan 03, 2010 10:41 pm    Post subject: Reply with quote

TLM wrote:

I'd rather my users have to deal with it at a minimum!
Funny enough I've found some lower level functions that ONLY allow for files to be read from the script dir so it looks like this is going to be the norm for me anyway (for now) Wink.


To be honest, I never took the time to fully understand UAC - I am guessing there should be a normal way for an application to write to its own folder... no?

In any case, when I get complaints from vista users that do not want to disable UAC, I simply tell them to install the program in a folder different than program files - and it usually eliminates the problem.

A less than ideal solution, to a less than ideal OS... Smile
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TLM



Joined: 21 Aug 2006
Posts: 1758
Location: The Shell

PostPosted: Sun Jan 03, 2010 11:48 pm    Post subject: Reply with quote

Icarus wrote:
...when I get complaints from vista users that do not want to disable UAC, I simply tell them to install the program in a folder different than program files - and it usually eliminates the problem.

A very good idea and something I will take into consideration in the future Smile!
_________________

MFS made with AHK
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group