CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

PDFViewer and CGRemoveSlash

by assapan » 04 Nov 2015 11:15

Hi,
I use PDFViewer.JQPDFViewerOptions.PDFFileName as a variable to check if i have to render or not my page , so if you set JQPDFViewerOptions.PDFFileName:='' and exception is fired due to CGRemoveSlash.

Could you please change CGRemoveSlash from
Code: Select all
function CGRemoveSlash(const Link: string): string;
begin
  Result:= Link;
  if (Result[1] = '/') then
      System.Delete(Result,1,1);
end;


to
Code: Select all
function CGRemoveSlash(const Link: string): string;
begin
  Result:= Link;
  if (Length(Result)>0) and (Result[1] = '/') then
      System.Delete(Result,1,1);
end;


thanks :mrgreen:
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

Return to General

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.