Author Topic: PDF Tools  (Read 468 times)

salvatore

  • Junior Member
  • **
  • Posts: 53
  • Karma: +2/-0
  • healt problem, Musician, Pianist
Re: PDF Tools
« Reply #15 on: April 11, 2019, 07:33:49 PM »
yes, maybe on the first of may the projact is finished

hi paolone
Icaros on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

Allanon

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: PDF Tools
« Reply #16 on: April 16, 2019, 02:03:36 PM »
Hello all!  :)

As Salvatore said, I'm working to give a GUI to the xpdf tools suite, I'm testing the first tool (pdfDeatch) on the latest IcAROS desktop (thank you Paolone!) but I'm having troubles to run scripts.

I need to execute a script and redirect the output to another file but I fear that something has changed from my last visit on AROS land :)

My old launcher was:
Code: [Select]
Run Execute 'script_name' >'output_log'
From what I can see, no errors are reported but the 'output_log' file is empty, do you have any hints?

Here is the script generated to retrieve the pdfDetach version:
Quote
"tools/bin/pdfdetach" -v

I'm having difficulties to achieve the result I need from the shell too, for example if I run this command:
Code: [Select]
> <path>/tools/bin/pdfdetach -v >RAM:outputThe output still goes to the console, the file RAM:output is generated but it is empty (0 bytes).

The paths are correct, any help is very appreciated :)

PS.: I've downloaded the tools from AROS Archives

salvatore

  • Junior Member
  • **
  • Posts: 53
  • Karma: +2/-0
  • healt problem, Musician, Pianist
Re: PDF Tools
« Reply #17 on: April 16, 2019, 03:06:30 PM »
Hi Allanon

it seems to me that there was a problem related to the polybios plugin on aros, in fact rnopdf was not compiled for this architecture, it may be that this has to do with it or there is nothing in between

thank you
Icaros on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

salvatore

  • Junior Member
  • **
  • Posts: 53
  • Karma: +2/-0
  • healt problem, Musician, Pianist
Re: PDF Tools
« Reply #18 on: April 16, 2019, 03:10:55 PM »
maybe pdfdetach -v "pdf-file" "ram output"
Icaros on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

paolone

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: PDF Tools
« Reply #19 on: April 16, 2019, 05:13:12 PM »
Allanon, you simply can't redirect the output of a script to a text file.

Allanon

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: PDF Tools
« Reply #20 on: April 16, 2019, 06:30:32 PM »
Hi Paolone,
thank you for the reply, so I should put the redirect into the script just after the command I want to execute?
I'm too used to Windows, sorry :)

Anyway there is another problem, because this command straight into the shell does not work:
Code: [Select]
> <path>/tools/bin/pdfdetach -v >RAM:outputThe above line creates an empty 'output' file and print the informations to the console.

Where <path> is the local path to the command

paolone

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: PDF Tools
« Reply #21 on: April 17, 2019, 09:52:41 AM »
Hi Paolone,
thank you for the reply, so I should put the redirect into the script just after the command I want to execute?
I'm too used to Windows, sorry :)

Anyway there is another problem, because this command straight into the shell does not work:
Code: [Select]
> <path>/tools/bin/pdfdetach -v >RAM:outputThe above line creates an empty 'output' file and print the informations to the console.

Where <path> is the local path to the command
Hi. Unluckily, not all software ported from other architectures correctly handles redirection on AROS/AmigaOS. I've seen similar behavior from other programs, too, when trying to compose the 'GNU Tools manual' in PDF.

salvatore

  • Junior Member
  • **
  • Posts: 53
  • Karma: +2/-0
  • healt problem, Musician, Pianist
Re: PDF Tools
« Reply #22 on: April 17, 2019, 11:34:13 AM »
I talked to allanon about this thing, maybe there is a problem in compiling the xpdftools suite, all the commands work except this, I will inform you about the changes, cmq in the end it will be something that for aros does not exist :)

ps.tex2pdf already exists so we have excluded it
Icaros on Fujistu Esprimo Intel Core 2 Duo 3 Ghz

Allanon

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: PDF Tools
« Reply #23 on: April 18, 2019, 09:17:11 AM »
@Paolone
I thought the redirection, pipe, etc was a feature handled by the system but seems it is not and depends on the source, btw, do you know how to redirect stderr on AROS? Maybe messages are sent on stderr instead of stdout, I'm just trying to guess ;)

wawa

  • Member
  • ***
  • Posts: 106
  • Karma: +0/-0
Re: PDF Tools
« Reply #24 on: April 18, 2019, 12:18:07 PM »
as im repeating, for an educated assistance in developing aros and on aros, join us on slack, please. the main developers may not post or read here. if you give me your email address ill invite you.

Allanon

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: PDF Tools
« Reply #25 on: Today at 07:53:17 PM »
Hi wawa,

sorry but I wasn't aware about slack, I haven't been to this forum for some time :)
I'm sending you a pm with my email address