Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change APIs for IDocumentRenderer #27

Open
clown opened this issue Nov 22, 2021 · 0 comments
Open

Change APIs for IDocumentRenderer #27

clown opened this issue Nov 22, 2021 · 0 comments
Labels
cubepdf sdk CubePDF SDK topics feature Add or improve features

Comments

@clown
Copy link
Member

clown commented Nov 22, 2021

A Page object may require read access to the dependent PDF library (PDFium, iText, etc), which may degrade performance. Therefore, we will change the API of the IDocumentRenderer interface as follows

6.0.0 (current version)

void Render(Graphics dest, Page page, PointF point, SizeF size);
Image Render(Page page, SizeF size);

7.0.0

void Render(Graphics dest, int pagenum); // may be extended method.
void Render(Graphics dest, int pagenum, Angle delta);

Image Render(int pagenum); // may be extended method.
Image Render(int pagenum, Angle delta); // may be extended method.
Image Render(int pagenum, double scale, Angle delta);
Image Render(int pagenum, SizeF box, Angle delta);

We will define methods of the current version as extended methods (Cube.Pdf.Mixin namespace).

@clown clown added feature Add or improve features cubepdf sdk CubePDF SDK topics labels Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cubepdf sdk CubePDF SDK topics feature Add or improve features
Projects
None yet
Development

No branches or pull requests

1 participant