Allow viewers to copy text

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
canyonfred
Posts: 2
Joined: Wed Jan 11 2006

Allow viewers to copy text

Post by canyonfred »

I am using pdf converter 2.10 in MS Access with VBA
I have checked the FAQs, tech docs and forums, but I can't figure out how to give my users the ability to copy text from a pdf doc I have created.

I have tried to use pdf.encrypt ... as suggested on some posts, but I get a 'method not supported' (or something like that), and 'encrypt' is not an intellisense option to my pdf object.

sample code:
Private pdf As New CDIntfEx.CDIntfEx

' initialize the PDF writer printer
pdf.PDFDriverInit strPDFPrinterName
pdf.EnablePrinter strPDFPrinterUserName, strPDFPrinterAuthorization
pdf.DefaultFileName = strPDFFilename
pdf.FileNameOptions = 3

If strReportParam = "" Then

DoCmd.OpenReport strReportName, acViewNormal
Else

DoCmd.OpenReport strReportName, acViewNormal, , strReportParam
End If

pdf.FileNameOptions = 0

bolSuccess = SecurePDF.Open(strPDFFilename)
If bolSuccess = False Then GoTo Err_SecurePDFReport

SecurePDF.SetLicenseKey strPDFPrinterUserName, strPDFPrinterAuthorization
SecurePDF.Encrypt "passwordhere", "", -60
bolSuccess = SecurePDF.Save(strPDFFileDirectory & strPDFFilename)

Thanks to anyone that can point me in the right direction.

Fred Parkinson
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I didn't really get your requirements.

Do you need to encrypt the PDF file or you need the end user viewing the file to be able to copy text from it?

If the file is not encrypted your user by default will be able to copy text from it.

If you wish to Encrypt the PDF file please check that you have the Professioal version of the PDF Converter.

Hope this helps.
Post Reply