Re: processing pdfs to images

2013-10-24 Thread Michael Hast

Hi Ted:

Recently we used PDF Box (http://pdfbox.apache.org/) to convert PDF's to 
images within the Java application. But command line works as well.


Michael

On 10/24/2013 7:56 AM, Kieran Kelleher wrote:

Hi ted,

Here is a script that shows how using two terminal commands that should be 
available via macports. This should give you enough hints to achieve what you 
need hopefully :)

Regards, kieran



#!/bin/bash

# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick

PDF=$1

echo "Processing $PDF"
DIR=`basename "$1" .pdf`

mkdir "$DIR"

echo '  Splitting PDF file to pages...'
pdftk "$PDF" burst output "$DIR"/%04d.pdf
pdftk "$PDF" dump_data output "$DIR"/metadata.txt

echo '  Converting pages to JPEG files...'
for i in "$DIR"/*.pdf; do
   convert -colorspace RGB -interlace none -density 300x300 -quality 100 "$i" 
"$DIR"/`basename "$i" .pdf`.jpg
done

echo 'All done'




On Oct 24, 2013, at 10:39 AM, Theodore Petrosky  wrote:


I was hoping to find a 'How to' on this. I need to add attachments to my app. 
Just adding the pdfs is pretty straight forward. Since they are only uploaded 
pdfs, I wanted to process them to some form of tiff to have a thumbnail 
available in various sizes and resolutions.

Is there a 'best practice' of this. I started looking at the wonder reference 
and I find all kinds of stuff:

ImageMagickCommandlineMetadataParser
ImageMagickImageProcessor
IERImageProcessor
IERThumbnailer

Does anyone have any example code? i feel as though i am just flailing around!

Ted
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com

This email sent to kelleh...@gmail.com



  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/mhast%40desertsky.com

This email sent to mh...@desertsky.com



--
Tel: (602) 279-4600 ext: 635
Desert Sky Software: www.desertsky.com
Specializing in the Development and Hosting of
e-Business Applications.
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: processing pdfs to images

2013-10-24 Thread Kieran Kelleher
Hi ted,

Here is a script that shows how using two terminal commands that should be 
available via macports. This should give you enough hints to achieve what you 
need hopefully :)

Regards, kieran



#!/bin/bash

# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick

PDF=$1

echo "Processing $PDF"
DIR=`basename "$1" .pdf`

mkdir "$DIR"

echo '  Splitting PDF file to pages...'
pdftk "$PDF" burst output "$DIR"/%04d.pdf
pdftk "$PDF" dump_data output "$DIR"/metadata.txt

echo '  Converting pages to JPEG files...'
for i in "$DIR"/*.pdf; do
  convert -colorspace RGB -interlace none -density 300x300 -quality 100 "$i" 
"$DIR"/`basename "$i" .pdf`.jpg
done

echo 'All done'




On Oct 24, 2013, at 10:39 AM, Theodore Petrosky  wrote:

> I was hoping to find a 'How to' on this. I need to add attachments to my app. 
> Just adding the pdfs is pretty straight forward. Since they are only uploaded 
> pdfs, I wanted to process them to some form of tiff to have a thumbnail 
> available in various sizes and resolutions.
> 
> Is there a 'best practice' of this. I started looking at the wonder reference 
> and I find all kinds of stuff:
> 
> ImageMagickCommandlineMetadataParser
> ImageMagickImageProcessor
> IERImageProcessor
> IERThumbnailer
> 
> Does anyone have any example code? i feel as though i am just flailing around!
> 
> Ted
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
> 
> This email sent to kelleh...@gmail.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EOAdaptorDebugEnabled issue in lastest WOLips43 ??

2013-10-24 Thread Raymond NANEON
Hi John,The configuration which I'm running is the same I use on Eclipse Helios and WOLips37 and it works fine with EOAdaptorDebugEnabled  to false.Envoyé depuis iCloudLe 24 oct. 2013 à 16:16, John Huss  a écrit :Check your Run configuration in eclipse.On Thu, Oct 24, 2013 at 9:10 AM, Raymond NANEON  wrote:Hi List,I updated my WOLips37 to WOLips43 since I'm on Kepler and I have an EOAdaptorDebugEnabled problem. In my parameters I turn it to false but nothing isn't applied. I have some SQL expressions in my console.Is there big changes in the new WOLips which create this issue? Or there is another parameter to check? ThanksEnvoyé depuis iCloud ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com  This email sent to johnth...@gmail.com ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

processing pdfs to images

2013-10-24 Thread Theodore Petrosky
I was hoping to find a 'How to' on this. I need to add attachments to my app. 
Just adding the pdfs is pretty straight forward. Since they are only uploaded 
pdfs, I wanted to process them to some form of tiff to have a thumbnail 
available in various sizes and resolutions.

Is there a 'best practice' of this. I started looking at the wonder reference 
and I find all kinds of stuff:

ImageMagickCommandlineMetadataParser
ImageMagickImageProcessor
IERImageProcessor
IERThumbnailer

Does anyone have any example code? i feel as though i am just flailing around!

Ted
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EOAdaptorDebugEnabled issue in lastest WOLips43 ??

2013-10-24 Thread John Huss
Check your Run configuration in eclipse.


On Thu, Oct 24, 2013 at 9:10 AM, Raymond NANEON  wrote:

> Hi List,
>
> I updated my WOLips37 to WOLips43 since I'm on Kepler and I have an
> EOAdaptorDebugEnabled problem.
> In my parameters I turn it to false but nothing isn't applied. I have some
> SQL expressions in my console.
>
> Is there big changes in the new WOLips which create this issue? Or there
> is another parameter to check?
>
> Thanks
>
> Envoyé depuis iCloud
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@gmail.com
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

EOAdaptorDebugEnabled issue in lastest WOLips43 ??

2013-10-24 Thread Raymond NANEON
Hi List,I updated my WOLips37 to WOLips43 since I'm on Kepler and I have an EOAdaptorDebugEnabled problem.In my parameters I turn it to false but nothing isn't applied. I have some SQL expressions in my console.Is there big changes in the new WOLips which create this issue? Or there is another parameter to check?ThanksEnvoyé depuis iCloud ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: this was never an issue before.

2013-10-24 Thread Þór Sigurðsson

I spent a long time metaphorically beating a bush because English showed up in 
my app, and so did Icelandic (all characters within the scope of the first UTF8 
frame) but Chinese did not.

Adding this to the Application() constructor was the solution:

setDefaultEncoding( "UTF-8" );



On 23.10.2013, at 19:50, Samuel Pelletier  wrote:

> Theodore,
>
> Your fix (turning off the Ellipsis function) indicate that you app does not 
> set it's encodings properly.
>
> The ellipsis should save (they save in my apps).
>
> Your HTML should began with something like this after the doctype declaration:
> 
>   
>
> Your property file these settings:
> er.extensions.ERXApplication.DefaultEncoding=UTF-8
> er.extensions.ERXApplication.DefaultMessageEncoding=UTF-8
>
> I also add this one too in the Monitor to change the default file encoding so 
> plist and .string files works in UTF-8: -file.encoding UTF-8
>
>
> You may want to keep multiple dots but this is another discussion and easily 
> fixed with a String.replaceAll()...
>
> Samuel
>
> Le 2013-10-23 à 13:49, Theodore Petrosky  a écrit :
>
>> I just updated one of my workstations to the newest Safari. In one of my 
>> Wonder Apps, I have an AjaxInPlaceEditor in a table.
>>
>> My Entity has a method:
>>
>>  public String statusWithNull() {
>>
>>  if (this.itemStatus() == null || this.itemStatus().length() == 
>> 0) {
>>  return "Status ..";
>>  }
>>  return this.itemStatus();
>>  }
>>
>> Obviously, if the itemStatus is null I am returning "Status ……"
>>
>> In the new Safari, if the user clicks on the inPlaceEditor, she will get an 
>> text area to edit and the "Status ……" shows up. Her job is to place an 'X' 
>> at the end of the dots. when she does this in the newest Safari she sees 
>> "Status ...…X"
>>
>> It seems that the newest Safari is substituting "…" for the last three 
>> periods. This is what is stored "Status ...<80>X" in the 
>> backend.
>>
>> My work around is to get her to use Firefox, but I would like to find what I 
>> did wrong. this is the top of my HTML:
>>
>> >  "http://www.w3.org/TR/html4/loose.dtd";>
>>
>> 
>>
>> My feeling is that somehow, Safari is translating the three dots into an 
>> Ellipsis and screwing the pooch.
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>>
>> This email sent to sam...@samkar.com
>
>
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/thors%40samgongustofa.is
>
> This email sent to th...@samgongustofa.is




Fyrirvari á tölvupósti / e-mail disclaimer
http://samgongustofa.is/fyrirvari/

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com