Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › RGB Font color pdf stamper
- This topic has 5 replies, 2 voices, and was last updated 3 years, 2 months ago by wzp.
-
AuthorPosts
-
August 26, 2021 at 11:19 am #83573support2Spectator
Hello all, I did a search on the forum and did find a few threads regarding my question but none answered my specific question. From the search i concluded that the plugin cannot handle/produce a variety set of colors when stamping but only the basic ones.
Our team wants to stamp in gray rather than black or white. What is the RGB code to stamp in gray? (gray is considered a basic/standard color right?)
FYI, when we try changing the rgb values, 90% of the time it stamps in white.
August 26, 2021 at 3:11 pm #83574wzpModeratorHave you tried 127|127|127 (hex 7F7F7F)?
August 26, 2021 at 5:17 pm #83575support2SpectatorThanks for your reply but I just did try and still coming out white. I also tried the hex but still white and probably not even accepting it as hex(unless it does?). I know it is reading/accepting the RGB values since we got a pink color from some of our testing and yes for each red, green, and blue when using the appropriate values(eg. 0,0,1 to get it to print blue)
Can the font color be modified/manipulated in the stamping code somehow?
August 26, 2021 at 6:35 pm #83576wzpModeratorCan the font color be modified/manipulated in the stamping code somehow?
Look in the vicinity of line 227 in the file: pdf_stamp_settings_page.php
September 1, 2021 at 9:50 am #83619support2SpectatorThanks for your reply. I didnt look further but the only file i found with that name was in the root plugin folder and the line didnt correspond to font color(maybe because i was using notepad?). I did a search inside the file and found the section for font color, however, this does not look like the code of when the file gets stamped, this looks like the code of the settings page, which is the same as what is in wordpress plugin settings page.
Is there another file that has the code of the stamping – if this code is off limits, please let me know so i can report this to my higher ups and we will have to stick with black.
September 1, 2021 at 2:55 pm #83620wzpModeratorThe line numbers were based on using the Vim (or Vi) *nix editor. Lines 224 through 226 read the desired RGB colors from the input form. Lines 441 through 443 set the RGB colors (including the black default). That is the only interaction the plugin has, with the 3rd party PDF library. If you wanted to try hard coding values, I’d try line 441-443. Once the values are set, all further stamps use those RGB colors.
- This reply was modified 3 years, 2 months ago by wzp.
-
AuthorPosts
- You must be logged in to reply to this topic.