i'm evaluating the novapdf sdk and trying to generate pdf via c++ (win api calls).
So i take a look at the hello world example.
The filename there is passed in DOCINFO structure, and the save dialog will appear which suggest the user documents folder.
My question is, how can i achieve to not show the save dialog and pass a complete path and filename for pdf?
I have tried with
Code: Select all
. . . //what type of save dialog to be shown (none, simple or extended) pNova->SetOptionLong(NOVAPDF_SAVE_PROMPT_TYPE, PROMPT_SAVE_NONE); pNova->SetOptionLong(NOVAPDF_SAVE_FOLDER_TYPE, SAVEFOLDER_CUSTOM); . . . docinfo.lpszDocName = "D:\\test\\mydoc.pdf";
I need to dynamic change the path and filename.
I call StartDoc end EndDoc repetitive and every EndDoc is a new pdf.
In novaPDF the rules for folder and filename are stored in the profile settings? So i have to change the profile every time before the call to StartDoc?