Note: djvused is part of the djvulibre-bin package and may be installed with sudo apt-get install djvulibre-bin. ![]() On the Print dialog box, select Print to File. When the PDF file opens, select Print from the File menu. Enter the password in the edit box and select how long you want Evince to remember the password. Note: pdfinfo is part of poppler-utils and should come preinstalled on Ubuntu. Evince displays a dialog box asking for the user password to open the PDF file. PDF pdfinfo sample.pdf | grep -oP '(?<=Pages: )*' ODT unzip -p sample.odt meta.xml | grep -oP '(?<=page-count=")*' Note: wvSummary (case-sensitive!) is part of the wv package. WvSummary sample.ppt | grep -oP '(?<=of Slides = )*' To create a file called bar.txt, type: vi bar.txt. Run PDFinfo again, this time piping the output to the FIND filter and then redirecting the output to a text file. Create a Text File using vi / vim text editor. The Info’ dictionary contains the following values: title subject keywords author creator producer creation date modification date. ![]() In the command prompt window, enter the following command: pdfinfo test.pdf View the output in the command prompt. Pdfinfo prints the contents of the Info’ dictionary (plus some other useful information) from a Portable Document Format (PDF) file. Note: unzip can be installed with sudo apt-get install unzip.ĭOC/PPT wvSummary sample.doc | grep -oP '(?<=of Pages = )*' Run the PDFinfo utility on the sample PDF file. With your help I was able to compile a list of commands that can extract the page count from almost all relevant office documents:ĭOCX/PPTX unzip -p 'sample.docx' docProps/app.xml | grep -oP '(?).*(?=\)' I see that MediaWikiShellCommand::execute is logging stderr by default, but thats easy enough to switch off if this is just logspam.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |