![]() ![]() WatermarkSettings settings settings.flags = WatermarkSettings :: e_FlagASPageContents | WatermarkSettings :: e_FlagOnTop settings.offset _x = 0 settings.offset _y = 0 settings.opacity = 90 settings.position = common:: e_PosTopRight settings.rotation = -45.f settings.scale _x = 1.f settings.scale _y = 1.f WatermarkTextProperties text_properties text_ properties.alignment = CommonDefines :: e_AlignmentCenter text_ lor = 0xF68C21 text_properties.font_style = WatermarkTextProperties :: e_FontStyleNormal text_ properties.line _space = 1 text_properties.font_size = 12.f text_properties.font = Font( Font:: e_StdIDTimesB ) Watermark watermark( doc, L"Foxit PDF SDK\ntext_properties, settings) watermark.InsertToPage ( doc.GetPage (0)) // Save document to file. How to create a text watermark and insert it into the first page #include "include/common/ fs_common.h " #include "include/pdf/ fs_pdfdoc.h " #include "include/pdf/ fs_pdfpage.h " #include "include/pdf/ fs_watermark.h " using namespace foxit using namespace foxit :: common using foxit :: common::Library using namespace pdf. ![]()
0 Comments
Leave a Reply. |