![]() ![]() ![]() cOption line you need directly to the immediate window. I thought I'd share it for the sole reason that it makes it a bit easier to work out what defaut values are, and prints the. The code below (which also is intended for a standard module), was used in the development of the above. cOption("PrinterTempPath") = " PDFCreator" ![]() cOption("PDFDisallowModifyAnnotations") = 0 cOption("PDFOwnerPassString") = vbNullString cOption("PDFUserPassString") = vbNullString cOption("UseCreationdate") = vbNullString MsgBox "Can't initialize PDFCreator.", vbCritical + _ cStart("/NoProcessingAtStartup") = False Then 'Author : Ken Puls ('Macro Purpose: Reset the PDFCreator seetings to their default valuesÄim objPDF As New PDFCreator.clsPDFCreator This code, as written, is intended to go in a standard module, and could be called from a button, or a Workbook_Open event, if so required/desired. As time goes on, I may add the rest, but I think that this is probably enough to do what 99% of users will need to do. My thought is that if you can figure out how to change different settings via code, you can figure out how to add them to this routine. The routine does not reset all the default values, but rather the ones that I've changed most commonly and in examples on the site. The following routine is intended to reset PDFCreator's default values via code. NOTE: Before you "go it alone" with trying to adapt any of these routines, you may want to read this article, which shares some of the idiosyncrasies discovered in the development of the PDFCreator code samples. ![]() These routines were tested successfully using PDFCreator 0.9.1, GPLGhostscript.exe download package, on Windows XP Pro (SP2). If you are not familiar with the difference between Early and Late Binding, please read our article on Early vs Late binding. It should be noted that each of the examples in this section use an Early Bind. Please note that this code will NOT work with Adobe Acrobat. Unlike Adobe Acrobat and CutePDF, which both require pro versions to create PDF's via code, PDFCreator is completely free! Download PDF Creator from Sourceforge here. These code examples are built for PDFCreator, an open source PDF writer utility. This article contains code examples to reset some (but not all) of the default settings of PDFCreator. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |