by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 03 08:37

    pgundlach on develop

    Server mode: specify mode in th… Version 3.9.20 (compare)

  • Jul 01 11:12

    pgundlach on develop

    Enhance HTML support * current… Version 3.9.19 (compare)

  • Jun 25 09:56

    pgundlach on develop

    Better HTML support Version 3.9.18 (compare)

  • Jun 22 11:52

    pgundlach on develop

    CSS border-radius Version 3.9.17 (compare)

  • Jun 15 12:30

    pgundlach on develop

    D: speed up documentation gener… D: new screenshot atom editor, … (compare)

  • Jun 13 08:39

    pgundlach on develop

    B: qrcade updated from upstream… (compare)

  • Jun 12 11:35

    pgundlach on develop

    Enhance documentation: lightbox… B: HTML in <Textblock> Version 3.9.16 and 1 more (compare)

  • Jun 11 09:01

    pgundlach on develop

    D: control layout when starting… (compare)

  • Jun 11 07:28

    pgundlach on develop

    D: New chapter 'table of conten… M: Fix links in Readme Version 3.9.15 and 1 more (compare)

  • Jun 10 06:42

    pgundlach on master

    Make singlepasstoc run again (compare)

  • Jun 08 05:20

    pgundlach on develop

    More translations/link/epub fix… (compare)

  • Jun 03 13:00

    pgundlach on develop

    Automatic translation from Germ… Update English manual (compare)

  • Jun 01 13:21

    pgundlach on develop

    M: Image link in README (compare)

  • Jun 01 13:19

    pgundlach on develop

    Update nsis installer helper Showcase now in English (compare)

  • May 29 17:41

    pgundlach on develop

    New English manual The content… (compare)

  • May 19 09:25

    pgundlach on develop

    HTML inline border Bugfix ignore newline Bugfix losing text Somehow thi… and 2 more (compare)

  • May 18 08:15

    pgundlach on develop

    Include example image in readme (compare)

  • May 15 09:58
    pgundlach commented #254
  • May 15 09:57
    pgundlach closed #254
  • May 15 09:57

    pgundlach on develop

    Different way to find the execu… Version 3.9.13 (compare)

Michael Dovgal
@michaelDovgal
Hi Patrick. Is this repository still alive? https://software.speedata.de/download/public 404 when trying to access
Patrick Gundlach
@pgundlach
Hi @michaelDovgal yes, I just moved the server. So I probably made a mistake and I will fix that. Thank you for your message, I will get back to you as soon as possible.
Michael Dovgal
@michaelDovgal
@pgundlach , great. and thank you for a such a quick response!
Patrick Gundlach
@pgundlach
@michaelDovgal It works for me now, could you try again?
Michael Dovgal
@michaelDovgal
@pgundlach sorry for a delay. yes, it works for me as well. Thanks!
Patrick Gundlach
@pgundlach
@michaelDovgal Thank you for the report and the feedback!
Mihail-Cosmin Munteanu
@MihailCosmin
Hello, does the speedata publisher have any features to support internal links in the PDF from one page to another?
Patrick Gundlach
@pgundlach
@MihailCosmin yes, since yesterday evening. I still have to publish a new version and will do so today.
Mihail-Cosmin Munteanu
@MihailCosmin
Thanks for the quick answer. Looking forward for the update.
Patrick Gundlach
@pgundlach
<Layout
  xmlns="urn:speedata.de:2009/publisher/en"
  xmlns:sd="urn:speedata:2009/publisher/functions/en"
  version="3.3.8">

  <Record element="data">
    <PlaceObject>
      <Textblock>
        <Action>
          <Mark select="'dest'" pdftarget="yes"/>
        </Action>
        <Paragraph>
          <Value>This is the target.</Value>
        </Paragraph>
      </Textblock>
    </PlaceObject>
    <NewPage/>
    <PlaceObject>
      <Textblock>
        <Paragraph>
          <A link="dest">
            <Value>This is a link to dest</Value>
          </A>
        </Paragraph>
      </Textblock>
    </PlaceObject>
  </Record>
</Layout>
@MihailCosmin With the new version at https://download.speedata.de/ you can use the above code to create internal links.
This is not heavily tested, so any error reports are welcome!
Mihail-Cosmin Munteanu
@MihailCosmin
@pgundlach Thanks so much, it works like a charm.
But for some reason the link is enclosed in a box, and I don't have any setting for that. Also, I tried removing the box with CSS, but with no success.
Is there any reason for the box, and is there a way to remove it?
Patrick Gundlach
@pgundlach
@MihailCosmin I develop with Skim as my pdf viewer, no boxes there. Then I opened my pdf in Acrobat and, surprise, visible boxes. I will remove them soon, once I find out what to do (can’t be too difficult)
Expect an update next days. I’ll report back
Patrick Gundlach
@pgundlach
@MihailCosmin fixed in 3.3.9 which is online now
Mihail-Cosmin Munteanu
@MihailCosmin
@pgundlach Thanks, indeed the border around the links doesn't show in Acrobat anymore.
One more thing that might occur because I use Acrobat. For the Bookmarks I add the setting open="yes" but when I open the PDF in Acrobat all Bookmarks are closed.
Patrick Gundlach
@pgundlach
@MihailCosmin I’ll have a look
iclukas
@iclukas
Hi! I think it would be nice to have the <Loop> element available at the top level. E.g. to create a batch of colours. At the moment I nest the loop inside a <Switch>. Also, <SetVariable> would be really handy inside <Pagetype> definitions. Right now I’m using a mess like this column="{(sd:number-of-columns() - 5) div 2 + 5 + 1 + ((sd:number-of-columns() - 5) div 2 - 5) div 2 + 5}"
Patrick Gundlach
@pgundlach
@iclukas Could you open a ticket for that? Just copy/paste this text there and I won't forget.
@iclukas The first should be done easily, the Pagetype probably not so
iclukas
@iclukas
NP. I just wanted to hear your thoughts first
iclukas
@iclukas
I just noticed that it’s possible to use negative numbers with substring(). Though not XPath-compatible, I think this should be noted in the docs.
Patrick Gundlach
@pgundlach
Good idea. I hope I remember that tomorrow
ViWaldi
@ViWaldi
Hallo Patrick,
ich habe folgendes Problem. Ich will eine Tabelle ausgeben, bei der einige Felder über mehrere Seiten gehen können. Nun steht es in der Hilfe, dass einzelne Zellen nicht umgebrochen werden. Welche Möglichkeiten habe ich um die Felder trotzdem ausgeben zu können (auch über mehrere Seiten)? Kann ich mit dem Output-Befehl innerhalb der Tabelle arbeiten?
Patrick Gundlach
@pgundlach
@ViWaldi Mit Tabellen ist das nicht möglich. Da ist eine Zeile unzerteilbar. Da müsste man ggf. über andere Mechanismen arbeiten, sofern möglich
ViWaldi
@ViWaldi
@pgundlach Habe jetzt mit dem Ouput-Befehl experimentiert, der mir die Daten über mehrere Seiten ausgibt, aber da kann ich z.B. kein Rahmen ziehen oder Daten vertikal ausrichten usw. Hast du noch andere Vorschläge, wie man solche Daten ausgeben kann?
Patrick Gundlach
@pgundlach
@ViWaldi Ich kenne die genauen Umstände nicht. Mit ein wenig Glück kann man sich die Positionen merken (wo fange ich an, wo höre ich auf) und bei AtPageShipout die Rahmen zeichnen. Aber das kommt auf die Umstände an.
ViWaldi
@ViWaldi
@pgundlach Der Hintergrund ist, dass unsere Kunden Rechnungen, Lieferscheine, Aufträge etc. beim Positionstext manchmal mehrere Seiten Text eingeben. Und genau da fällt es mir jetzt auf die Füsse. Es wäre cool, wenn man bei der Zeilendefinition Trein Attribut eingeben könnte, dass die Zeile umgebrochen werden kann.
neolithos
@neolithos
Wir sind unter 03521 8230130 erreichbar. https://tecware-gmbh.de/impressum.html
Ca. 12uhr sollte ich erreichbar sein.
iclukas
@iclukas

Reminder ;)

I just noticed that it’s possible to use negative numbers with substring(). Though not XPath-compatible, I think this should be noted in the docs.

Patrick Gundlach
@pgundlach
@iclukas I will document this
iclukas
@iclukas
I’m currently playing around with the circle / ellipse code and am wondering if a circle should be an ellipse if the grid is not square-based
iclukas
@iclukas
I see my mistake. It’s radiusx, so all is fine.
iclukas
@iclukas
Hi again. I’m having trouble using the --extra-xml option. I would like to use it for including extra font definitions. Obviously (from the code) they are appended to the main XML so this won’t work. For now, I append the main XML to --extra-xmland use an empty layout to have full control about inclusion order, but it just doesn’t feel right. What do you think?
Patrick Gundlach
@pgundlach
@iclukas I think you can use them for this purpose. They are (as you have written) read in the order of appearance after the main layout file. But all the global stuff (including the extra layout files) is executed before the data processing starts. So this works for me:
layout.xml
<Layout
  xmlns="urn:speedata.de:2009/publisher/en"
  xmlns:sd="urn:speedata:2009/publisher/functions/en">

  <Record element="data">
    <PlaceObject>
      <Textblock>
        <Paragraph>
          <Value>Hello world</Value>
        </Paragraph>
      </Textblock>
    </PlaceObject>
  </Record>
</Layout>

data.xml:

<data></data>

dejavu.xml:

<Layout
  xmlns="urn:speedata.de:2009/publisher/en">

  <LoadFontfile name="DejaVuSerif" filename="DejaVuSerif.ttf" />
  <LoadFontfile name="DejaVuSerif-Bold" filename="DejaVuSerif-Bold.ttf" />
  <LoadFontfile name="DejaVuSerif-BoldItalic" filename="DejaVuSerif-BoldItalic.ttf" />
  <LoadFontfile name="DejaVuSerif-Italic" filename="DejaVuSerif-Italic.ttf" />


  <DefineFontalias existing="DejaVuSerif" alias="serif"/>
  <DefineFontalias existing="DejaVuSerif-Bold" alias="serif-bold"/>
  <DefineFontalias existing="DejaVuSerif-Italic" alias="serif-italic"/>
  <DefineFontalias existing="DejaVuSerif-BoldItalic" alias="serif-bolditalic"/>

</Layout>

and serif.xml:

<Layout
  xmlns="urn:speedata.de:2009/publisher/en">

  <DefineFontfamily name="text" fontsize="10" leading="12">
    <Regular fontface="serif"/>
    <Bold fontface="serif-bold"/>
    <Italic fontface="serif-italic"/>
    <BoldItalic fontface="serif-bolditalic"/>
  </DefineFontfamily>

</Layout>

and I run sp --extra-xml dejavu.xml --extra-xml serif.xml

(This is split just to demonstrate the order of --extra-xml)
@iclukas Does this solve your problem or do you need something else?
iclukas
@iclukas
I see. The problem is that I’m using <DefineFontfamily> in my layout.xml, so I keep getting “Font instance not defined” errors.
Patrick Gundlach
@pgundlach
Yes, the font families must be defined after <LoadFontfile>. Any suggestion how to solve this? Something like a --prepend-xml or --preload-xml?
iclukas
@iclukas
Yes, that would work. Since this very I could add this option myself if you like
*special
Patrick Gundlach
@pgundlach
Go ahead, if you want to!
iclukas
@iclukas
I think I’m done. LUA works fine, but I'm having trouble building the whole package. I have a Mac but my target is Debian Stretch. I think I’m missing some prerequisites
Do you have a pointer how to set up the whole dev environment?
Patrick Gundlach
@pgundlach
Building the thing got more complicated due to the external library I am using. I will need to write down something.