 Chromium Code Reviews
 Chromium Code Reviews Issue 1960193003:
  pdfium_test: print out some annotations 
  Base URL: https://pdfium.googlesource.com/pdfium.git@master
    
  
    Issue 1960193003:
  pdfium_test: print out some annotations 
  Base URL: https://pdfium.googlesource.com/pdfium.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 
| 6 | 6 | 
| 7 #ifndef PUBLIC_FPDF_DOC_H_ | 7 #ifndef PUBLIC_FPDF_DOC_H_ | 
| 8 #define PUBLIC_FPDF_DOC_H_ | 8 #define PUBLIC_FPDF_DOC_H_ | 
| 9 | 9 | 
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" | 
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 | 164 | 
| 165 // Get the page index of |dest|. | 165 // Get the page index of |dest|. | 
| 166 // | 166 // | 
| 167 // document - handle to the document. | 167 // document - handle to the document. | 
| 168 // dest - handle to the destination. | 168 // dest - handle to the destination. | 
| 169 // | 169 // | 
| 170 // Returns the page index containing |dest|. Page indices start from 0. | 170 // Returns the page index containing |dest|. Page indices start from 0. | 
| 171 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, | 171 DLLEXPORT unsigned long STDCALL FPDFDest_GetPageIndex(FPDF_DOCUMENT document, | 
| 172 FPDF_DEST dest); | 172 FPDF_DEST dest); | 
| 173 | 173 | 
| 174 // Get the (x, y) location of |dest| in the destination page, if the | |
| 175 // destination is in [page /XYZ x y zoom] syntax. | |
| 
Lei Zhang
2016/05/23 16:47:32
What about the zoom value?
 | |
| 176 // | |
| 177 // dest - handle to the destination. | |
| 178 // x - out parameter; the x coordinate, in the page coordinate system. | |
| 179 // y - out parameter; the y coordinate, in the page coordinate system. | |
| 180 // | |
| 181 // Returns TRUE on success. | |
| 182 DLLEXPORT FPDF_BOOL STDCALL FPDFDest_GetLocationInPage(FPDF_DEST dest, | |
| 183 FS_FLOAT* x, | |
| 184 FS_FLOAT* y); | |
| 185 | |
| 174 // Find a link at point (|x|,|y|) on |page|. | 186 // Find a link at point (|x|,|y|) on |page|. | 
| 175 // | 187 // | 
| 176 // page - handle to the document page. | 188 // page - handle to the document page. | 
| 177 // x - the x coordinate, in the page coordinate system. | 189 // x - the x coordinate, in the page coordinate system. | 
| 178 // y - the y coordinate, in the page coordinate system. | 190 // y - the y coordinate, in the page coordinate system. | 
| 179 // | 191 // | 
| 180 // Returns a handle to the link, or NULL if no link found at the given point. | 192 // Returns a handle to the link, or NULL if no link found at the given point. | 
| 181 // | 193 // | 
| 182 // You can convert coordinates from screen coordinates to page coordinates using | 194 // You can convert coordinates from screen coordinates to page coordinates using | 
| 183 // |FPDF_DeviceToPage|. | 195 // |FPDF_DeviceToPage|. | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, | 288 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, | 
| 277 FPDF_BYTESTRING tag, | 289 FPDF_BYTESTRING tag, | 
| 278 void* buffer, | 290 void* buffer, | 
| 279 unsigned long buflen); | 291 unsigned long buflen); | 
| 280 | 292 | 
| 281 #ifdef __cplusplus | 293 #ifdef __cplusplus | 
| 282 } // extern "C" | 294 } // extern "C" | 
| 283 #endif // __cplusplus | 295 #endif // __cplusplus | 
| 284 | 296 | 
| 285 #endif // PUBLIC_FPDF_DOC_H_ | 297 #endif // PUBLIC_FPDF_DOC_H_ | 
| OLD | NEW |