Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: public/fpdfview.h

Issue 2608663003: Pdfium Patch to restore PS Path (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename
8 // despite lack of consistency with other public files. 8 // despite lack of consistency with other public files.
9 9
10 #ifndef PUBLIC_FPDFVIEW_H_ 10 #ifndef PUBLIC_FPDFVIEW_H_
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 #define FPDF_PRINTING 0x800 538 #define FPDF_PRINTING 0x800
539 // Set to disable anti-aliasing on text. 539 // Set to disable anti-aliasing on text.
540 #define FPDF_RENDER_NO_SMOOTHTEXT 0x1000 540 #define FPDF_RENDER_NO_SMOOTHTEXT 0x1000
541 // Set to disable anti-aliasing on images. 541 // Set to disable anti-aliasing on images.
542 #define FPDF_RENDER_NO_SMOOTHIMAGE 0x2000 542 #define FPDF_RENDER_NO_SMOOTHIMAGE 0x2000
543 // Set to disable anti-aliasing on paths. 543 // Set to disable anti-aliasing on paths.
544 #define FPDF_RENDER_NO_SMOOTHPATH 0x4000 544 #define FPDF_RENDER_NO_SMOOTHPATH 0x4000
545 // Set whether to render in a reverse Byte order, this flag is only used when 545 // Set whether to render in a reverse Byte order, this flag is only used when
546 // rendering to a bitmap. 546 // rendering to a bitmap.
547 #define FPDF_REVERSE_BYTE_ORDER 0x10 547 #define FPDF_REVERSE_BYTE_ORDER 0x10
548 // Set to compress output images, this flag is only used when the printer
549 // supports postscript level 2 and not postscript level 3.
550 #define FPDF_COMPRESS_IMAGES 0x20
548 551
549 #ifdef _WIN32 552 #ifdef _WIN32
550 // Function: FPDF_RenderPage 553 // Function: FPDF_RenderPage
551 // Render contents of a page to a device (screen, bitmap, or printer). 554 // Render contents of a page to a device (screen, bitmap, or printer).
552 // This function is only supported on Windows. 555 // This function is only supported on Windows.
553 // Parameters: 556 // Parameters:
554 // dc - Handle to the device context. 557 // dc - Handle to the device context.
555 // page - Handle to the page. Returned by FPDF_LoadPage. 558 // page - Handle to the page. Returned by FPDF_LoadPage.
556 // start_x - Left pixel position of the display area in 559 // start_x - Left pixel position of the display area in
557 // device coordinates. 560 // device coordinates.
558 // start_y - Top pixel position of the display area in device 561 // start_y - Top pixel position of the display area in device
559 // coordinates. 562 // coordinates.
560 // size_x - Horizontal size (in pixels) for displaying the page. 563 // size_x - Horizontal size (in pixels) for displaying the page.
561 // size_y - Vertical size (in pixels) for displaying the page. 564 // size_y - Vertical size (in pixels) for displaying the page.
562 // rotate - Page orientation: 565 // rotate - Page orientation:
563 // 0 (normal) 566 // 0 (normal)
564 // 1 (rotated 90 degrees clockwise) 567 // 1 (rotated 90 degrees clockwise)
565 // 2 (rotated 180 degrees) 568 // 2 (rotated 180 degrees)
566 // 3 (rotated 90 degrees counter-clockwise) 569 // 3 (rotated 90 degrees counter-clockwise)
567 // flags - 0 for normal display, or combination of flags 570 // flags - 0 for normal display, or combination of flags
568 // defined above. 571 // defined above.
569 // Return value: 572 // Return value:
570 // None. 573 // None.
571 DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, 574 DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc,
572 FPDF_PAGE page, 575 FPDF_PAGE page,
576 int driver_type,
573 int start_x, 577 int start_x,
574 int start_y, 578 int start_y,
575 int size_x, 579 int size_x,
576 int size_y, 580 int size_y,
577 int rotate, 581 int rotate,
578 int flags); 582 int flags);
579 #endif 583 #endif
580 584
581 // Function: FPDF_RenderPageBitmap 585 // Function: FPDF_RenderPageBitmap
582 // Render contents of a page to a device independent bitmap. 586 // Render contents of a page to a device independent bitmap.
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 // Function: FPDF_BStr_Clear 1019 // Function: FPDF_BStr_Clear
1016 // Helper function to clear a byte string. 1020 // Helper function to clear a byte string.
1017 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); 1021 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str);
1018 #endif // PDF_ENABLE_XFA 1022 #endif // PDF_ENABLE_XFA
1019 1023
1020 #ifdef __cplusplus 1024 #ifdef __cplusplus
1021 } 1025 }
1022 #endif 1026 #endif
1023 1027
1024 #endif // PUBLIC_FPDFVIEW_H_ 1028 #endif // PUBLIC_FPDFVIEW_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698