Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
File generation by digital signing |
Post Reply ![]() |
Author | |
takuya ![]() Beginner ![]() ![]() Joined: 06 Aug 21 Location: Japan Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 06 Aug 21 at 9:32AM |
Hello When signing PDF at present, the file can be made following folder in quantities, and I'm examining what this is. Every time I sign PDF, this file is made, so I'd like to eliminate whether it outputs in a different folder. May I eliminate this file or move? C:\Users\UserName\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-・・・ A program will be the following. (It's being made by VisualStudio 2008 C++.) ―――――――――――――――――――――――――――――――――――――――――――――――――――― BOOL AddDigitalSignature(CString pdfPath) { if(ggv.pfxFileName.IsEmpty()) return TRUE; DebenuPDFLibraryDLL0916 DPL((char*)(LPCTSTR)"DebenuPDFLibraryDLL0916.dll"); CString pdfBkPath = pdfPath + ".bak"; int resc = CopyFile(pdfPath, pdfBkPath, FALSE); if(resc != 0) { DebugLog(9, "Error at AS_CopyFile:%d", resc); return FALSE; } Sleep(200); CStringW strLicenseKey(LICENCEKEY_DEBENU_PDFLIB); CStringW inputFileName(pdfBkPath); CStringW openPassword; CStringW signatureFieldName = L"Signature"; CStringW outputFileName(ggv.pdfModifyTemp + "SignedTemp.pdf"); CStringW pfxFileName(ggv.pdfModifyTemp + ggv.pfxFileName); CStringW pfxPassword(ggv.pfxFilePwd); CStringW reason(ggv.pfxSignReason); CStringW location(ggv.pfxSignLocation); CStringW contactInfo(ggv.pfxSignContact); int res = DPL.UnlockKey(strLicenseKey); if(res != 1) { DebugLog(9, "Error at UnlockKey:%d", res); return FALSE; } res = DPL.SignFile(inputFileName, openPassword, signatureFieldName, outputFileName, pfxFileName, pfxPassword, reason, location, contactInfo); if(res != 1) { DebugLog(9, "Error at SignFile:%d", res); return FALSE; } res = CopyFile((CString)outputFileName, pdfPath, FALSE); if(res != 0) { DebugLog(9, "Error at CopyFile:%d", res); return FALSE; } return TRUE; } |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Takuya :)
this is a common issue. You can google all about it with appdata roaming microsoft crypto rsa s-1-5-21 You shouldn't bother about it ;-) Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store