Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFBOX-4073 Choosable Coordinate-Unitsystem #114

Open
wants to merge 24 commits into
base: trunk
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Documentation for convertUnit() implemented and added "import java.ut…
…il.Iterator;".
Pannimaa committed Mar 24, 2021
commit b0948061b90d0746578280f763a9fe5b98c2f321
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -1676,12 +1677,12 @@ private List<Integer> applyGSUBRules(GsubWorker gsubWorker, ByteArrayOutputStrea
}

/**
* Set the text rise value, i.e. move the baseline up or down. This is useful for drawing
* superscripts or subscripts.
* Does a length unit conversion from points to millimeters or inches depending on user choice.
*
* @param items
* @param unit_type
* @throws IllegalArgumentException
* @param items Items that needs to be converted.
* @param unit_type Specifies desired length unit (mm or inch).
* @throws IllegalArgumentException If desired length unit is not supported.
* @return Items converted to desired unit.
*/
public List<Float> convertUnit(List<Float> items, String unit_type)
{