PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 5:32 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Apr 01, 2008 10:16 am 
Offline

Joined: Tue Apr 01, 2008 10:10 am
Posts: 4
Hello,

Does someone have code to do the following.

1) Go through a PDF document and look for string with value
say %TEMPLATE_TEXT%
2) Replace this %TEMPLATE_TEXT% with SomeText and
save the changed pdf document.

Basically I want to write an application which would read a TemplatePDF document, replace some Text contents of the TemplatePDF and
generate new PDF file with changed Text.

Regards, Yogesh


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 02, 2008 3:17 pm 
Offline

Joined: Fri Mar 23, 2007 11:37 pm
Posts: 16
Location: Berlin
hi there, i wouldnt use that low-level approach as its very dirty. for example multiple lines cannot be found easily.

in fact you could load the pdf, decompress the pdf-markup, look for text-groups and replace it. but i'd recommend creating the document using migradoc and then applying the template data.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 16, 2008 11:41 pm 
Offline

Joined: Mon Jun 16, 2008 11:06 pm
Posts: 2
I've been looking for a way to decompress the markup as stated in the previous reply. But have been unable to find a way to do this. Could someone elaborate on this.


Top
 Profile  
Reply with quote  
 Post subject: Same Problem
PostPosted: Thu Sep 04, 2008 3:37 am 
Offline

Joined: Thu Sep 04, 2008 3:35 am
Posts: 1
I have a similiar issue. I'd like to do this because I have a graphic designer that creates the templates, and then leaves them for me to load to a website, the only thing I can find is text strings, since they are using graphic design tools to generate the PDF.


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 21, 2009 3:35 pm 
Offline

Joined: Wed Oct 21, 2009 3:21 pm
Posts: 3
I would also like to see more details on how to achieve this. Would be great!


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 30, 2009 3:41 pm 
Offline

Joined: Fri Oct 30, 2009 3:38 pm
Posts: 2
I want to know if it's possible to do this too ....

If not do you know a tool I can use in .net to open a pdf, replace some text in it and save the PDF ...

Thanx !


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 377 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group