Unsolved Using existing pdf file?
-
Hi @mrjj ,
I think using extra command line is not clean way to solve this... :(Regards,
Mucip:) -
@Mucip
Hi
Well it worked pretty flawless for years for me.
pdftk is really high quality.
But yes, it's not as smooth as having
the feature directly in the app.
It was just a suggestion as editing a pdf is
hard to archive for free.Have you considered just use an SVG file as the template ?
-
Hi @mrjj ,
Ofcourse. Why not? I may prepare some template with Inkscape. No problem...
Well, How???..Regards,
Nucip:) -
@Mucip
Hi
Was thinking on inkscape :)
You can get positions of SVG elements with
http://doc.qt.io/qt-5/qsvgrenderer.html#boundsOnElement
so its possible to load the SVG and find out where placeholders are and then
first draw SVG template , then draw the text in place holders positions.
and then save it all as pdf.
SVG looks good in all resolutions.Please notice that Inkscape kinda flips the y coordinates, so google that as
it fooled me a bit. -
Hi @mrjj ,
How can I prepare some template with text input?
As I understant from your post SVG elements need to be put on template and I don't know about this.
I will check google how to work with SVG elements.By the way do you have sample SVG file or manual to do your suggestion?
Regards,
Mucip:) -
Hi @bougti ,
I couldn't understand why I need this?...Regards,
Mucip:) -
@Mucip It was a spam post.
-
Hi @SGaist
What a strange guys?! :(
I couldn't understand what is the benefit of this beheviour?Regards,
Mucip:) -
Trying to lure people going on their fishy website for who knows what.
Some are tricky to detect.
-
@Mucip said in Using existing pdf file?:
-
How can I prepare some template with text input?
Draw it using inkscape.
Each element of page has an ID. ( and you can change it to something more easy to read)
So place a rect, where you want the USER text to be put.
Set the ID of this rect to something that make sense. ( name of what text is for)
Then from Qt, you can use http://doc.qt.io/qt-5/qsvgrenderer.html#boundsOnElement
to find the place rect again and then draw the USER text there.
So first draw the SVG template, then draw USER text at the ID locations and
save it all as pdf. -
As I understant from your post SVG elements need to be put on template and I don't know about this.
Well the template is the SVG file and you just use a rect as place holder to where text goes.
-