logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
madusmacus  
#1 Posted : Thursday, July 26, 2018 1:26:11 AM(UTC)
madusmacus

Rank: Newbie

Groups: Registered
Joined: 7/25/2018(UTC)
Posts: 6
United Kingdom

Although my Trial/Demo seems towork without this I am confused...

The documentation mentions...
Code:
public void LoadDocument()
{
    //Initialize the SDK library
    //You have to call this function before you can call any PDF processing functions.
    PdfCommon.Initialize();
}



Your online documentation (link found via google) mentions the args as...
httpx://pdfium.patagames.com/help/html/f148514e-dbac-f375-624d-48b2ca862028.htm
https://pdfium.patagames...75-624d-48b2ca862028.htm
cant use the link definer for above or my message gets rejected as spam :¬)

Code:
  // Warning C++/CLR syntax but it is supported ocoring to docs :¬) (thank god)
  using namespace Patagames::Pdf::Enums;
  using namespace Patagames::Pdf::Net;
  using namespace Patagames::Pdf::Net::Controls::WinForms;
  // Initialise key,pdf path,icu path
  PdfCommon::Initialize(nullptr,nullptr,nullptr);

This 3 argument version is the only version i can see and i cant see any simplified overload

Any ideas?

Mac

DO we even need this anymore as it seems to run fine (Demo mode only maybe)?

Many thanks

Edited by moderator Thursday, July 26, 2018 3:14:22 AM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Thursday, July 26, 2018 3:25:47 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
these parameters are optional,
You may do not pass them, or pass nullptr in demo mode.

And you should pass license key in the first parameter in registered mode.
https://forum.patagames....-I-enter-the-license-key

Also you may use licx file instead of passing license key to initialize method
https://pdfium.patagames...98-841d-d2fec616442f.htm
madusmacus  
#3 Posted : Thursday, July 26, 2018 3:29:42 AM(UTC)
madusmacus

Rank: Newbie

Groups: Registered
Joined: 7/25/2018(UTC)
Posts: 6
United Kingdom

Thank you for clearing that up but for your information....

1>Report.cpp
1>d:\develop\equipoise\progs\velpak\report.h(686): error C2660: 'Patagames::Pdf::Net::PdfCommon::Initialize': function does not take 0 arguments (compiling source file Report.cpp)
1>d:\develop\equipoise\progs\velpak\report.h(686): note: see declaration of 'Patagames::Pdf::Net::PdfCommon::Initialize' (compiling source file Report.cpp)
1>d:\develop\equipoise\progs\velpak\report.h(686): error C2660: 'Patagames::Pdf::Net::PdfCommon::Initialize': function does not take 0 arguments (compiling source file Main.cpp)
1>d:\develop\equipoise\progs\velpak\report.h(686): note: see declaration of 'Patagames::Pdf::Net::PdfCommon::Initialize' (compiling source file Main.cpp)

Which is why i got all confused

But the 3 nullptr and licx will doo fine :¬)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.