Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Edit PDF Text |
Post Reply |
Author | |
nzcivic
Beginner Joined: 22 Mar 10 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 22 Mar 10 at 1:30AM |
Hi,
I want to be able to find and edit text on a page... I understand I can use the GetPageText to find the text I'm after, Now that I have the location etc... i need to edit the text. What is the best way... Can the text be edited directly? Can I recreate a new PDF with all the existing content except the "text" and then draw my new text? If so how? Thanks, Edited by nzcivic - 22 Mar 10 at 1:34AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
You can't edit the textcontent directly. You can extract the text and many pdf-properties, edit the extracted text and try to build a similar pdf-document. "If so... how": Here, in the general section you can find a thread "The first steps...". There you can read all you need. Cheers and welcome here, Ingo |
|
nzcivic
Beginner Joined: 22 Mar 10 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hi,
I have noticed that the GetPageText function returns the color in RGB even though my text in the PDF is saved as CMYK What is the best way to convert the RGB to CMYK? I use the following function below... but what I would like to know is the function used by Quick PDF to convert CMYK to RGB? that way it can be reversed to preserve color public class Cmyk { public double C { get; set; } public double M { get; set; } public double Y { get; set; } public double K { get; set; } public Cmyk(double r, double g, double b) { double R = 1.0 - r; double G = 1.0 - g; double B = 1.0 - b; if (R < G) { K = R; } else { K = G; } if (B < K) { K = B; } C = CalcCmyk(r, K); M = CalcCmyk(g, K); Y = CalcCmyk(b, K); } private static double CalcCmyk(double rgb, double k) { if (((1 - rgb - k) <= 0) || ((1 - k) <= 0)) { return 0; } return (1 - rgb - k) / (1 - k); } } Will this preserve the color 100% Thanks, |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store