Using "sips" to change resolution of PDF file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Using "sips" to change resolution of PDF file
# 1  
Old 10-17-2005
Using "sips" to change resolution of PDF file

Within the MacOSX Tiger terminal, I can use sips (scriptable image processing system) to convert a PDF to a JPEG. However some of the PDFs are 150 dpi and I need the final JPEG to be at least 300 dpi. How can I use sips to change the resolution of the PDF to 300 dpi before I convert it to a JPEG.

Thanks in adance for your help.....Cassj
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)

These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

5. Shell Programming and Scripting

Awk,sed : change every 2nd field ":" to "|"

Hi Experts, I have a string with colon delimited, want 2nd colon to be changed to a pipe. data: 101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3: I am trying with sed, but can change only 1 occurance: echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
Discussion started by: rveri
5 Replies

6. Shell Programming and Scripting

awk :help to parse a file to change to separated by colon ":"

Hi experts , I am trying to get the below output: file : 0/6/4/1 0x0019503C2E26 5 UP lan5 snap5 1 ETHER Yes 224 0/6/4/0 0x0019503C2E25 6 UP lan6 snap6 2 ETHER Yes 224 0/2/1/0 0x0019503E6900 0 UP lan0 snap0 3 ETHER Yes 224... (8 Replies)
Discussion started by: rveri
8 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Linux

Need resolution for the command "UUENCODE"

HI, I'm getting the following error while using "uuencode" -bash: uuencode: command not found I assume either the path is missing or it has not installed.. 1)Wat is the command to check the path for uuencode if it has been installed..? 2)How to install uuencode if its not... (7 Replies)
Discussion started by: vickramshetty
7 Replies

9. Shell Programming and Scripting

Find and change flag "Yes to No" or "No to Yes"

name:age:girlfriend aa:11:yes bb:22:yes cc:33:no dd:44:no ee:55:yes I want to change the cc, the status of girlfriend to yes. Find cc, and then change! how can i do this? (16 Replies)
Discussion started by: rafazz
16 Replies

10. Shell Programming and Scripting

Help to change the file with "sed" and "awk"

Hi experts I want your help to change the file format to my wanted version, please give me a hand thanks $cat file install pass make os pass make build kernel failed usb storage pass chane to | *install* | *make os* | *make build kernel* | *usb storage* | | pass | pass... (7 Replies)
Discussion started by: yanglei_fage
7 Replies
Login or Register to Ask a Question
pdftoppm(1)						      General Commands Manual						       pdftoppm(1)

NAME
pdftocairo - Portable Document Format (PDF) to PNG/JPEG/PDF/PS/EPS/SVG using cairo SYNOPSIS
pdftocairo [options] PDF-file [output-file] DESCRIPTION
pdftocairo converts Portable Document Format (PDF) files, using the cairo output device of the poppler PDF library, to any of the following output formats: o Portable Network Graphics (PNG) o JPEG Interchange Format (JPEG) o Portable Document Format (PDF) o PostScript (PS) o Encapsulated PostScript (EPS) o Scalable Vector Graphics (SVG) pdftocairo reads the PDF file, PDF-file, and writes to output-file. The image formats (PNG and JPEG) generate one file per page with the page number and file type appended to output-file (except when -singlefile is used). When the output format is a vector format (PDF, PS, EPS, and SVG) or when -singlefile is used, output-file is the full filename. If the PDF-file is "-" , the PDF is read from stdin. If the output-file is "-" , the output file will be written to stdout. Using stdout is not valid with image formats unless -singlefile is used. If output-file is not used, the output filename will be derived from the PDF- file filename. Not all options are valid with all output formats. One (and only one) of the output format options (-png, -jpeg, -pdf, -ps, -eps, or -svg) must be used. The resolution options (-r, -rx, -ry) set the resolution of the image output formats. The image dimensions will depend on the PDF page size and the resolution. For the vector outputs, regions of the page that can not be represented natively in the output format (eg translucency in PS) will be rasterized at the resolution specified by the resolution options. The -scale-to options may be used to set a fixed image size. The image resolution will vary with the page size. The cropping options (-x, -y, -W, and -H) use units of pixels with the image formats and PostScript points (1/72 inch) with the vector for- mats. When cropping is used with vector output the cropped region is centered unless -nocenter is used in which case the cropped region is at the top left (SVG) or bottom left (PDF, PS, EPS). OPTIONS
-png Generates a PNG file(s) -jpeg Generates a JPEG file(s) -pdf Generates a PDF file -ps Generate a PS file -eps Generate an EPS file. An EPS file contains a single image, so if you use this option with a multi-page PDF file, you must use -f and -l to specify a single page. The page size options (-origpagesizes, -paper, -paperw, -paperh) can not be used with this option. -svg Generate a SVG (Scalable Vector Graphics) file -f number Specifies the first page to convert. -l number Specifies the last page to convert. -o Generates only the odd numbered pages. -e Generates only the even numbered pages. -singlefile Writes only the first page and does not add digits. -r number Specifies the X and Y resolution, in pixels per inch of image files (or rasterized regions in vector output). The default is 150 PPI. -rx number Specifies the X resolution, in pixels per inch of image files (or rasterized regions in vector output). The default is 150 PPI. -ry number Specifies the Y resolution, in pixels per inch of image files (or rasterized regions in vector output). The default is 150 PPI. -scale-to number Scales each page to fit in scale-to*scale-to pixel box (PNG/JPEG only). -scale-to-x number Scales each page horizontally to fit in scale-to-x pixels (PNG/JPEG only). -scale-to-y number Scales each page vertically to fit in scale-to-y pixels (PNG/JPEG only). -x number Specifies the x-coordinate of the crop area top left corner in pixels (image output) or points (vector output) -y number Specifies the y-coordinate of the crop area top left corner in pixels (image output) or points (vector output) -W number Specifies the width of crop area in pixels (image output) or points (vector output) (default is 0) -H number Specifies the height of crop area in pixels (image output) or points (vector output) (default is 0) -sz number Specifies the size of crop square in pixels (image output) or points (vector output) (sets -W and -H) -cropbox Uses the crop box rather than media box when generating the files -mono Generate a monochrome file (PNG only). -gray Generate a grayscale file (PNG and JPEG only). -transp Use a transparent page color instead of white (PNG only). -icc icc-file Use the specified ICC file as the output profile (PNG only). The profile will be embedded in the PNG file. -level2 Generate Level 2 PostScript (PS only). -level3 Generate Level 3 PostScript (PS only). This enables all Level 2 features plus shading patterns and masked images. This is the default setting. -origpagesizes Generate a file with variable page sizes and orientations (PS and PDF only). The size of each page will be the original page in the PDF file. If the output is PS the file will contain %%DocumentMedia and %%PageMedia DSC comments specifying the size of each page. Any specification of the page size via -paper, -paperw, or -paperh will get overridden as long as each page of the PDF file has a defined paper size. -paper size Set the paper size to one of "letter", "legal", "A4", or "A3" (PS,PDF,SVG only). This can also be set to "match", which will set the paper size to match the size specified in the PDF file. -origpagesizes overrides this setting if the PDF file has defined page sizes. -paperw size Set the paper width, in points (PS,PDF,SVG only). -origpagesizes overrides this setting if the PDF file has defined page sizes. -paperh size Set the paper height, in points (PS,PDF,SVG only). -origpagesizes overrides this setting if the PDF file has defined page sizes. -nocrop By default, output is cropped to the CropBox specified in the PDF file. This option disables cropping. -expand Expand PDF pages smaller than the paper to fill the paper (PS,PDF,SVG only). By default, these pages are not scaled. -noshrink Don't scale PDF pages which are larger than the paper (PS,PDF,SVG only). By default, pages larger than the paper are shrunk to fit. -nocenter By default, PDF pages smaller than the paper (after any scaling) are centered on the paper. This option causes them to be aligned to the lower-left corner of the paper instead (PS,PDF,SVG only). -duplex Adds the %%IncludeFeature: *Duplex DuplexNoTumble DSC comment to the PostScript file (PS only). This tells the print manager to enable duplexing. -opw password Specify the owner password for the PDF file. Providing this will bypass all security restrictions. -upw password Specify the user password for the PDF file. -q Don't print any messages or errors. -v Print copyright and version information. -h Print usage information. (-help and --help are equivalent.) EXIT CODES
The poppler tools use the following exit codes: 0 No error. 1 Error opening a PDF file. 2 Error opening an output file. 3 Error related to PDF permissions. 4 Error related to ICC profile. 99 Other error. AUTHOR
The pdftocairo software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright 2005-2011 The Poppler Developers. SEE ALSO
pdffonts(1), pdfimages(1), pdfinfo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1) pdftoppm(1)