https://comp.lang.postscript.narkive.com/wUGvZLpW/ghostscript-pdf-to-tiff-conversion-with-page-resize
I'm trying to convert PDF files to multipage TIFF files using
GhostScript 8.00. I need to build a command line which can be called
programatically in a batch job (so I can't use GSView to do the work).
I successfully managed to convert the files but I can't figure out how
to scale the output to fit the -sPAPERSIZE I set (A4). If I use
-dFIXEDMEDIA the page are not scaled but cropped. GSView can scale the
pages, so I know it's possible, but how does it do this?
I tried to add to my command line the following parameters:
-c "<< /Policies << /PageSize 5 >> /PageSize [595 842]
/InputAttributes << 0 /PageSize [595 842] >> >> >> setpagedevice" -f
But the output is not scaled. I currently use the following command
line:
c:\gs\gs8.14\bin\gswin32c.exe -r300 -dNOPAUSE -dNOPAGEPROMPT -dBATCH
-sFONTPATH=C:\WINNT\fonts -sDEVICE=tiffg4 -sPAPERSIZE=a4
-sOutputFile=%1.tif %1
Thank you.
Ok, I finally managed to solve the problem -dDEVICEWIDTH=2479
-dDEVICEHEIGHT=3508 -dPDFFitPage switchs).
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2020
(96)
-
▼
May
(52)
- Create gMSAs for Windows containers
- 2 Ways to Access Emoji in Windows 10
- Tesseract and tiff format - spp not in set {1,3}
- database importing problem with sql server
- How to Add a Static TCP/IP Route to the Windows Ro...
- how to mysqldump remote db from local machine
- Use mysqldump to Back Up MySQL or MariaDB
- MySQL Error “Too many connections” and how to reso...
- Replace a newline in TSQL
- SSL disappears from the certificate list on Window...
- Setting up an HTTP/HTTPS redirect in IIS
- Microsoft Adds 'Disable Legacy TLS' Feature to Win...
- Transport Layer Security (TLS) registry settings
- Transport Layer Security (TLS) best practices with...
- how can I Update top 100 records in sql server
- How to Enable Annotations in PDF.JS
- Powershell Output (“echo”) a variable to a text file
- Powershell - Array
- SQL Carriage Returns or Tabs in SQL Server strings
- How to Protect Against Slow HTTP Attacks
- FEB Fixing memory leaks in web applications
- How to enable Data Deduplication in Windows 2012
- SOLVED: How to Enable, Configure and Test Data Ded...
- Install and enable Data Deduplication
- Matcher Parameters
- Creating a Test Active Directory Domain Controller
- How to connect to Active Directory via LDAPS in C#?
- Step by Step Guide to Setup LDAPS on Windows Server
- Convert Windows Server 2019 Evaluation to the reta...
- Fix: Error 0x8007232b ‘DNS Name Does not Exists’
- IIS and Azure Files
- Download virtual scanner for testing
- MySQL foreach alternative for procedure
- Generate an API Key for the Google Spreadsheet Widget
- Monitoring Disk Usage
- Get-Credential
- How to Send an Email Using Windows PowerShell
- How do I add a newline to command output in PowerS...
- Powershell Send-MailMessage
- PowerShell Command Line – The Term ‘Get-ADGroupMem...
- Powershell Get AD Group User count
- GhostScript: PDF to TIFF conversion with page resize
- Windows Server 2012 R2 stuck in reboot cycle due t...
- How To Properly Change Product Key Of Office 2016/...
- fastText
- Installing windows service using sc.exe in windows...
- MSGReader
- Getting Started with Group Managed Service Accounts
- Invalid drive specification using XCOPY
- takeown
- Six different methods to copy tables between datab...
- Overview of the SQL Insert statement
-
▼
May
(52)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.