What settings are needed to disable Save As dialog?
To disable novaPDF "Save As" dialog, you have to set the folder and the file name programmatically. Here's an example on how you can set the folder and file name of the PDF to be saved in different programming languages (next code, has to be called after the Initialize() function).
In Visual Basic (full SDK sample is here - VBConverter):
' disable the "Save PDF file as" prompt
m_NovaOptions.SetOptionLong2 NOVAPDF_SAVE_PROMPT, False, SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
' set generated Pdf files destination folder "c:\"
m_NovaOptions.SetOptionString2 NOVAPDF_SAVE_FOLDER, "c:\", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
' set output file name
m_NovaOptions.SetOptionString2 NOVAPDF_SAVE_FILE, "PDF Converter small size.pdf", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
In VB.NET (full SDK sample is here - VBnetConverter):
'disable the "Save PDF file as" prompt
m_NovaOptions.SetOptionLong2 NOVAPDF_SAVE_PROMPT, False, SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
'set generated PDF file destination folder "c:\"
m_NovaOptions.SetOptionString2 NOVAPDF_SAVE_FOLDER, "c:\", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
' set output file name
m_NovaOptions.SetOptionString2 NOVAPDF_SAVE_FILE, "PDF Converter small size.pdf", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC
In C (full SDK sample is here - MFC Converter):
// disable the "Save PDF file as" prompt
hr = m_novaOptions->SetOptionLong( NOVAPDF_SAVE_PROMPT,
FALSE,
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);
// set generated Pdf files destination folder ("c:\")
hr = m_novaOptions->SetOptionString( NOVAPDF_SAVE_FOLDER,
L "c:\\" ,
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);
// set output file name
hr = m_novaOptions->SetOptionString( NOVAPDF_SAVE_FILE,
L "PDF Converter small size.pdf",
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);
In C# (full SDK sample is here - CSharp Converter):
// disable the "Save PDF file as" prompt
mobjNovaOptios.SetOptionLong2( NovaOptions.NOVAPDF_SAVE_PROMPT,
0,
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC );
// set generated PDF file destination folder "c:\"
mobjNovaOptios.SetOptionString2( NovaOptions.NOVAPDF_SAVE_FOLDER,
"c:\\" ,
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC );
In Delphi (full SDK sample is here - VCL Converter):
delphi
// disable the "Save PDF file as" prompt
hr := m_novaOptions.SetOptionLong2(NOVAPDF_SAVE_PROMPT,
0 ,
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);
// set generated Pdf files destination folder to the application path
hr := m_novaOptions.SetOptionString2(
NOVAPDF_SAVE_FOLDER,
ExtractFilePath(Application.ExeName),
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);
// set output file name
hr := m_novaOptions.SetOptionString2(NOVAPDF_SAVE_FILE,
'PDF Converter small size.pdf',
SMALL_SIZE_PROFILE,
PROFILE_IS_PUBLIC);