Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC:

package created from sample is Crashing 9 years 8 months ago #6889

  • Yeshveer
  • Yeshveer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hi ,
Can anyone in the support team help me overcome from the problem. I have been waiting since months for reply. how can we use the library in a crash free window 8 app development.

The package don't crash and would be able to make annotation on the pdf.

Please Log in or Create an account to join the conversation.

Last edit: by kobiz.

package created from sample is Crashing 9 years 8 months ago #6903

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
not know how to run the sample package.
in App.xaml.cs
at last of App.OnLaunched(), you shall add these codes:
String inst_path = Windows.ApplicationModel.Package.Current.InstalledLocation.Path;
PDFGlobal.SetCMapsPath(inst_path + "\\Assets\\cmaps.dat", inst_path + "\\Assets\\umaps.dat");
PDFGlobal.FontFileListStart();
PDFGlobal.FontFileListAdd(inst_path + "\\Assets\\font\\argbsn00lp.ttf");
PDFGlobal.FontFileListEnd();
int face_first = 0;
int face_count = PDFGlobal.GetFaceCount();
String fname = null;
while (face_first < face_count)
{
fname = PDFGlobal.GetFaceName(face_first);
if (fname != null && fname.Length > 0) break;
face_first++;
}
// set default font for fixed width font.
if (!PDFGlobal.SetDefaultFont("", "AR PL SungtiL GB", true) && fname != null)
PDFGlobal.SetDefaultFont("", fname, true);
// set default font for non-fixed width font.
if (!PDFGlobal.SetDefaultFont("", "AR PL SungtiL GB", false) && fname != null)
PDFGlobal.SetDefaultFont("", fname, false);
if (!PDFGlobal.SetAnnotFont("AR PL SungtiL GB") && fname != null)
PDFGlobal.SetAnnotFont(fname);
PDFGlobal.LoadStdFont(0, inst_path + "\\Assets\\font\\0");
PDFGlobal.LoadStdFont(1, inst_path + "\\Assets\\font\\1");
PDFGlobal.LoadStdFont(2, inst_path + "\\Assets\\font\\2");
PDFGlobal.LoadStdFont(3, inst_path + "\\Assets\\font\\3");
PDFGlobal.LoadStdFont(4, inst_path + "\\Assets\\font\\4");
PDFGlobal.LoadStdFont(5, inst_path + "\\Assets\\font\\5");
PDFGlobal.LoadStdFont(6, inst_path + "\\Assets\\font\\6");
PDFGlobal.LoadStdFont(7, inst_path + "\\Assets\\font\\7");
PDFGlobal.LoadStdFont(8, inst_path + "\\Assets\\font\\8");
PDFGlobal.LoadStdFont(9, inst_path + "\\Assets\\font\\9");
PDFGlobal.LoadStdFont(10, inst_path + "\\Assets\\font\\10");
PDFGlobal.LoadStdFont(11, inst_path + "\\Assets\\font\\11");
PDFGlobal.LoadStdFont(12, inst_path + "\\Assets\\font\\12");
PDFGlobal.LoadStdFont(13, inst_path + "\\Assets\\font\\13");
PDFGlobal.ActiveLicense(2, "Radaee", "radaeepdf@gmail.com", "YOOW28-VS57CA-H3CRUZ-WAJQ9H-5R5V9L-KM0Y1L");
last activation code binding to package name "2625.RadaeePDFReader"
and you need to copy cmaps.dat/umaps.dat/font sundir from Assets in Demo to your project.

and others, plz follow guide

Please Log in or Create an account to join the conversation.

Last edit: by .
  • Page:
  • 1
  • 2
Powered by Kunena Forum