Online PDF Editing function by ModifyPDF SDK

Hi,

It seems you have back to “Modify Text Part in Image” again, VeryPDF_ModifyPDF_ModifyText() function is can only modify text part in PDF file, it can’t modify text in image, if you wish modify text in image, you need write the relative source code by yourself.

Please refer to following screenshot, this is our PDF Editor product, the user can draw a textbox on PDF page, input text contents, after user finished the modification, he can save this PDF file to a new PDF file, maybe you need a function like this,

I suggest you may try to write the source code to modify image by yourself (or draw a new text layer on original image), it is not necessary to modify PDF file during image modification, this will improve the speed a lot, after user finished the modification and want to save it, you can deliver the modified text information to VeryPDF_ModifyPDF_ModifyText() function, than our ModifyPDF SDK will modify real PDF file again, we hoping this solution will helpful to you.

VeryPDF
=================================
Hello,
Thanks for your suggestions. I have certainly thought about it and even prototyped it too (see attached).
But here is a problem with my own image modification solution:
The ParsePDFSDK does not provide me any information on fonts used on PDF page. I have no information on font size, font type font color, etc.
Therefore my image edits will look much different comparing to the result of ModifPDFSDK edits.

I would like to show user two scenarios:
3. Proposed Edits: Where oldText and newText is shown on the image on the same time. I was able to accomplish this (see attached).
4. Final Product: In this case, only the newText will be shown. With the current version of ModifyPDFSDK, I can do that only when I write changes to the file and read back edited pages. Clearly that takes processing time and I am not satisfied with the results.

I can think of two methods to solve this problem:
3. You will have to be sure that PDFParseSDK (Phase I) delivers to me all necessary information for me to edit the image.
4. You update ModifyPDFSDK to give me the “Final Product” image of the PDF page without writing it to the file.
Which one of these two methods will work better?
=================================
Thanks for your message, I think your "Proposed Edits" solution is good, you can always use "Arial" and "Red Color" to show the new text on screenshot, after user finished the change, you can call ModifPDFSDK to create the final PDF file, this solution can be done easily, MS Word does use this solution to comment a Word document too,

~~~~~~~~~
1. Proposed Edits: Where oldText and newText is shown on the image on the same time. I was able to accomplish this (see attached).
~~~~~~~~~

>>2. Final Product: In this case, only the newText will be shown. With the current
>>version of ModifyPDFSDK, I can do that only when I write changes to the file and
>>read back edited pages. Clearly that takes processing time and I am not satisfied
>>with the results.

This solution can't be done easily, "write changes to the file and read it back" will take too long time, it will cause bad experience to users. From my personal opinion, I think your "1. Proposed Edits:" solution is good, because you can control everything in this solution.

>>I can think of two methods to solve this problem:
>>1. You will have to be sure that PDFParseSDK (Phase I) delivers to me all necessary information for me to edit the image.
>>2. You update ModifyPDFSDK to give me the “Final Product” image of the PDF page without writing it to the file.
>>Which one of these two methods will work better?

These two methods are all not too good, for the "#1, font information", if your PDF file does use an embedded font, this font is not installed in your system, how do you handle this case? So, if you can use fixed "Arial" or "Red Color" to show the new text, that's would be good.

For the "2. You update ModifyPDFSDK" solution, it will spend long time to generate the new image, in general, it will spend 2~3 seconds to convert a PDF page to image, however, if your PDF page contains lots of complicated objects and drawing, it will take more time, 10 seconds or 20 seconds or more, it is not good for the user's experience.

From these consideration, I think the following solution is good,

1. Proposed Edits: Where oldText and newText is shown on the image on the same time. You can accomplish this (see attached).
2. Use "Arial" and "Red Color" to show the new text, the user can see new text and old text be clear at a glance.

What is your thought for this method?

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!