Re: Styled Text and QPDF Plugin

2018-06-18 Thread Cannon Smith via 4D_Tech
Hi Kirk,

Yes, I did talk to Rob. He was the one that directed me to the QPDF Draw Text 
command and the embedded possibilities. I was thinking the same as you—that it 
should be possible, but a lot of code. That’s why I was asking if anyone had 
already tackled it. I’d be willing to trade some code with anyone who had done 
this.

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Jun 18, 2018, at 1:57 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I've been working with QPDF a lot recently. I took a look at that and it
> seemed pretty daunting. Have you asked Rob about it? There may be some
> subsection of DynaPDF (the package it's built on) to do such transforms.
> 
> It certainly seems possible to take the raw text, with the markup, and
> write something to transform the styles into the inline style options QPDF
> supports. Depending on how complex your pages are and how you need to place
> the text on the page it could work. In my case I needed to fit text into
> fairly specific areas which required calculating how much space text
> required prior to placing it. This would be very difficult, I think. But if
> you don't need that sort of fussy control probably more doable.
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Styled Text and QPDF Plugin

2018-06-18 Thread Kirk Brooks via 4D_Tech
Hi Canon,
I've been working with QPDF a lot recently. I took a look at that and it
seemed pretty daunting. Have you asked Rob about it? There may be some
subsection of DynaPDF (the package it's built on) to do such transforms.

It certainly seems possible to take the raw text, with the markup, and
write something to transform the styles into the inline style options QPDF
supports. Depending on how complex your pages are and how you need to place
the text on the page it could work. In my case I needed to fit text into
fairly specific areas which required calculating how much space text
required prior to placing it. This would be very difficult, I think. But if
you don't need that sort of fussy control probably more doable.

On Mon, Jun 18, 2018 at 11:55 AM Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Everyone,
>
> Has anyone written code that would take a 4D styled text variable, parse
> out the different styles in it, and convert them to tags that can be
> embedded into text to be used with Rob’s QPDF Draw Text plugin command?
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> 
> 
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**