Generating PDF files without the Save As dialog

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
Support
Posts: 223
Joined: Wed Dec 16, 2009 12:46 pm
Location: Cluj-Napoca, Romania
Contact:

Generating PDF files without the Save As dialog

Postby Support » Wed Apr 14, 2010 8:12 am

In order to generate your PDF files without using the save as dialog in the process, you need to set the folder and the file programmatically. Examples and other considerations on how to do this are available here: http://www.novapdf.com/kb/novapdf-sdk-h ... g-139.html

J T

Re: Generating PDF files without the Save As dialog

Postby J T » Wed Jun 30, 2010 7:26 pm

Hi,
I am experimenting with NovaPDF and this is something we are considering buying to use in our application. I looked at the C# sample that is provided int he above link, 'Save As' dialog still comes up. this is what I did
1. Add reference to interop.novaapilib.dll
2. Added the Globals.cs to my project
3. object declaration in the main class private NovaPdfOptionsClass mobjNovaOptios;
3. code in form load
mobjNovaOptios = new NovaPdfOptionsClass();
mobjNovaOptios.Initialize(PRINTER_NAME, "", "", "");
4. Code in Print_Click
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);
mobjNovaOptios.SetOptionString2(NovaOptions.NOVAPDF_SAVE_FILE, "sample_nova.pdf", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC);

my_viewer.Print() //this is our viewer and this function works.

So, PDF is created but 'Save As' dialog from Nova is still shown.
I am using evaluation version of SDK and novaPDF with SDK 7 printer.

Please let me know what i might be missing. This is very critical to my project.
Thanks and appreciate your help.

Support
Posts: 223
Joined: Wed Dec 16, 2009 12:46 pm
Location: Cluj-Napoca, Romania
Contact:

Re: Generating PDF files without the Save As dialog

Postby Support » Fri Jul 02, 2010 8:50 am

Hello,

You have also sent an e-mail to our support department. It will be attended.

pdfuser
Posts: 2
Joined: Wed Sep 15, 2010 3:32 am

Re: Generating PDF files without the Save As dialog

Postby pdfuser » Wed Sep 15, 2010 3:35 am

Hi,

I am experimenting with NovaPDF and this is something we are considering buying to use in our application. I looked at the C# sample that is provided in the above link, 'Save As' dialog still comes up. Please let me how can it be hidden. I want to convert the file to pdf internally without user interaction.

Also i am looking specific example for infopath to pdf conversion. please help with useful sample for the same.

Thanks

Support
Posts: 223
Joined: Wed Dec 16, 2009 12:46 pm
Location: Cluj-Napoca, Romania
Contact:

Re: Generating PDF files without the Save As dialog

Postby Support » Wed Sep 15, 2010 7:16 am

Hello,

Please access the following link to view how to hide the Save As dialog programmatically: http://www.novapdf.com/kb/novapdf-sdk-h ... g-139.html

For the infopath to PDF conversion, i am afraid we do not have an example script for the same. These are all the samples available: http://www.novapdf.com/en/samples-sdk.html

Thank you.

pdfuser
Posts: 2
Joined: Wed Sep 15, 2010 3:32 am

Re: Generating PDF files without the Save As dialog

Postby pdfuser » Wed Sep 15, 2010 2:37 pm

Thanks. I am able to hide the "Save As" dialog but moving further i want to generate PDF file without even "Print" dialog.
i want to automate the process of generating PDF file from infopath in the background by giving source file in the code.

Thanks

Support
Posts: 223
Joined: Wed Dec 16, 2009 12:46 pm
Location: Cluj-Napoca, Romania
Contact:

Re: Generating PDF files without the Save As dialog

Postby Support » Thu Sep 16, 2010 7:45 am

Hello,

novaPDF does not have other Print related dialogs except the Save as one.
So the Print you are getting now is from either the Infopath application or a 3rd party program you are using with it.
So i am afraid we cannot assist you on this issue as we do not offer support for 3rd party applications.

Thank you.


Return to “Developer Tools”