Help:Converting PDF to DjVu/he

המרה של קבצי PDF לפורמט DjVu אינה תמיד הכרחית, אך עשויה להיות שימושית בגלל היתרונות של פורמט DjVu והבעיות שיש לחלק מקבצי ה-PDF (למשל, עקב שכבות טקסט ותמונה לא תואמות, תמונות jpeg מוטמעות, גופנים או דברים אחרים). יש להעריך כל קובץ PDF לגופו לפני קבלת החלטה להמיר. קבצי PDF וקטוריים (לדוגמה, כאלה שנוצרו מהמרת מקור דיגיטלי, כגון מסמך שנוצר ב-Open Office או ב-Microsoft Word) בדרך כלל לא צריכים להיות מומרים; אלה נפוצים במסמכים ממשלתיים עדכניים. גירסאות DjVu של ספרי PDF מועילות משום ש:

  • קבצי DjVu קטנים יותר, וזה היה הרעיון המרכזי מאחורי פורמט DjVu;
  • מסמכי DjVu ניתנים לעיבוד ולגלילה ביתר קלות. ניתן להבחין שבצופי PDF ו-DjVu: ל-DjVu יש זמן תגובה טוב יותר;
  • פורמט DjVu אינו דורש גופנים;
  • ל-DjVu יכול להיות מתווה מאונדקס וניתן לחיפוש ב-WinDjView. ראה עזרה:יצירת מתווה עבור PDF ו-DjVu.

עם זאת, המרה כזו נוטה לפגוע באיכות, לכן עלינו לעשות כמיטב יכולתנו כדי לשמור על איכות מקובלת.

שיפור שורת הפקודה של ווינדוס

ייתכן שההמרה תדרוש כלי שורת פקודה. מעטפת הפקודה הסטנדרטית של ווינדוס מספיקה למשימה, אך ניתן לשפרה כדי להקל על השימוש. ראה עזרה:שיפור מעטפת הפקודה של ווינדוס.

שימוש בפתרונות תוכנה מוכנים

  • התוכנה Djvu-Spec Pdf 2 DjVu Converter עבור מערכות ווינדוס ממירה קבצי PDF דרך שורת הפקודה או ממשק גרפי. היא כוללת הדרכת וידאו ומדריך למשתמש. תוכנה זו מבוססת Delphi היא בעיקר ממשק משתמש גרפי מבוסס VCL עבור pdf2djvu מאת Jakub Wilk (יעקב וילק).
  • pdf2djvu יכול להמיר בקלות קובץ PDF לקובץ DjVu. ניתן להשתמש בשורת הפקודה הזו כדי ליצור זאת:
    pdf2djvu -o p.djvu --dpi=900 p.pdf
  • קיימת תוכנה אחרת להמרת PDF ל-DjVu, כמו Celartem pdftodjvu. עם זאת, התגלה שהיא קורסת בקבצים מסוימים בתנאים מסוימים.

שימוש: pdftodjvu book.pdf [-o book.djvu] [-mode:Document|Bitonal] [פרמטרים אחרים...]

פרמטרים:

-o book.djvu
פלט קובץ djvu. אם לא צוין -о, pdftodjvu משתמש בשם קובץ הקלט PDF עם הסיומת '.djvu'.
-mode SegmentationMode
מגדיר את מה שנקרא מצב פילוח, שיכול להיות אחד מהבאים הבאים: Document, Bitonal, PhotoIfFGEmpty, SegmentAlways, PhotoAlways.

תוצאות מקובלות מתקבלות בדרך כלל רק עם ערכי Document או Bitonal עבור mode.

-dpi DPI
מגדיר את DPI.

הפרמטרים מוסברים בפירוט לאחר הפעלה פשוטה של ​​תוכנית זו.

  • חלק מהתוכנות אינן יכולות להמיר ישירות קבצי Google Books בגלל הדחיסה שלהם. במקרה כזה, ניתן לבצע את ההמרה על ידי חילוץ דפים בפורמט bitmap והרכבתם לתוך DjVu (ראה להלן). אתגר תכנות כאן: רצוי שמישהו יכתוב ממיר שיכול להמיר אפילו קבצי PDF של Google Books ל-DjVu.

פתרונות תוכנה מתקדמים

  • DjVuDigital ו-GSDjVu משתמשים ב-Ghostscript כדי להמיר מסמכים של PostScript או PDF ל-DjVu, אולם עקב בעיות רישוי, קבצי הרצה מובנים אינם מסופקים.

פיצול לתמונות והרכבתן לתוך DjVu

אם לא ניתן להשיג תוצאות משביעות רצון בעזרת הממירים הקיימים, שיטת העבודה היחידה עשויה להיות לחלץ את כל עמודי הקובץ המקורי כתמונות וליצור מהן קובץ DjVu. נדרשות גישות שונות עבור קבצי PDF צבעוניים ודו-גווניים.

שלב 1: חילוץ העמודים כתמונות

The first step is to extract PDF pages as images. The format of the images is important, because the programs that will convert them to DjVu require JPEG or PNM for coloured documents, and TIFF or PBM for bitonal documents.

  • The GUI program PDF-XChange Viewer can extract into the required JPG, TIFF or PBM formats, and STDU Viewer supports JPG extraction.
  • The advantage of PDF-XChange Viewer is that it can also smooth the whole pages graphically and extract the smoothed images, which may be useful because in some scanned books the text looks rough. (The smoothing is enabled in Preferences → Rendering → Smooth images.)
  • Another advantage is that it can extract the whole book into one multi-page bitonal TIFF file, which can be later converted with minidjvu (step 3 below).
  • If the desired format is TIFF, it needs to be set to bitonal: you need to open the export window (File → Export → Export to image...), then select Options → Image type → 1 (Black & white).
  • To get a multi-page TIFF, Export mode in the "Export to image" window needs to be set accordingly.
  • The command line tool pdfimages can give PBM/PPM and, in case the images are internally stored in the JPEG format, it can extract them as JPEG files.

שלב 2: המרת (עריכת) התמונות

The images are extracted with the scope of creating a DjVu out of them. The problem is there will likely be a need to convert them to the format that is accepted by the program that creates DjVu out of images, which is JPEG or PNM for coloured documents, and TIFF or PBM for bitonal documents. See Help:Converting images for details.

  • If ImageMagick convert is used for conversion, images can also optionally be edited along with the conversion.
  • Smoothing the text. ImageMagick convert -blur option with a value of about 0.05 to 0.3 can be used to smooth the text. See Help:Smoothing text in PDF or DjVu scanned books.
  • Reducing the dimensions of the images to obtain smaller DjVu size. This may be done with Imagemagick convert -resize option.

שלב 3: הרכבת התמונות לתוך DjVu

שימוש בשירותים מקוונים

  • Any2DjVu Server allows to directly convert a PDF file.
  • PDF files from the rich French online library Gallica can be fetched simply by giving their FTP address to Any2DjVu Server. However, it is often advisable to crop the PDF file to have a better placement of the page in the frame. This may prove to be a challenge. Someone familiar with the subject is welcome to edit this article and describe this process.
  • Other online services exist that claim the ability to convert PDF to DjVu, but they may have limitations and not always deliver the expected results. You can easily find them by searching for convert pdf to djvu online (or the same in your native language).

העברת תוכן העניינים

השתמש ב-HandyOutliner או ב-Pdf & DjVu Bookmarker כדי להעביר את תוכן העניינים לקובץ המומר. ראה עזרה:יצירת תוכן עניינים עבור PDF ו-DjVu.

השארת בקשות

אם ברצונך להמיר מסמך כלשהו בויקישיתוף, אך אינך יכול לעשות זאת בעצמך, תוכל להשאיר בקשה בדף הקטגוריה "בקשות ויקישיתוף".

ראו גם

Category:Commons help/he Category:Digitisation help/Translations
Category:Commons help/he Category:Digitisation help/Translations