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

Hello, how to create a two-layer pdf #38

Closed
lijianxin520 opened this issue Nov 15, 2022 · 3 comments
Closed

Hello, how to create a two-layer pdf #38

lijianxin520 opened this issue Nov 15, 2022 · 3 comments

Comments

@lijianxin520
Copy link

Hello, how to create a two-layer pdf? The bottom layer is text, and the top layer is pictures.

@arklumpus
Copy link
Owner

Hi! Do you mean a PDF with layers (i.e. "Optional Content") that can be turned on and off in a viewer (like this)? If so, this is currently not implemented in VectSharp.PDF, but I will think about it.

If you just want to draw text and pictures separately and then merge them (without any interactivity on the finished document), you can do this by creating two separate Graphics objects, one for text and the other for images, and then using the Graphics.DrawGraphics method to draw one on top of the other.

@lijianxin520
Copy link
Author

Thank you very much for your reply. What I need is a pdf with layers. The upper layer is the image and the lower layer is the content.Thank you again!

@arklumpus
Copy link
Owner

Hi! At long last, proper PDF layers (optional content groups) are now fully supported and documented in VectSharp.PDF 3.0.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants