How can I upload pdf files after scanning it through scanner feeder ? I am using OCX
plugin to upload images to server, but in the application I am working on, I have to upload PDF document to server. Can you suggest me plugin or library even if is not free, I will be very thankful.
To quote my comment
With PHP I'm pretty sure this isn't possible, how about getting the user to scan the PDF and then upload the PDF?
For example you could just get them to scan all the PDF's as .jpeg's or even .pdf's and then upload them as normal.
However you could look at ActiveX plugins for internet explorer that support this.
http://www.codeproject.com/Articles/45241/How-to-Scan-Tiff-and-PDF-from-the-Web
Or third party software that uploads via FTP to a web server:
http://www.z-scan2send.com/scan-to-web.html
For Chestysoft's csXImage I don't think a plugin with PDF support exists, however it can write PDF's. See http://www.chestysoft.com/ximage/manual.htm#sect1.8.9
csXImage can save images to PDF files. The images are always saved one per page, with the page size set equal to the image size.
And further up the manual:
The following file types are supported: .bmp, .gif, .jpg, .jpeg, .jpe, .png, .wbmp, .wbm, .pcx, .psd, .tif and .tiff.
Related
I have a question about uploading PDF file in PHP, how I can uploading PDF file to the database and first page of the PDF file set as a cover to the PDF file
By using imagick / ghostscipt you can accomplish what you're asking for.
Sketch at:
Convert PDF to JPEG with PHP and ImageMagick
I recently discovered iloveimg.com as a way to genuinely compress my png images before I upload them to my store. However, I have problems uploading the png image as-is:
For example I uploaded this file which has 17.125 Bytes to a CMS Page via the insert image feature. After the successful upload, this file on the server has now 32.287 Bytes. At this point I did not even insert the image to the page, I just uploaded it. To my surprise it almost doubled the filesize. I linked to each file so maybe this helps identifying the issue.
Can anyone explain why this does happen? I suppose it has something to do with the Gd2.php file which unfortunately I cannot fully understand nur handle. I am using magento 1.9.3.4.
I've created an ACF file upload field, in order to attach pdf and image files to each post I create.
the problem is, when I want to Re-Use those files - they don't appear in the media library, but they do appear in the "uploads" folder on the server.
Is there a way to force the media library to index those files?
They certainly should be appearing in the media library so it sounds like a configuration issue. Are there any errors appearing when you upload the file? Perhaps also check your server logs to make sure there is nothing being reported when you try and upload the file...
I know for the fact that there is trojan or malware in php which represents itself as an image. And I also know that to filter out the file upload we use extensions such as .txt or .png.
Is there a way to scan the files manually when they are being uploaded into the server using server built-in antivirus or the server doing this kind of tasks automatically for us? ( I mean particularly in cpanel )
thanks
If you are worried about code being uploaded to your server in the form of an image, simply re-encode the image upon upload. A file containing code with an image extension will throw an error when the encoder tries to process it.
I want to implement validation on image files (.jpg, .png, .gif) in such a way that if a user changes the extension of html into jpeg then the system will restrict him that this file is in an invalid format. I have implement the validation on file extension, but I want to implement this validation as well.
And I am uploading video (.wav, .flv, .mp4) and audio (.mp3) files as well, and if someone upload file with wrong extension, the system will restrict him. How I can do this?
tried finfo_file - required pecl fileinfo, php 5.3 and above,
this function will return a REAL mime type of an uploaded file,
based on this info, you can do comparison and blocking any unwanted extension (mime)