Forum Replies Created

Viewing 15 posts - 2,776 through 2,790 (of 4,243 total)

Coupon Code:

Anonymous
    in reply to: HTML entities not rendered in PDF
    #29339

    There is no HTML entities in the code above.

    Constructs like are to be substituted with HTML by a PHP runtime before the document is passed to PD4ML.

    amayet
      in reply to: General questions / FAQ
      #26972

      Hi,

      I’m actually using your library (v3.9.4 Pro) in my professionnal context to
      generate some pdf.

      Thus, I’ve tried to build unit test to ensure the non regression of our
      pdf.

      I’ve got an issues regarding the size of generated byte from windows and
      linux.

      The size of the file is always greater on Linux than on Windows but I can’t
      figure out why.

      When I compare my two files (the one generated from Linux vs the one
      generated from windows) using a pdf comparaison tools I can’t see
      differences whereas when I’m comparing using binary tools I see few
      differences :

      The size of lenght on linux is greater by 13.
      Their is always differences on the first stream.
      Their is always differences on the xref.
      Their is always differences on the number return by the starxref.

      I’d like to know if you are able to oriente me and help me solving this
      issues.

      Best regards,

      mosin
        in reply to: General questions / FAQ
        #26991

        Sometime I need to insert external media objects such as pictures into PDF document (I use tags library). And some of these objects might be PDF or TIFF images so tag can’t be used.
        Is there some solution?
        Thank you in advance!

        Anonymous
          in reply to: Trouble understanding differencies between Linux and Windows
          #29620

          There is a minor difference in diagnostics data of the PDFs (encapsulated to the first PDF content object):

          [language=java:2h90ify6]% PD4ML version: 394 Pro DMS
          % JDK version: 1.7.0_51
          % OS version: Linux 3.2.0-76-generic-pae
          % File encoding: UTF-8
          % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0]
          % size: java.awt.Dimension[width=595,height=842]
          % ttf: java:
          % pro version[/language:2h90ify6]

          [language=java:2h90ify6]% PD4ML version: 394 Pro DMS
          % JDK version: 1.7.0_71
          % OS version: Windows 7 6.1
          % File encoding: UTF-8
          % insets: java.awt.Insets[top=0,left=0,bottom=0,right=0]
          % size: java.awt.Dimension[width=595,height=842]
          % ttf: java:
          % pro version[/language:2h90ify6]

          The difference explains also a shift in the object offset table (XREF).

          Also the documents should differ in DOCIDs – unique document identifiers.

          Probably a better way to compare the documents would be to use PD4Document API to collect metadata (i.e. number of pages) and to extract particular page content.

          [language=java:2h90ify6]PD4Document doc1 = new PD4Document(new URL(“file:o:/work/testdata/testsuite/pdf/doc5enc.pdf”), password);
          int pagenum = doc1.getNumberOfPages();
          String content = doc1.getPageContent(1);
          String outlines = doc1.dumpOutlines();
          String author = doc1.getAuthor()[/language:2h90ify6]

          Anonymous
            in reply to: How to embedd PDF?
            #29667

            You can embed PDFs only as an attachment using tag.

            Some species of TIFFs (Fax) are supported by PD4ML directly, so a regular tag can be used.

            If not, there is a way to implement a custom resource loader to convert a TIFF to PNG, GIFF or JPEG on a fly.

            See http://pd4ml.com/cookbook/custom_rc_loaders.htm

            Anonymous
              in reply to: Trouble understanding differencies between Linux and Windows
              #29621

              Thanks a lot for your answer.

              We actually already override the following elements :

              parametreDefaut.put(PD4Constants.PD4ML_DOCUMENT_DATE, (new LocalDateTime(0,1,1,0,0,0)).toString());
              parametreDefaut.put(PD4Constants.PD4ML_IDS_AS_DESTINATIONS, “SIGEF”);
              System.setProperty(“pd4ml.document.id”, “0123456789abcdef”);

              Can you tell us how to override the OS and the JDK ? And what do you use to decode the “pdf content object” ?

              Best regards,

              PD4ML
                in reply to: Trouble understanding differencies between Linux and Windows
                #29622

                To decompress entire PDF you may use
                http://sourceforge.net/projects/multivalent/

                java -Xmx192m -cp Multivalent20060102.jar tool.pdf.Uncompress -exact file.pdf

                If a particular page is needed to be decoded:

                [language=java:16hhkgtu]PD4Document doc1 = new PD4Document(new URL(“file.pdf”), password);
                String content = doc1.getPageContent(1);[/language:16hhkgtu]

                For the time being it is not possible to disable JDK/OS diag output. But we could add the switch in the next versions.

                Anonymous
                  in reply to: Trouble understanding differencies between Linux and Windows
                  #29623

                  Thanks for all your informations again.

                  Could you add the switch for those elements in the next versions :

                  callParameters.append( “% PD4ML version: ” + getVersion() + “n” );
                  callParameters.append( “% JDK version: ” + System.getProperty( “java.version” ) + “n” );
                  callParameters.append( “% OS version: ” + System.getProperty( “os.name” ) + ” ” );
                  callParameters.append( System.getProperty( “os.version” ) + “n” );

                  It’s actually all we need to ensure our long terme binary comparaison and non regression on our file.

                  Furthermore, are you able to tell me when the next version will be available ?

                  Best regards,

                  mosin
                    in reply to: General questions / FAQ
                    #26992

                    Let’s say I have some main layout which has footer and header.
                    After it (on additional page) I want to add some attachments as a pictures.
                    Here is an example:
                    <pd4ml:page.header><br /> <h1>Header</h1><br /> </pd4ml:page.header><br /> <pd4ml:page.footer height="50"><br /> <h1>Footer</h1><br /> </pd4ml:page.footer><br /> <div>CONTENT</div><br /> <pd4ml:page_break /><br /> <img src="../attachment.jpg" />

                    And I want that new page (after page_break) won’t have any footer or header.
                    Is it possible?
                    P.S. I use PD4ML tags library

                    mosin
                      in reply to: HTML/CSS rendering issues
                      #26993

                      Is it possible to fit image’s width and height to layout’s width/height?
                      <img src="../" width="100%" height="100%" />
                      doesn’t help – width works fine but height not – if image too heigh it is splitted into different pages.

                      sergio.martinez
                        in reply to: Problems with bullets in list, RTF file
                        #29662

                        I checked in OpenOffice and indeed the issue doesn’t appear there. Unfortunately our clients use Microsoft Office. Thanks for your response and I will waiting for a solution.

                        PD4ML
                          in reply to: Problems with bullets in list, RTF file
                          #29663

                          Just-released v395 should solve the issue.

                          PD4ML
                            in reply to: Add/remove header or footer on fly
                            #29670

                            It is possible to override header and footer with blank ones in-place:

                            [language=xml:2c2alin6]

                            Header

                            Footer

                            CONTENT

                            [/language:2c2alin6]

                            or to apply header/footer to particular page ranges with scope attribute of and

                            Viewing 15 posts - 2,776 through 2,790 (of 4,243 total)