Καλησπέρα Αντώνη,

Καταρχάς οι κοινότητες γι αυτό υπάρχουν ώστε να βοηθάει ο ένας τον άλλον.

Παρακάτω ένα script για να κάνεις convert όλα τα αρχεία σε pdf στο relative
folder help_pdf από όπου θα το εκτελέσεις το script (προϋπόθεση να έχεις
το wkhtmltopdf installed).
Όσο αφορά τα links δες τις απαντήσεις του Κώστα και Σάββα.


#!/bin/sh

if [ "$1" != "" ]; then
    echo "Starting converting html files located at the folder $1 results
will be placed at help_pdf relative folder\n"
else
    echo "Please specify absolute path for converting html files into pdf
as a first argument\n"
    exit 0
fi


if [ -d "./help_pdf" ]
then
    echo "Directory help_pdf exists. Removing and recreating\n"
    rm -rf ./help_pdf
    mkdir ./help_pdf
else
echo "Directory help_pdf not exists. trying to create it\n"
    mkdir ./help_pdf
fi

# find all html files
files=$(ls -1 $1 | sed -e 's/\.html$//')

# convert files
for file in $files
do
echo "converting ${file}.html to ${file}.pdf"
wkhtmltopdf --dpi 1000 $1${file}.html ./help_pdf/${file}.pdf
done

exit 0



Παράδειγμα : sh ./convert2pdf.sh /usr/share/gimp/2.0/help/el/

On Sat, Jan 18, 2020 at 6:39 PM Kostas Oikonomou <kikono...@yahoo.gr> wrote:

> Απ' ότι κατάλαβα ρωτάς αν μπορούν πολλά pfd αρχεία να ενωθούν σε ένα. Αν
> είναι αυτή η ερώτηση, η απάντηση είναι ότι μπορούν, χρησιμοποιώντας το pdf
> shuffler (σε περιβάλλον Ubuntu).
>
> Φιλικά
>
> Κώστας Οικονόμου
>
> Στις Παρασκευή, 17 Ιανουαρίου 2020, 1:44:37 μ.μ. EET, ο χρήστης Αντώνης
> Αντωνούλας <aanto...@otenet.gr> έγραψε:
>
>
> Ναι, αλλά μπορεί να παραχθεί ένα ενιαίο pdf ώστε να μπορεί κάποιος να το
> εκτυπώσει;
>
> Στις 16/1/20 7:15 μ.μ., ο Spiros Andreou έγραψε:
> > Καλησπέρα Αντώνη
> >
> > Καθώς τα αρχεία είναι html θα μπορούσες να τα κάνεις convert μέσο του
> > tool wkhtmltopdf
> >
> > Thnx
> >
> > On Wed, Jan 15, 2020 at 6:15 PM Αντώνης Αντωνούλας <aanto...@otenet.gr
> > <mailto:aanto...@otenet.gr>> wrote:
> >
> >    Γνωρίζουμε όλοι ότι το ελληνικό εγχειρίδιο του Gimp όταν έχουμε
> >    εγκαταστήσει το πρόγραμμα βρίσκεται στο φάκελο
> >    /usr/share/gimp/2.0/help/el. Υπάρχει κάποιος τρόπος ώστε να
> >    μετατραπεί
> >    σε pdf αρχείο; Αυτό θα ήταν υπερβολικά χρήσιμο τόσο για την
> >    εκμάθηση του
> >    προγράμματος όσο και για την ευκολότερη διάδοσή του. Γνωρίζω ότι το
> >    αντίστοιχο pdf αρχείο υπάρχει μόνο στα αγγλικά και τα ιταλικά. Στις
> >    υπόλοιπες γλώσσες απλά δεν υπάρχει. Υπάρχει κάποιος τρόπος να το
> >    δημιουργήσουμε;
> >
> >    Ευχαριστώ εκ των προτέρων για το ενδιαφέρον σας και για την
> >    οποιαδήποτε
> >    απάντηση.
> >
> >
> >    --
> >    Ubuntu-gr mailing list
> >    Ubuntu-gr@lists.ubuntu.com <mailto:Ubuntu-gr@lists.ubuntu.com>
> >
> >    If you do not want to receive any more messages from the ubuntu-gr
> >    mailing list, please follow this link and choose unsubscribe:
> >    https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr
> >
> >
> >
> > --
> > Spiros Andreou
> > Software Engineer
> > https://www.linkedin.com
> > <https://www.linkedin.com/in/spiros-andreou-b9ab6b61/>
> >
> >      --
> >    '    `.
> >    |a_ a |
> >    \<_)_/
> >  /(      )\
> >  |\`>  < /\
> >   \_|=='|_/
> > Linux Counter ID: 408991
> >
> > If you can't see the above
> > message please inform me.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20200117/a914dc80/attachment.html
> >
>
> --
> Ubuntu-gr mailing list
> Ubuntu-gr@lists.ubuntu.com
>
> If you do not want to receive any more messages from the ubuntu-gr mailing
> list, please follow this link and choose unsubscribe:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr
>


-- 
Spiros Andreou
Software Engineer
https://www.linkedin.com
<https://www.linkedin.com/in/spiros-andreou-b9ab6b61/>

     --
   '    `.
   |a_ a |
   \<_)_/
 /(      )\
 |\`>  < /\
  \_|=='|_/
Linux Counter ID: 408991

If you can't see the above
message please inform me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20200118/c42fd09b/attachment.html>
-- 
Ubuntu-gr mailing list
Ubuntu-gr@lists.ubuntu.com

If you do not want to receive any more messages from the ubuntu-gr mailing 
list, please follow this link and choose unsubscribe:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr

Απαντηση