Concatenation of certified PDFs - pdf

We have a need to concatenate a number of PDFs uploaded by a user into a single PDF file. We're currently using iTextSharp for this without problem for standard PDFs. But sometimes one of the files is certified (e.g. a bank statement issued by the bank) and this is causing a problem. It's treating the operation as an edit, which is not allowed because of the certificate.
My question is: is this going to be possible to achieve, or is there a fundamental reason that it can't be done? What tools could I use and how (iTextSharp, Aspose.Pdf, etc)?
For clarity, I don't want the certificate to be maintained in the concatinated PDF. I would like a standard PDF to be the result. Also, I'm not talking about PDFs protected with a password.
Most of the discussion I can find online is either talking about password protected files, or trying to maintain the certificate.
Many thanks,
Robin

Certifying a PDF document is to secure it against modification. You may remove the signature using Aspose.Pdf from certified PDF and later concatenate the resultant PDF with other PDF documents.
I'm Tilal, developer evangelist at Aspose.

Related

Redacting information in pdf programmatically

I would like some suggestions on how I can achieve this. While there is discussion on this topic, it is six years old and I am hoping there are SaaS solutions available today or easy way to do it.
I would like to run a program on tax-returns in pdf format that would remove or redact sensitive information from the pdf file such as Name, Address, SSN, and other PII, and generate a public copy of the tax return in pdf that is safe to share with others.
The source of the pdf can be a scanner or tax software. Is it there an easy way to accomplish this?
Thanks,
Dan
There is a SaaS based image storage and manipulation service called cloudinary (cloudinary.com) which has an add-on that may help to redact text, see: https://cloudinary.com/documentation/ocr_text_detection_and_extraction_addon
How are these files being presented? e.g. are the PDF files viewed on the web or via an application as images?
[i am not affiliated with cloudinary]

PDf viewer without download option

i have some pdf files which i'd like to upload on my association site thus i'd like them not to be able to download it as it may content some slightly sensitive information .
So ok they could ctrl+c but that would reduce the spreading of the information not to have them locally
php/js w/e
thanks
quoted answer from a similar question, if you' re using Adobe pdf viewer:
You can NOT prevent users from saving ANY TYPE of document from the web - PDF, HTML, JPEG, etc. It's a "feature" of the web.
What you CAN DO is prevent users from being able to use the PDF once it hits their own disk. To do this, you use powerful Digital Rights Management solutions...:
https://forums.adobe.com/message/5158866

I have to fill out and sign a PDF electronically but I only have Adobe Reader

Is there another tool I can use for this?
I have to fill out a PDF that has pre-defined text fields and a spot where you can sign (but I think you need to do one of those PDF electronic signatures), and then click Submit to send the form.
However I only have Adobe Reader which doesn't allow for me to sign the document, and I don't think I can install software on this computer due to rights privileges being tight. What can I do?
You have two options:
Make your PDFs Reader-enabled. A PDF that is Reader-enabled is signed using a private key owned by Adobe. When Adobe Reader can validate that signature, it unlocks functionality in Adobe Reader that is usually available in Adobe Acrobat only. Making a document Reader-enabled is (obviously) only possible if you have Adobe software (Adobe Acrobat, Adobe LiveCycle ES). You won't find any third party software that can do this, because no third party has the right to use Adobe's private key.
Use a third party viewer that is able to edit form fields. For instance: http://jpedal.org, http://www.foxitsoftware.com/, http://www.nitropdf.com/
Disclaimer: it isn't clear what you mean by signing. In Europe, you need a private key (on a smart card, an USB token,...) to create a digital signature. In the US, people call any scribble a digital signature. Some viewers will allow you to add some hand-written signature, but in Europe that isn't considered being a legally binding digital signature.
Checkout services like Docusign. If I am not mistaken, Docusign lets you upload a PDF and sign it using just your browser. They do have a free trial option.

How to add an e-signature to a PDF File from a Smart Card?

I have a Java EE app that needs to implement e-signing of PDF Files. The user needs to be able to click a link that will generate a PDF File based on data in the database and see the PDF in their browser. The use then needs to be able to "sign" the document using their private key stored on their smart card (which is plugged into a smart card reader on the PC that they're using). Users are using Windows 7 and JRE 1.6
I was hoping to use iText for the PDF generation, but it is unclear what solution I would use on the client-side for pulling information in from from the smart card and then for applying that information to sign the PDF and show the PDF as being signed (either showing the user's signature or updating the doc to say that it has been signed).
Has anyone done this before and has a solution?
It does not help reading a certificate from the smartcard, as you
need the private key.
You should not (and most often can not) read the private key from the smartcard
(that's the reason for using a smartcard)
To access the smartcard you need to interface one of the native
API's like plain PC/SC, PKCS#11 or CSP.
To do this from the browser you need either an ActiveX or an Applet.
Building this from scratch is very ambitious
Some critical information is:
- what reader
- what smartcard
- what browser
- what os
to select or develop a solution
We have a commercial product built using applet technology that does exactly what you requested (take a PDF, interface to the smartcard, sign the hash, insert the signature in any form supported by PDF, post the signed PDF). If you are interested, i will provide a contact.
Use PDF Studio. I had an issue with my CAC reader config.cfg file but after I deleted the "slot = 1" line it worked like a champ. My file now looks like this:
name = SunPKCS11
library = /usr/lib64/libcackey.so
For further info visit:
https://www.qoppa.com/pdfstudio/

Tracking through PDF

I am exporting a document as a PDF. It is kept on a publicly accessibly website so that any users can download and read it. Now I want to track this. e.g. "How many times the PDF got opened."
Note that my question is not to track while I download, we need to track when the PDF is opened. Is there any kind of script that is invoked when the PDF is opened so that Adobe Acrobat Reader sends the details to my server?
These are the details I would like:
IP
Date/Time
Possbilly GEO Location.
Yes, you can probably do this. PDF includes a Javascript API, which some (but not all) PDF readers implement. I'm only certain of Acrobat and Foxit Reader doing this, and it can be turned off in both, for security and privacy reasons. That said, it's probably your best shot.
I glanced through the Javascript for Acrobat API Reference, and it looks like you could register for the "Page/Open" event (page 368 in my copy), and on receiving the first one of those, make a Net.HTTP call (page 548) to a web server you're running. That will get you the date/time and the public IP of the client reading the document, from which you can get a geolocation using a service like GeoIP.
I'm not sure this is possible. Although PDF can execute Javascript, reader software is naturally paranoid about malware being embedded in "benign" documents, so the execution context is quite restricted, with warnings shown about possible dangerous activity.
See previous SO question Can my PDF ping my server when it is opened?