GetAPIScopeReportJSON

التشخيص، فحص تدفق المحتوى، تحرير المستندات

الوصف

تُرجع تقرير JSON حتميًا عن انتهاكات نطاق الواجهة والنطاقات الزمنية النشطة حاليًا وتحقق محتوى الصفحة المحددة الاختياري

الصيغة

Delphi

Function TPDFlib.GetAPIScopeReportJSON(
  Options: Integer= PDF_API_SCOPE_INCLUDE_CONTENT): WideString;

ActiveX

Function PDFlib::GetAPIScopeReportJSON(Options As Long) As String

DLL

const wchar_t* DLGetAPIScopeReportJSON(int InstanceID, int Options);
const char* DLGetAPIScopeReportJSONA(int InstanceID, int Options);

المعاملات

Optionsصفر يُبلغ عن الحالة الزمنية والانتهاكات المحفوظة؛ ويفك PDF_API_SCOPE_INCLUDE_CONTENT أيضًا كل طبقات محتوى الصفحة المحددة

قيم الإرجاع

تُرجع JSON يحتوي علمي valid وbalanced الشاملين والمستند والصفحة المحددَين وcurrentScope وحقول الحاوية النشطة والعمق وأعداد انتهاكات الكل والمحفوظة والأحداث الزمنية المرتبة وكائن تحقق contentيشمل كل حدث زمني تسلسلًا رتيبًا ومستندًا وصفحة واسم واجهة ورمزًا ثابتًا ونطاقات متوقعة وفعلية ورسالة تشخيص

Content validation reports unmatched or unclosed q/Q, BT/ET, marked-content, and path sequences with token positionsReturns an empty string and sets LastErrorCode to 117 when Options contains unsupported bitsملاحظاتRuntime tracking has constant-time overhead on successful transitions and retains the latest 256 violations without allocating on ordinary drawing calls

تُرجع الانتقالات المتتبعة غير الصالحة صفرًا فورًا وتضبط q/Q‏ BT/ET

ClearAPIScopeReportOptions

ملاحظات

التتبع الزمني للتنفيذ كلفة زمن ثابتة على الانتقالات الناجحة ويحتفظ بآخر 256 انتهاكًا دون حجز في استدعاءات الرسم العادية

LastErrorCode 117

انظر أيضًا

ClearAPIScopeReport, GetAPIScopeReportJSONA, TraceGraphicsStates