need to call the enable printer each time PDF.FileNameOptions = (int) sNoPrompt sUseFileName PDF.SetDefaultConfig () //need to call this to apply changes PDF.DefaultFileName = () "\\myfile.pdf" Set output directory and output filename Below is a sample code snippet that demonstrates this.ĬDIntf.CDIntfControl PDF = new CDIntf.CDIntfControl () Net wrapper of cdintf (), yes it is still under development, but the output filename settings are exposed in the. The developer no longer requires to manually do this.įor the. Our DevTeam is looking into this issue.Ĭoncerning the installation under 64-bits and the port issue, we just uploaded a new version of the PDF Converter that will automatically create the NUL: port and attach the printer to the NUL: port under 64bit systems. I will copy here the reply of our support team in case some other users are facing the same issuesĬoncerning the XPS files, the problem is in the way these specific documents are handled for displaying in the creator control and not with the saving. I will forward the XPS file for each of the 3 trials noted in the original post, along with the resulting PDF obtained from both Creator and Convertor, to the email address you listed. Finally, I was able to generate PDF documents, but due to the fact that the CDIntfNet300.dll is apparently still under development and is lacking several features I was unable to programmatically set the output file name (therefore I am manually prompted every time) and was unable to specify to embed fonts (which may be why the resulting PDFs appear to have the wrong font).ĭue to the complications I encountered with PDF Converter (and the additional complexity of installing and using it), it still seems that PDF Creator would be a cleaner, more desirable solution. Then, all PDF documents I attempted to generate came out to be 0 bytes in size - but I eventually found an old post from another member on this forum which said I would need to manually reconfigure the printer to use the FILE port instead of LPT1. Then, it was not clear where to obtain the license code for the evaluation version, but eventually I found it. First, I did not immediately realize that I would require the CDIntfNet300.dll (mentioned at the end of the documentation) so I was trying to make use of the COM interface (cdintf.dll), which didn't appear to work from C#. I encountered several problems getting it to work. Nevertheless, per your suggestion, I decided to try it. There are a variety of reasons I did not initially wish to use the PDF Converter. In the properties of the file, I see the following version-related information:Īs I mentioned, I downloaded this direct from the Amyuni site just a few days before the original post. I would much appreciate any advice from the Amyuni staff or other users. Perhaps I am improperly using the library. I should also note that I have tried using the text search feature to see if the expected text was in fact present in the PDF file, just not visible, and I was not able to find any of my expected text in either document (only the watermarked Amyuni copyright notice text that is stamped by the developer trial version was present). However, interestingly, the dark green color behind all of the text *is* present, and the color *is* arranged just as in the input document. Output PDF document: A 5-page document containing no text. Due to my personal color settings in Visual Studio, there is a dark green background where any text appears. Input XPS document: A 5-page printout of C# code, printed from Visual Studio 2008 through the Microsoft XPS Document Writer. Output PDF document: A 1-page blank document. The only content is the text "Hello World!" with no font specified (so as to use the default). Input XPS document: A 1-page simple document I created for text purposes. Output PDF document: A 2-page document however, each page is blank - except for a small, solid black rectangle in the upper left corner of each page, and except that the image in the header appears on both pages in the right spot. Input XPS document: A 2-page document generated by my application, which consists entirely of tables and text, save for an image in the header. Stream pdf = File.Create("PdfDocument.pdf") ĭoc.Save(pdf, IacFileSaveOption.acFileSaveView) Īnd here are the trials I conducted, and the results: Code: Select all acPDFCreatorLib.Initialize()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |