Active3 days ago
How can I convert pdf files from version 1.1 to 1.4 (or higher)?
Meet Icecream PDF Converter, software that lets you convert to and from PDF format.While converting DOC to PDF, EPUB to PDF, JPG to PDF and more, you can merge all files in one PDF document, as well as use various output file settings. How to convert to PDF from other file types: Upload your file to our online PDF converter. The tool will instantly upload and transform the file into a PDF. Compress, edit or modify the output file, if necessary. Download the PDF to your device, or export it to Dropbox or Google Drive.
Actually I need some sort of command line tool for batch converting or some API to be able to convert dynamically severall documents.
Pdf 1.4 Converter Download
Online Document Converter makes it possible for anyone to convert Word, Excel, PowerPoint.(doc, xls, ppt.), image formats like TIFF, JPG, HEIC and many other to PDF, PDF/A or Image. No need to install anything on your computer - simply upload the file and select your delivery method. PDF Version Converter is the answer. This software utility enables you to convert PDF files between different versions; you can upgrade or downgrade PDF version among, PDF version 1.0 (Adobe. Foxit Software is the reliable source for fast, affordable, and secure PDF solutions. Foxit's PDF editor software offers Productivity, Enterprise Automation & Developer solutions.
user285677
user285677user28567757522 gold badges1111 silver badges2020 bronze badges
2 Answers
Pdf 1.1 is forward compatible with pdf 1.4. Everything in pdf 1.1 will work with pdf 1.4 - it's guaranteed by the spec. Let's assume that you've got some justifiable reason why this is not good enough for you (let's assume, for example, that you have a non-spec compliant tool that consumes PDF and explodes on any file version less that 1.4).
We can focus on the main syntactic differences between versions.
All PDF files have a header somewhere in the first 1024 bytes. In most cases, it's the very first line, but that's not guaranteed (I'm looking at you GhostScript!). The header looks like this in PDF 1.1:
in PDF 1.4, it looks like this:
So in theory, all you need is a tool that will look in the first 1024 bytes for a file for '%PDF-1.1' and change it to '%PDF-1.4'. You could use sed, perl, etc to do something like that for you. You could write it in C and you would be tempted to do something like this:
which will work in most sane cases. It will not work if the file starts, for example, with 0 bytes, which would serve as null terminators in the block of data.
A better choice (really) would be to cobble up a simple state machine to find %PDF-1. by reading 1 byte at a time until it either finds it or passes 1017 (1024 less the header length), then reads the next byte, if it's a '1', it seeks back a byte and writes a '4'.
The only other thing you would need to worry about is that PDF 1.4 suggests that the document catalog should contain a Version key with the file version. Since this is defined as optional in the spec, you are safe to ignore it.
Pdf 1.6 To 1.4 Converter
So this will solve your problem. I do not, however, believe that you should need to do this. Really.
You should take some time to read part of the PDF spec, specifically section I.2 about version numbers and compatibility.
plinthPdf 1.4 Converter Free
plinth42.3k88 gold badges7272 silver badges112112 bronze badges
NowakerPdf 1.4 Download
Nowaker9,93044 gold badges4444 silver badges5858 bronze badges