Wednesday, 22 April 2020

Re: [gccsdk] PDFUtils adding .etctension

In article <13d7536558.Kevin@talktalk.net>,
Kevin Wells <kev@kevsoft.co.uk> wrote:
> In message <a18fc36358.Kevin@talktalk.net>
> Kevin Wells <kev@kevsoft.co.uk> wrote:

> >In message <58638e94ccchrisg@care4free.net>
> > Chris Gransden <chrisg@care4free.net> wrote:
> >
> >>In article <66b4915d58.Kevin@talktalk.net>,
> >> Kevin Wells <kev@kevsoft.co.uk> wrote:
> >>> Hi
> >>
> >>> I have noticed a possible bug with PDFUtils, that some of the commands
> >>> add the dos extension complete with a dot.
> >>
> >>> PDFtohtml complains with the following:
> >>
> >>> I/O Error: Couldn't open html file 'full path and file name with .html'
> >>
> >>> I/O Error: Couldn't open html file 'full path and file name with
> >>> _ind.html'
> >>
> >>> PDFtocairo the same as the first mesage but with the extension for the
> >>> image format e.g jpeg tiff png
> >>
> >>> PDFtotext, PDFtoops, PDFunite and PDFseperate all work OK
> >>
> >>> PDFUtils is found at:
> >>
> >>> <http://www.riscos.info/packages/DocumentDetails.html>
> >>
> >>> Thanks.
> >>
> >>Can you send an example of the exact command you are using that fails. The
> >>version on riscos.info is quite old. I can update it to 0.65 which is more
> >>recent and fix the problem at the same time.
> >>
> >>Thanks.
> >>
> >
> >>
> >With pdftohtml the following commands cause problems
> >
> >*pdftohtml RAM::RamDisc0.$.TBOAGsamp/PDF RAM::RamDisc0.$.webpage
> >

> [snip]

> I think I found out was is wrong, if you change the above so that the
> outgoing is called webpage instead of the full pathname, it then saves
> OK to the current Set Directory.

> The same with pdftocairo and pdfimages. I do not know about pdfdetach as
> I have not found a pdf file with embedded files on it.
> >

It's to do with the file path conversion in UnixLib. If you use RISC OS
paths then the output file paths don't get converted. Shortening to just
the file name works as there is no pathg to convert.

If you change your example command to,

pdftohtml /RAM::RamDisc0.$/TBOAGsamp.pdf /RAM::RamDisc0.$/webpage

This should also work.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment