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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - File generation by digital  signing
  FAQ FAQ  Forum Search   Register Register  Login Login

File generation by digital signing

 Post Reply Post Reply
Author
Message
takuya View Drop Down
Beginner
Beginner
Avatar

Joined: 06 Aug 21
Location: Japan
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote takuya Quote  Post ReplyReply Direct Link To This Post Topic: File generation by digital signing
    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;
}

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 06 Aug 21 at 10:29AM
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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store