I need to produce an AFP document that contains a lot of images. I'm creating an AFP file using FOP. XSL has references to images that are included in the document. The produced AFP file size is approximately 10 times larger than the included images, so having about 15 MB of images means the resulting AFP is around 150 MB. A PDF file that is produced using the same images and XSL is about the size of the included images. I have created a test program that includes only images of size 1.7 MB. A PDF file is exactly 1.7 MB. An AFP file is 15 MB and contains only an image.
Apache FOP creates AFP format for documents that include images. The resulting file size is 10 times larger than the included image
417 Views Asked by Sergey Kvyatkovskiy At
1
There are 1 best solutions below
Related Questions in IMAGE
- Golang lambda upload image into s3 static website
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to create an JSOUP element from byte array image (Load from Database)
- Cloudflare not respecting Cache-Control
- Sending multiple images and data in a single angular observable
- Create and combine several images into a single image for my react native App
- Should I compress images in java backend before sending to frontend?
- Javascript Place Image Where User Clicks
- Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
- Sony Spresense Camera Board
- After completely installation and done all the work i am getting Permission denied error do any one have solution
- HTML page on NAS server image not showing on mobile phone
- mouse coordinates in image go below 0 and above width
- Why are the css images or js not loading in my laravel project?
- Python pillow library text align center
Related Questions in SIZE
- Change back to default font size in Android Studio
- Almost empty git repo has huge size
- Why receive the length of data in a loop?
- Am getting "Cannot set property .. which has only a getter" error (javascript canvas width)
- Why my latex footer is not at the bottem of my page?
- vis.js Timeline does not apply CSS style to show the images of the items in the right size
- Why when I use .size() to compute the length of array in the Conditional Determination of for Loop Structures will time out in leetcode?
- Issue with Font-Size when using Swiper js
- Load large image from Flutter Image Picker plugin?
- How can I get the number of elements in an already array declare by using size function not (sizeof)
- Get toast notification dimensions (size, rect)
- Fetch Document Size in DocuSign using C#
- Why has Text in MathJax html-css fractions different letter sizes in the same fraction part, and how to prevent it?
- Javascript: Retrieve actual, meaningful size (pixels) attributes of flexbox (or any browser-based) items
- Get null data response when use stream's event listeners nodejs
Related Questions in APACHE-FOP
- Missing border around image when converting a docx file to pdf with docx4j
- module jdk.translet does not read unnamed module
- How to NOT embed fonts in Apache FOP
- How to set a debug level for <xsl:message> in XSLT
- FOP pdf generation : display table side by side based on its content
- Fop migration from 0.20.5 to 2.9
- FOP if before fox:external-document
- Add additional text pages in XSL FO (FOP) without header
- Same page number on front and back of card
- Exception generating PDF from Apache FOP with table column
- Create an cell XSL:FO table cell, which can be detected as a signature cell by Adobe Acrobat Sign
- How to configure space after a block that spans multiple columns?
- How to get the total page count of an AFP/PDF to a .txt file in XSL FO
- XSL function calls in Apache FOP are not working
- XSL FO inline-container remove margins and align next to each other
Related Questions in AFP
- How do i merge 2 AFP's created from Apache FOP
- Modifying post-2040 macOS file creation/modification dates
- Apache FOP creates AFP format for documents that include images. The resulting file size is 10 times larger than the included image
- open .afp file with VB.net
- How to print conditional fields in PPFA code
- How to mount AFP share on macOS with ADSSO authentication?
- C# Is there is any way to read .AFP file and extract the TLEs?
- Get text from Font Patterns (FNG) from AFP file
- What library exists for the construction of AFP documents in different languages?
- How to get page count of AFP File in C# or Java
- Is their any way to Extract Images From AFP File ? using java /python
- afp cannot see zfs mounted folder
- border-radius anomalous behavior in Apache Fop to generate AFP file
- Tool to get fonts used in afp file
- How to read and convert AFP file to PDF with C#?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have found the answer in this document https://xmlgraphics.apache.org/fop/1.1/output.html
By default, JPEG images are rasterized to a bitmap and the bitmap is included in the AFP doc. Attribute native="true" in images allows to include jpeg image as it is, i.e. with default compression. For more details, look at the document above.