Forum Replies Created

Viewing 15 posts - 316 through 330 (of 4,249 total)
  • Author
    Posts
  • in reply to: Creating an index at the end of the pdf file
    #27681

    For your planned environment (if you do not want to build a cluster of servers) 2 Pro licenses are sufficient. One is for the productive server, another one for your development team (and test servers).

    On the other hand I see no big reason to create the pdf generation server. You may simply drop pd4ml.jar and ss_css2.jar into lib directory of your application and have the PDF generation functionality in-place. In the case you do need the Volume license, and it is worth its money if you compare it with efforts to establish and maintain the PDF-generating network infrastructure.

    in reply to: Creating an index at the end of the pdf file
    #27682

    Interesting discussion, thanks for your inputs.

    I didn’t find this pd4ml.page tag on the website, but the tag lib api did it (http://www.pd4ml.com/taglib/index.html). Looks like doing the job.

    Regarding our stack design, it comes from one of our needs : to be able to generate mails with pdf attached to them, as a kind of newsletter. Indeed, we could have a request to process 1000+ of such mails, with just a few lines changing from one mail to the others.

    in doing so, we would like to be able to spare the bandwidth as much as possible (and thus we plan to have a templating option) as well as be sure we won’t spoil some web server CPU (and as such being able to produce the pdf in a dedicated server). The templating stuff would be done before the pdf rendering engine.

    hence our aimed architecture. I welcome any advice/feedback.

    As PD4ML looks promising, I’ll now work on a demo implementation, using the trial version. Hopefully it’ll work out as expected and then we could discuss further of the buy and index stuff.

    thanks again
    joseph

    in reply to: Any way to repeat table headers?
    #27613

    Since our system directly sends the report-information, generated using a html-template-file, from a database to pd4ml using an URL, the html-code itself isn’t saved. If the problem occurs again, I will try to extract the html-code and send it to you.

    in reply to: Creating an index at the end of the pdf file
    #27684

    Hi

    I spent some time looking closer into it, and a some questions arose.

    Most are about the jsp tag lib, considering I’m not used to jsp tags. Are they some rules defining whether the tags should be closed immediately or include the whole document ? Is the order of declaration a matter ? Should parameters always be included in quotes ?

    Currently I’ve :
    <pd4ml:transform screenWidth="400" debug="true" ><br /> <pd4ml:permissions password="empty" rights="2068" strongEncryption="true"><br /> <pd4ml:page.break ifSpaceBelowLessThan="500"><br /> <pd4ml:clean_xhtml/><br /> (html doc)<br /> </pd4ml:page.break><br /> </pd4ml:permissions><br /> </pd4ml:transform><br />
    => I’ve tried many other combinations, to no success.

    In this context, only clean_xhtml works… The permissions defined in jsp never worked (I had to do it through Java), neither did the page break feature (for which I found no Java correspondence).

    A more important question is about hyphenation : it’s working but without an hyphen (-) character.
    I currently use CSS :
    <br /> p{<br /> text-align: justify;<br /> word-wrap:break-word;<br /> }
    however the breaks occur without hyphen character. Is there a way to define one ?

    I tried to put some h3 with visibility:hidden, in order for the Table Of Content to include link to these items without actually showing it. It doesn’t work.

    However, this is a need for our current usage of a so called index : we have some h3 which are hidden but should be part of the table of content, in order to allow links to the position. Is there a way to do it through the table of content ?

    If the index spoken above was to be created, could it link to keywords which aren’t actually displayed ? Or could it be done through other tricks ?

    I’ll look deeper into PD4ML later, so I could come back with more questions…

    thanks again !

    joseph

    in reply to: Creating an index at the end of the pdf file
    #27685

    nb : works fine 🙂

    in reply to: Creating an index at the end of the pdf file
    #27683

    I know, the same namespace in PD4ML JSP taglib and proprietary tags confuses.

    Here is the JSP docs:
    http://pd4ml.com/taglib/pd4ml/tld-summary.html

    The proprietary tags are at the bottom of the doc:
    http://pd4ml.com/html.htm

    Generally if a custom JSP tag has the same name as a PD4ML proprietary tag, the JSP tag simply replicates itself and lets PD4ML runtime to process it. The rest of JSP custom tags are mapped to PD4ML API.

    Regarding your particular issues:

    assumes no body, so in JSP it should be . In plain HTML syntax is also allowed. But please take into account: the tag does not define a “page breaking style”. It is an explicit page break (in the case it is conditional).

    is mapped to setPermissions() and it is also body-less.

    Your JSP should look like the following:

    [language=xml:201vh62w] (preface) (chapter 1) (chapter 2) [/language:201vh62w]

    I also removed more-less outdated clean_xhtml as the current version of our HTML renderer “understands” XHTML quite good.

    in reply to: Creating an index at the end of the pdf file
    #27686

    You may find the general info about TOC by the link:http://pd4ml.com/reference.htm#8

    There are some not yet documented features.

    You may suppress page number generation for particular TOC entries this way:
    [language=xml:2g3o7pbj]

    Test Page


    NOPAGENUM test

    Line 1

    Line 1.1

    Line 1.2

    Line 1.2.1

    Line 1.2.1

    Line 1.3

    Line 2

    Line 3

    Line 4

    Line 5

    Line 6


    [/language:2g3o7pbj]

    Or to disable it, let’s say, for all

    :

    div.ptoc3-style-left pd4ml-dots, div.ptoc3-style-right {visibility: hidden}

    You may disable particular levels to appear in TOC completely with:

    .ptoc3-style-left, .ptoc3-style-right {display:none; visibility:hidden;}

    in reply to: HTML/CSS rendering issues
    #26307

    1) Should both margins and padding within nested divs work using the .NET trial? I have been unable to get either to work for me. The html is valid and shows properly in FF and IE.

    2) Is it also possible to define a div height of 100%? I need to create a wide solid border down one side every page. Right now it just ignores the 100% height and displays only what space the text takes up in the margin. Again, works in the browsers. I understand this may need to be a watermark, but I am trying to get my head around what I can and can’t do in order to decide whether to purchase the product.

    in reply to: Html/CSS rendering issue
    #27674

    Using demo version v360b1.

    Regarding table position issue – now table is appearing on the middle of second page instead of the bottom of first page. Any help/fix will be highly appreciated.

    Thanks,

    in reply to: Deployment / Configuration issues
    #26305

    hello,

    i have a little problem with the pdf generation.

    I use the demo of pd4ml and i try to store the opening parameters (from adobe) in the pdf: http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

    So i just added the parameter in the pd4browser.properties:

    viewer.executeble=acroread.exe
    viewer.params=”page=3″

    the parameter means, that the reader open the third page. but it doesn’t work. i tried a few things more like viewer.params=page/=3.

    i can’t find some documentation about this file on the website.

    And pd4ml set the page format always to A4. the only thing i just can edit are the insets and the document informations.

    i use the following php code to generate the pdf:

    can anybody help me?

    Greetings from Germany!

    in reply to: Html/CSS rendering issue
    #27675

    Please take into account: with the absolute coordinates you position the table in HTML document, not on a PDF page. After PD4ML rendered the HTML it maps it to the chosen page format. HTML-to-PDF scale is calculated like that:

    scale = (pageFormat.width – insets.left – insets.right) / htmlWidth

    If your table does not fit the first page, that means the scale is too big. Try to reduce it by increasing of htmlWidth rendering parameter (pd4ml.setHtmlWidth()) in small steps until the table is placed as expected on the PDF page.

    in reply to: .NET trial – margins and padding
    #27749

    1. It should work. But make sure tag or external CSS link is in section of the document. If for some reasons that does not help – please publish an HTML sample here or send it to PD4ML support by email.

    2. No, you need to define an absolute height value there. A possible workaround is to specify a background image for the pages, with needed border shape.

    in reply to: HTML/CSS rendering issues
    #26288

    Is there any documentation available that is specific to the .NET platform?

    I am using the trial version and have questions concerning the installation and capabilities of PD4ML. I looked at the .NET sample on your website and the one that comes in the download, but those samples do not cover all the issues as nicely as the existing Java documentation. I am an ex-java developer, so I do not have issue with utilizing the documentation that is there, but I do have questions concerning the setup in .NET. Here are a few of them:

    1) I understand of use of the PD4ML dlls in the code-behind modules to convert html to pdf, and that works fine. Although, I have been unable to get some of the tags to work within the ASP page like transform and the watermarking. I realize java makes use of taglibs to render content. How is this accomplished with the .NET version?

    2) I continue to have issues with using css margins and padding not working with nested relative divs even though it works fine all all major browsers. Absolute divs seem to behave a bit better. Any advice on this would be helpful.

    3) In the absense of .NET specific docs, is the .NET version of PD4ML a full Pro version that should match in functionality to the Java documentation posted on your website?

    Thanks

    in reply to: .NET trial documentation
    #27630

    Since my last post I have been able to resolve most of my formatting issues by framing most everything I do on a page inside a table. Absolute and relative positioning seems to behave much better within the confines of a table.

    in reply to: General questions / FAQ
    #26308

    I am passing the hidden variable “fileName” from HTML file and want the the auto generated pdf file name to be the “fileName” which i am passing from the HTML.

    In my JSP i am able to get the fileName as var str1= request.getParameter(“fileName”).

    Please help!! As i don’t want the auto generated name.

Viewing 15 posts - 316 through 330 (of 4,249 total)