PDF with signature, watermarks, letterhead, and merging
jacobreinholdt
Member Posts: 9
Hi!
I am writing this post to help all the NAV developers out there that uses the BioPDF or Bullzip PDF Printer to create advanced PDF documents from NAV reports. Many of you have written to me in the past to get help with PDF creation in NAV. Finally, I have created an example to illustrate how to work with the Bullzip PDF Printer from NAV.
The example will show you how to:
(*) Control a loop where multiple documents are created. This is about flow control and error handling. Also making sure that the right PDF settings goes to the right print job.
(*) Signing a PDF with a digital certificate.
(*) Writing on top of another PDF as a letterhead.
(*) Merging with other PDF documents.
(*) Printing without showing dialogs.
All this is published at http://www.bullzip.com/products/pdf/doc ... s/info.php
Please note that this example uses the version that is currently in beta. Until it is publicly released, it can be downloaded here:
http://www.bullzip.com/products/pdf/beta.php
You are welcome to post me questions here or use the contact form on my web site
Best regards,
Jacob
I am writing this post to help all the NAV developers out there that uses the BioPDF or Bullzip PDF Printer to create advanced PDF documents from NAV reports. Many of you have written to me in the past to get help with PDF creation in NAV. Finally, I have created an example to illustrate how to work with the Bullzip PDF Printer from NAV.
The example will show you how to:
(*) Control a loop where multiple documents are created. This is about flow control and error handling. Also making sure that the right PDF settings goes to the right print job.
(*) Signing a PDF with a digital certificate.
(*) Writing on top of another PDF as a letterhead.
(*) Merging with other PDF documents.
(*) Printing without showing dialogs.
All this is published at http://www.bullzip.com/products/pdf/doc ... s/info.php
Please note that this example uses the version that is currently in beta. Until it is publicly released, it can be downloaded here:
http://www.bullzip.com/products/pdf/beta.php
You are welcome to post me questions here or use the contact form on my web site
Best regards,
Jacob
0
Comments
-
Hi Jacob,
Thanks for the write-up, I find your pdf-software very useful.
I have not tried to implement your example, but looking at the code, it seems you assume that the default printer on the system is the pdf-printer or that it's set up as the printer for report 206 in the Printer Selection table.
I've found it useful to make sure there's a record in the Printer Selection table for the report being used and the user executing the code to ensure that the correct printer is used.
Something like this works:PrinterSelection.SETRANGE("User ID",USERID); PrinterSelection.SETRANGE("Report ID",ReportID); //ReportID is passed as a parameter to the function IF PrinterSelection.FINDFIRST THEN BEGIN //There's already a printer setup, we back it up TempPrinterSelection := PrinterSelection; TempPrinterSelection.INSERT; PrinterSelection.DELETE; END; CLEAR(PrinterSelection); PrinterSelection.init; PrinterSelection."User ID" := USERID; PrinterSelection."Report ID" := ReportID; Printer.SETRANGE(Name,'Bullzip PDF Printer'); //Perhaps this should be changed to use your pdfUtil.DefaultPrinterName IF Printer.FIND('=<>') THEN PrinterSelection."Printer Name" := Printer.ID ELSE ERROR(T001,'Bullzip PDF Printer'); //T001 = 'The printer %1 is not available.\\Please contact ...' PrinterSelection.INSERT;
PS. The Printer Selection table is also mentioned in one of the NAV design patterns published on Dec 19th, great work towards standardized approaches to customization and add-ons.
Thanks and happy holidays,Best regards Poul Anker Gensmann
http://www.gbusiness-solutions.com0 -
Thank you for your comment on the printer selection

/Jacob0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions