Menu

Home

Hao Hu

Embed JPEG files into PDF. The lightest weight ANSI C library to put multiple JPEG files into a PDF file.


Project Admins:


Discussion

  • merlin

    merlin - 2013-01-08

    Open-source command line tool to create PDF documents from multiple JPEG files, one JPEG per page.

     
  • GGLapkizzz

    GGLapkizzz - 2018-09-24

    EULA link would be very appreciated. Thanks in advance.

     
  • Hao Hu

    Hao Hu - 2018-09-24

    Please treat this as public domain license. Basically, you could do anything with it, but the author is not going to take reponsibility of anything happened for your usage.

     
  • Dusan Peterc

    Dusan Peterc - 2019-02-17

    Last version does not compile on Linux (SUSE Leap 15, 64 bits, gcc 7.3.1), it gives the following errors:

    testMain.c: In function main:
    testMain.c:474:25: error: filesarray undeclared (first use in this function); did you mean filename?
       findMaximumDimensions(filesarray, globlen, pageOrientation==Portrait || pageOrientation==Landscape, &pageWidth, &pageHeight);
                             ^~~~~~~~~~
                             filename
    testMain.c:474:25: note: each undeclared identifier is reported only once for each function it appears in
    testMain.c:491:4: error: too few arguments to function insertJPEGFile
        insertJPEGFile(globbuf.gl_pathv[globindex], sb.st_size, pdfId);
        ^~~~~~~~~~~~~~
    testMain.c:69:6: note: declared here
     void insertJPEGFile(const char *fileName, int fileSize, PJPEG2PDF pdfId, PageOrientation pageOrientation, ScaleMethod scale, bool cropHeight, bool cropWidth) {
          ^~~~~~~~~~~~~~
    

    The following warings are also valid:

    testMain.c:533:28: warning: format %d expects argument of type int, but argument 2 has type UINT32 {aka long unsigned int} [-Wformat=]
       printf("Generating PDF (%d bytes) ...\n", pdfSize);
                               ~^
                               %ld
    testMain.c:537:31: warning: format %d expects argument of type int, but argument 3 has type UINT32 {aka long unsigned int} [-Wformat=]
       printf("Writing file '%s' (%d bytes) ...\n", outputFilename, pdfSize);
                                  ~^
                                  %ld
    testMain.c:545:19: warning: too many arguments for format [-Wformat-extra-args]
        fprintf(stderr,"Write error. Aborted.\n", outputFilename);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
    testMain.c:229:24: warning: variable cropHeight set but not used [-Wunused-but-set-variable]
      bool cropWidth=false, cropHeight=false;
                            ^~~~~~~~~~
    testMain.c:227:14: warning: variable scale set but not used [-Wunused-but-set-variable]
      ScaleMethod scale=ScaleFit;
                  ^~~~~
    
     
  • Dmitry Bakshaev

    Dmitry Bakshaev - 2019-02-18
     
    • Dusan Peterc

      Dusan Peterc - 2019-02-18

      Thank your very much, this version compiles. Maybe a new version of the source distribution
      jpeg2pdf_1.1_src.zip
      should be created, in order to avoid the confusion. Or remove the one that does not compile, so one goes straight to the "code" area.
      And thanks for creating such a useful tool.

       
      • Hao Hu

        Hao Hu - 2019-02-19

        Thanks Dmitry!

        Dusan Peterc dusanp@users.sourceforge.net 于2019年2月18日周一 下午1:00写道:

        Thank your very much, this version compiles. Maybe a new version of the
        source distribution
        jpeg2pdf_1.1_src.zip
        should be created, in order to avoid the confusion. Or remove the one that
        does not compile, so one goes straight to the "code" area.
        And thanks for creating such a useful tool.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/jpeg2pdf/wiki/Home/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         
  • Robert Munnings

    Robert Munnings - 2019-10-12

    Would be nice if there was a command line option to recognise an EXIF Orientation flag if it was present in the jpeg. i.e if option flag was set then auto-rotate the image as required before conversion. Thanks for a great program! :-)

     
  • Thomas Henlich

    Thomas Henlich - 2020-01-17

    In the downloads for this project you distribute a binary-only version of the GNU C compiler. This violates the GNU Licenses which specify that the GCC source code must be distributed along with the binaries: https://www.gnu.org/licenses/gpl-faq.html#UnchangedJustBinary

    Second, the distribution does not include a copy of the GPL, which is also required: https://www.gnu.org/licenses/gpl-faq.html#WhyMustIInclude

    Please modify your distribution to be compliant with the license of the software you are distributing.

     
  • Dmitry Bakshaev

    Dmitry Bakshaev - 2024-02-21

    please make release (1.2?) based on r9 revision

     
  • Hao Hu

    Hao Hu - 2024-03-20

    Dmitry, do we have r9? I didn't see r9 on the source control. Thanks!

     
    • Dmitry Bakshaev

      Dmitry Bakshaev - 2024-03-20
       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.